navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

eCard Application in FrontPage...

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> eCard Application in FrontPage...
Page: [1]
 
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
eCard Application in FrontPage... - 1/28/2004 0:08:57   
Is it possible to develop an eCard based application using Microsoft Access and DRW in Frontpage and use JMail or ASPEmail component, if yes, then please give the guideline...

Thanks...
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: eCard Application in FrontPage... - 1/28/2004 5:02:56   
i use an image based e-card.

the image name is store in a db field - I run a DRW within a form to retrieve that image where ID=ID.

I then add these form fields to the form: message, yourname, theirname, youremail, theiremail

I send the form to this script:
<% @ language="vbscript" %>
<% Response.Buffer = True %>
<%


'	Easy postcard script!
'	Courtesy of SamHS, a member of the dotdragnet team
'	Please see the readme.txt for full instructions on how to set this up
'	But I promise - it'll take you no more than 5 minutes!
'	This version copyright dotdragnet.co.uk
'	Please let us know if you make any enhancements to this
'	script - so we can offer them to our users.

' *************************
' DO NOT ALTER THIS SECTION
' *************************
	message=Request.Form("message")
	yourname=Request.Form("yourname")
	youremail=Request.Form("youremail")
	theirname=Request.Form("theirname")
	theiremail=Request.Form("theiremail")
	picture=Request.Form("picture")
	picture=Server.MapPath(picture)

' *********************************************
' You can alter this section to suit your needs
' *********************************************

' You can set your own variables here:

' Insert your site name for use in the email
	sitename="www.www.leisure-ideas.com"

' Insert the subject of the email sent (remembering to leave in the & sitename bit)
	strsubject="A postcard from " & sitename

' Insert the body of the email to be sent (remembering that the user also gets to add their own message)
' I've gone a bit OTT here with a disclaimer here - why not run the script, see what happens by doping a test postcard
' to yourself - and then have a play around with it?
	strbody="Hi " & theirname & "!" & vbCrLf & vbCrLf & "Your friend " & yourname & " has been visiting " & sitename & ". They wanted to show you "
	strbody = strbody & "what it's like over here - why not check it out for yourself - look at the attachment! "
	strbody = strbody & "They had this message for you: " & vbCrLf & vbCrLf & message & vbCrLf & vbCrLf
	strbody = strbody & "---" & vbCrLf & vbCrLf & "Please note that this message has been automatically "
	strbody = strbody & "generated by a user on " & sitename & " - no record of either your email address "
	strbody = strbody & "nor the person who sent this email to you has been made. We accept no responsibility "
	strbody = strbody & "for the contents of this email!"

' Insert the location of the thank you page for users (change it from my site would ya?!)
	thankspage="http://www.leisure-ideas.com"

' *************************
' DO NOT ALTER THIS SECTION
' *************************
	Dim objCDOMail
	If youremail<>"" And theiremail<>"" And IsValidEmail(youremail) And IsValidEmail(theiremail) Then
		sendemail(theiremail)
		Response.Redirect thankspage
	Else
		Response.Write "There was an error with the email addresses. Please <a href='javascript:history.back(-1)'>go back</a> and correct the problem - then resubmit."
	End If

%>

<% ' Functions follow

' Send the email
Function sendemail(stremail)
			Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
			objCDOMail.From = youremail
			objCDOMail.To = stremail
			objCDOMail.Subject = strSubject
			objCDOMail.AttachFile(picture)
			objCDOMail.Body = strBody
			objCDOMail.Send
			Set objCDOMail = Nothing
End Function	

' Is it a valid email address being used?
Function IsValidEmail(strEmail)
	Dim bIsValid
	bIsValid = True
	
	If Len(strEmail) < 5 Then
		bIsValid = False
	Else
		If Instr(1, strEmail, " ") <> 0 Then
			bIsValid = False
		Else
			If InStr(1, strEmail, "@", 1) < 2 Then
				bIsValid = False
			Else
				If InStrRev(strEmail, ".") < InStr(1, strEmail, "@", 1) + 2 Then
					bIsValid = False
				End If
			End If
		End If
	End If
	IsValidEmail = bIsValid
