|
 |
asp_cdo thread: help me with HTML email...
Message #1 by jaeson@m... on Tue, 24 Jul 2001 09:21:20
|
|
hi,
pls help me in the following thing i can send the mail....
i still can't figure out what happen...
the variable are able to pass to the other page but i don't know why it
can't be send to my email....
pls help me...
<html>
<head>
<title>Excel Enquire form</title>
</head>
<body>
<%
Dim g_fname
g_fname = Request.Form ("fname")
Dim MyCDONTSMail
Dim HTML
Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<title>Sending CDONTS Email Using HTML</title>"
HTML = HTML & "</head>"
HTML = HTML & "<body bgcolor=""FFFFFF"">"
HTML = HTML & "<font size =""3"" face=""Arial"">"
HTML = HTML & "First Name :"
HTML = HTML & g_fname
HTML = HTML & "<BR>"
HTML = HTML & "Incoming Customer Order<BR>"
HTML = HTML & "<p align = ""center"">Bla Bla Bla Bla Bla</p>;"
HTML = HTML & "<body>"
HTML = HTML & "<html>"
MyCDONTSMail.From= Request.Form ("email")
MyCDONTSMail.To="jaeson_c@u..."
MyCDONTSMail.Subject="Education "
MyCDONTSMail.BodyFormat=0
MyCDONTSMail.MailFormat=0
MyCDONTSMail.Importance = 2
MyCDONTSMail.Body=HTML
MyCDONTSMail.Send
set MyCDONTSMail=nothing
Response.Write g_fname
Response.Write html
%>
<center>
<h3>
Your Enquiries has been sent! Thank You
</h3>
</center>
</body>
</html>
Message #2 by "Vincent Vandermeeren" <vincentvdm@p...> on Wed, 25 Jul 2001 16:21:47 +0200
|
|
This should work !!
what if you debug ??
Greetings,
Vinnie
----- Original Message -----
From: <jaeson@m...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Tuesday, July 24, 2001 9:21 AM
Subject: [asp_cdo] help me with HTML email...
> hi,
> pls help me in the following thing i can send the mail....
> i still can't figure out what happen...
> the variable are able to pass to the other page but i don't know why it
> can't be send to my email....
>
>
> pls help me...
>
>
>
> <html>
> <head>
> <title>Excel Enquire form</title>
> </head>
>
> <body>
> <%
> Dim g_fname
> g_fname = Request.Form ("fname")
>
> Dim MyCDONTSMail
> Dim HTML
> Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
> HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
> HTML = HTML & "<html>"
> HTML = HTML & "<head>"
> HTML = HTML & "<title>Sending CDONTS Email Using HTML</title>"
> HTML = HTML & "</head>"
> HTML = HTML & "<body bgcolor=""FFFFFF"">"
> HTML = HTML & "<font size =""3"" face=""Arial"">"
> HTML = HTML & "First Name :"
> HTML = HTML & g_fname
> HTML = HTML & "<BR>"
> HTML = HTML & "Incoming Customer Order<BR>"
> HTML = HTML & "<p align = ""center"">Bla Bla Bla Bla Bla</p>;"
> HTML = HTML & "<body>"
> HTML = HTML & "<html>"
> MyCDONTSMail.From= Request.Form ("email")
> MyCDONTSMail.To="jaeson_c@u..."
> MyCDONTSMail.Subject="Education "
> MyCDONTSMail.BodyFormat=0
> MyCDONTSMail.MailFormat=0
> MyCDONTSMail.Importance = 2
> MyCDONTSMail.Body=HTML
> MyCDONTSMail.Send
> set MyCDONTSMail=nothing
> Response.Write g_fname
> Response.Write html
>
> %>
> <center>
> <h3>
> Your Enquiries has been sent! Thank You
> </h3>
> </center>
> </body>
> </html>
> ---
Message #3 by jaeson@m... on Wed, 25 Jul 2001 18:54:36
|
|
Hi,
i really don't know... what happen ,,
coz there are no mail in my mail box and,,,
is my variable or and thing gone wrong...???
i test it on a server and i try other code it works,,,
they are able to send to my mail ...but this i really don't know why..
..
..
how do you debug??
i mean once you click submit it jump to the next page and,,
no error message,,,,,,or so
,,
thanks,,,
if anyone could help me or give me so sample code,
Jaeson,
|
|
 |