End Function
%>


the above is from dotdrag.net but it seems that it is no longer available there. To see mine in action go to: http://www.leisure-ideas.com/more.asp?ID=236&City=Brighton&AName=Sea+Life+Centre and follow the link

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to abdulsamikhan)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: eCard Application in FrontPage... - 1/29/2004 8:45:40   
Your specified link is giving me this message:

Active Server Pages error 'ASP 0113'

Script timed out

/index.asp

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.

Can you please guide me step by step instruction because I am not a professional like you and I cannot understand and change the ASP code, I can only work on FrontPage and DRW.

So, Please guide me step by step...

(in reply to Eli)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: eCard Application in FrontPage... - 1/29/2004 8:53:45   
Now a days I am working on project http://www.dabclub.com and it is a portal website, and I want to add an egreeting section to this website. This website domain filfils all the requirements. I mean NT hosting with ASP.NET and JMail, CDONT ASPEmail are already installed.

Check out this link: http://www.dabclub.com/skrifa.asp

This page only works if we include any email address of this domain like @jixoft.com or @dabclub.com in To or From section it works. But if enter any other email addresses like @yahool.com and @hotmail.com it doesn't work, can you please tell me the solution, if you can then my problem is already solved, because I have already worked on it.

This webpage uses JMail component, I have downloaded from Hotscripts.com freely and then customized it. So please check it.

(in reply to abdulsamikhan)
DarlingBri

 

Posts: 3123
From: Left of Centre, Cork, Ireland
Status: offline

 
RE: eCard Application in FrontPage... - 1/29/2004 12:01:20   
Switch the form action from JMail to CDONTS and see if it works. Then you can determine if the problem is in JMAIL or in your ecard script.

I think it's a JMAIL thing, actually; it may only allow you to send from your own domains. It could also be a server relay setting. You might check with your host.

< Message edited by DarlingBri -- 1/29/2004 12:10:12 >


_____________________________

--Bri
Bartlet for President 2008
Get a taste of religion. Lick a witch.

(in reply to abdulsamikhan)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: eCard Application in FrontPage... - 1/29/2004 14:11:18   
post your asp code - lets take a look and see if we can solve it

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to abdulsamikhan)
BeTheBall

 

Posts: 6381
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: eCard Application in FrontPage... - 1/29/2004 15:07:02   
When running server based email clients, some hosts will restrict the email addresses to those of the domain where the email client resides. You may want to check with your host.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to Eli)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: eCard Application in FrontPage... - 1/30/2004 0:35:10   
Here is the code:


<%
'Insert your mailserver name and port (usually 25)
mailserver="mail.jixoft.com:25"
%>
<html>
<head>
<title>Sakki's digital postcards</title>
<%
Flag = request.form("Flag")
If IsEmpty(Flag) or Flag = "" then
%>
<link rel="stylesheet" type="text/css" href="../../css/jics.css">
<link rel="stylesheet" type="text/css" href="../../css/MSEducation.css">


<Script language="JavaScript">

<!-- //hiding code

function checkForm()
{
if(document.form1.fsogn.value == "")
{
alert('Please enter the Heading for eCard')
return false;
}

if(document.form1.nafn1.value == "")
{
alert('Please enter the name of recipient')
return false;
}

if(document.form1.netfang1.value == "")
{
alert('Please enter the Email of recipient')
return false;
}

if(document.form1.nafn2.value == "")
{
alert('Please enter your name in "From" section')
return false;
}

if(document.form1.netfang2.value == "")
{
alert('Please enter your Email address')
return false;
}

if(document.form1.kvedja.value == "")
{
alert('Please Enter some Comments')
return false;
}
}
-->
</Script>



</head>
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table4" height="17">
<tr>
<td bgcolor="#4070B0">
<font color="#FFFF00" face="Arial"><b> 
<a href="../../index.asp">
<font color="#FFFF00">Home</font></a>  | <a href="../../htm/sitemap.htm"><font color="#FFFF00"> Site
Map</font></a>  |  <a href="../../htm/contacts.htm">
<font color="#FFFF00">Contact</font></a></b></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table5">
<tr>
<td align="left" valign="top" width="150" bgcolor="#5F8AC5" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#3E6BA8">
<!--webbot bot="Include" U-Include="../../include/topdabclublogo.htm" TAG="BODY" --></td>
<td align="left" valign="top" bgcolor="#5F8AC5">
<div align="right">
<!--webbot bot="Include" U-Include="../../include/topad.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table8" height="17">
<tr>
<td bgcolor="#B40000">
<div align="center">
<!--webbot bot="Include" U-Include="../../include/topstrip.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<h1 align="center">Welcome to Dabclub's eGreeting</h1>
<form action="skrifa.asp" method="POST" onSubmit="return(checkForm())" name="form1">
<h3 align="center">Type your heading here<br>
<input type="text" name="fsogn" size="50" style="color: #000000; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #FFCC00"></h3>
<table border="0" cellpadding="5" cellspacing="5" width="100%" id="table10">
<tr>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="1.jpg" width="109" height="75"><br>
<input type="radio" checked name="mynd" value="1.jpg"></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="2.jpg" width="109" height="75"><br>
<input type="radio" name="mynd" value="2.jpg"></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="3.jpg" width="109" height="75"><br>
<input type="radio" name="mynd" value="3.jpg"></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="4.jpg" width="109" height="75"><br>
<input type="radio" name="mynd" value="4.jpg"></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="5.jpg" width="109" height="81"><br>
<input type="radio" name="mynd" value="5.jpg"></td>
</tr>
<tr>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center">
<img src="6.jpg" width="109" height="75"><br>
<input type="radio" name="mynd" value="6.jpg"></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
</tr>
<tr>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#B40000" align="center"> </td>
</tr>
</table>
<br>
    
<br>
    
<div align="center">
<table border="0" width="478">
<tr><td> </td><td width="248">Message:</td><td> </td><td> </td></tr>
<tr><td> </td><td rowspan="4" width="248">
<textarea name="kvedja" rows="8" cols="28" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; color:#000000; background-color:#FFCC00"></textarea></td><td>To:</td><td>
<input type="text" size="24" name="nafn1" Value="<%= Request.QueryString("nafn") %>" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color:#FFCC00"></td></tr>
<tr><td> </td><td>Email</td><td>
<input type="text" size="24" name="netfang1" Value="<%= Request.QueryString("send") %>" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color:#FFCC00"></td></tr>
<tr><td> </td><td>From</td><td>
<input type="text" size="24" name="nafn2" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color:#FFCC00"></td></tr>
<tr><td> </td><td>Email</td><td>
<input type="text" size="24" name="netfang2" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color:#FFCC00"></td></tr>
</table></div>
<p align="center"><br><br>
<input type="hidden" name="Flag" value=1>
<input type="submit" value="      Preview postcard      ">
</p>
</form>
<%
end if
if flag = 1 then
anafn1 = request.form("nafn1")
anetfang1 = request.form("netfang1")
anafn2 = request.form("nafn2")
anetfang2 = request.form("netfang2")
akvedja = request.form("kvedja")
afsogn = request.form("fsogn")
amynd = request.form("mynd")
akvedja = server.HTMLencode(Request.form("kvedja"))
akvedja = Replace(akvedja, vbCrLf, "<br>")
%>
<link rel="stylesheet" type="text/css" href="../../css/jics.css">
<link rel="stylesheet" type="text/css" href="../../css/MSEducation.css">

</head>
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table17" height="17">
<tr>
<td bgcolor="#4070B0">
<font color="#FFFF00" face="Arial"><b> 
<a href="../../index.asp">
<font color="#FFFF00">Home</font></a>  | <a href="../../htm/sitemap.htm"><font color="#FFFF00"> Site
Map</font></a>  |  <a href="../../htm/contacts.htm">
<font color="#FFFF00">Contact</font></a></b></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table18">
<tr>
<td align="left" valign="top" width="150" bgcolor="#5F8AC5" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#3E6BA8">
<!--webbot bot="Include" U-Include="../../include/topdabclublogo.htm" TAG="BODY" --></td>
<td align="left" valign="top" bgcolor="#5F8AC5">
<div align="right">
<!--webbot bot="Include" U-Include="../../include/topad.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table21" height="17">
<tr>
<td bgcolor="#B40000">
<div align="center">
<!--webbot bot="Include" U-Include="../../include/topstrip.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<h1 align="center">Postcard preview...</h1>
<div align="center">
<table border="0" cellpadding="3" cellspacing="3" width="257" id="table23">
<tr>
<td width="257" style="border: 1px solid #800000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"> <%= afsogn %></td>
</tr>
<tr>
<td width="257" style="border: 1px solid #800000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<p align="center"> <img src="<%= amynd %>"></td>
</tr>
<tr>
<td width="257" style="border: 1px solid #800000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"> <%= akvedja %></td>
</tr>
<tr>
<td width="257" style="border: 1px solid #800000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">To:<br>
<%= anafn1 %><br>
<a href="<%= anetfang1 %>"><%= anetfang1 %></a><br>
From:<br>
<%= anafn2 %><br>
<a href="<%= anetfang2 %>"><%= anetfang2 %></a> </td>
</tr>
</table>
</div>
<h1 align="center">
<center>

<form action="skrifa.asp" method="POST">
<input type="hidden" name="nafn1" value="<%= anafn1 %>">
<input type="hidden" name="netfang1" value="<%= anetfang1 %>">
<input type="hidden" name="nafn2" value="<%= anafn2 %>">
<input type="hidden" name="netfang2" value="<%= anetfang2 %>">
<input type="hidden" name="kvedja" value="<%= akvedja %>">
<input type="hidden" name="mynd" value="<%= amynd %>">
<input type="hidden" name="fsogn" value="<%= afsogn %>">
<input type="hidden" name="flag" value="2">
</center>
<p align="center">
<input type="submit" value="Send postcard">
<input type="button" value="Fix it" OnClick="javascript:history.go(-1)">
</form>
<br>
<%
End If
If Flag = 2 then
Randomize
apass = int(rnd*99999)+1
adags = now()
anafn1 = request.form("nafn1")
anetfang1 = request.form("netfang1")
anafn2 = request.form("nafn2")
anetfang2 = request.form("netfang2")
akvedja = request.form("kvedja")
afsogn = request.form("fsogn")
amynd = request.form("mynd")
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("kort.mdb")
conn.Open DSNtemp
SQLstmt = "INSERT INTO kort (pass,dags,nafn1,netfang1,nafn2,netfang2,kvedja,fsogn,mynd)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & apass & "',"
SQLstmt = SQLstmt & "'" & adags & "',"
SQLstmt = SQLstmt & "'" & anafn1 & "',"
SQLstmt = SQLstmt & "'" & anetfang1 & "',"
SQLstmt = SQLstmt & "'" & anafn2 & "',"
SQLstmt = SQLstmt & "'" & anetfang2 & "',"
SQLstmt = SQLstmt & "'" & akvedja & "',"
SQLstmt = SQLstmt & "'" & afsogn & "',"
SQLstmt = SQLstmt & "'" & amynd & "'"
SQLstmt = SQLstmt & ")"
Set RS = conn.execute(SQLstmt)
If err.number>0 then
response.write "VBScript error:" & "<P>"
response.write "Number=" & err.number & "<P>"
response.write "Explanation.=" & err.description & "<P>"
response.write "Help Context=" & err.helpcontext & "<P>"
response.write "Help Path=" & err.helppath & "<P>"
response.write "Native Error=" & err.nativeerror & "<P>"
response.write "Source=" & err.source & "<P>"
response.write "SQLState=" & err.sqlstate & "<P>"
end if
IF conn.errors.count> 0 then
response.write "Access database error" & "<P>"
response.write SQLstmt & "<P>"
for counter= 0 to conn.errors.count
response.write "Error #" & conn.errors(counter).number & "<P>"
response.write "Explanation. -> " & conn.errors(counter).description & "<P>"
next
Conn.Close
set conn = nothing
else
Conn.Close
set conn = nothing
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.MapPath("kort.mdb")
conn.Open DSNtemp
sqlstmt = "SELECT * FROM kort WHERE nafn1 = "
sqlstmt = sqlstmt & "'" & anafn1 & "'"
sqlstmt = sqlstmt & " AND pass = "
sqlstmt = sqlstmt & apass
sqlstmt = sqlstmt & " ORDER BY id DESC;"
'rs.Open sqlstmt,conn,3,3
set rs = conn.Execute(sqlstmt)
id = rs("id")
Conn.Close
Set conn = nothing
dim mailbody
scriptname = Request.servervariables("script_name")
scriptname = Replace(scriptname,"skrifa.asp","skoda.asp")
scriptname = "http://" & request.servervariables("server_name") & scriptname
mailbody = anafn2 & " has sent you a postcard" & Vbcrlf & vbcrlf
mailbody = mailbody & "You can pick your postcard up at the address :" & vbcrlf
mailbody = mailbody & ScriptName & "?id=" & id & "&pass=" & apass
mailbody = mailbody & vbcrlf & vbcrlf
mailbody = mailbody & "Or visit " & scriptname & vbcrlf
mailbody = mailbody & "And enter" & vbcrlf
mailbody = mailbody & "Postcard Id = " & id & vbcrlf
mailbody = mailbody & "Postcard Password = " & apass & vbCrlf & vbcrlf
mailbody = mailbody & "Written by Sakki - http://www.welcome.to/sakki"
blabla = "Postcard from " & anafn2
'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>
<link rel="stylesheet" type="text/css" href="../../css/jics.css">
<link rel="stylesheet" type="text/css" href="../../css/MSEducation.css">
</head>
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">
</body></p>
<p align="center"></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table27" height="17">
<tr>
<td bgcolor="#4070B0">
<font color="#FFFF00" face="Arial"><b> 
<a href="../../index.asp">
<font color="#FFFF00">Home</font></a>  | <a href="../../htm/sitemap.htm"><font color="#FFFF00">
Site Map</font></a>  |  <a href="../../htm/contacts.htm">
<font color="#FFFF00">Contact</font></a></b></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table28">
<tr>
<td align="left" valign="top" width="150" bgcolor="#5F8AC5" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#3E6BA8">
<!--webbot bot="Include" U-Include="../../include/topdabclublogo.htm" TAG="BODY" --></td>
<td align="left" valign="top" bgcolor="#5F8AC5">
<div align="right">
<!--webbot bot="Include" U-Include="../../include/topad.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table31" height="17">
<tr>
<td bgcolor="#B40000">
<div align="center">
<!--webbot bot="Include" U-Include="../../include/topstrip.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
<p align="center"> </p>
<h1 align="center">
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">
Thank you !!</body></h1>
<p align="center">
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">
<br>
Postcard has been sent to : <a href="mailto:<%= anetfang1 %>"><%= anafn1 %></a><br>
Sender is : <a href="mailto:<%= anetfang2 %>"><%= anafn2 %></a><br>
<BR><A href="javascript:history.go(-3)">Back</A>
<%
end if
end if
%>
</body></p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center">
<body text="#000000" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" bgcolor="#FFCC00">
</p>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table33" height="17">
<tr>
<td align="left" valign="top" bgcolor="#B40000">
<p align="center"><span style="font-size: 8pt">
<font color="#FFFFFF">Copyrighted © 2003 All rights reserved |
</font><a target="_blank" href="http://www.jixoft.com">
<font color="#FFFFFF">Designed and Maintained by JiXoft.Com</font></a></span></td>
</tr>
</table>

</body>
</html>

(in reply to BeTheBall)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: eCard Application in FrontPage... - 1/30/2004 3:00:25   
i'm looking at the code and can't see anything there that would restict the email domains. It also looks way more complex than you need if all you're after is an ecard application.

Duane is right ... some ISPs restrict emails recipents to their own domains. This could be the problem.

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to abdulsamikhan)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> eCard Application in FrontPage...
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts