|
 |
asp_cdo thread: mails getting dropped into badmail
Message #1 by "yoga" <sahaj76@y...> on Thu, 14 Jun 2001 15:27:50
|
|
hi,
can any body help me.
this is my code.
mailsendto="sgorre@a..."
mailsubject="testmail"
mailbody="this is a test mail"
set objmail=Server.CreateObject("CDONTS.NewMail")
objmail.To = mailsendto
objmail.Subject = mailsubject
objmail.Body = mailbody
objmail.Send
set objmail = nothing
when i execute it mails are dropped in badmail folder.
iam using win2000,iis5
thanks.
Message #2 by Vincent Vandermeeren <vincentvdm@O...> on Thu, 14 Jun 2001 17:10:57 +0200
|
|
sure ...
that's easy ...
A smtp server always needs a from and a to but in your form he doesn't
fidn
any "from" so he places them in the bad que.
If you place there also a from then it shall work ...
Greetings,
Vinnie
-----Original Message-----
From: yoga [mailto:sahaj76@y...]
Sent: donderdag 14 juni 2001 17:28
To: ASP CDO
Subject: [asp_cdo] mails getting dropped into badmail
hi,
can any body help me.
this is my code.
mailsendto=3D"sgorre@a..."
mailsubject=3D"testmail"
mailbody=3D"this is a test mail"
set objmail=3DServer.CreateObject("CDONTS.NewMail")
objmail.To =3D mailsendto
objmail.Subject =3D mailsubject
objmail.Body =3D mailbody
objmail.Send
set objmail =3D nothing
when i execute it mails are dropped in badmail folder.
iam using win2000,iis5
thanks.
Message #3 by Pappas Nikos <pappas@c...> on Thu, 14 Jun 2001 19:25:24 +0300
|
|
try this
it is working for me
I thing quotes are missing in body
dim Email
dim firstName
dim lastName
Email=3DRequest.Form("Email")
firstName=3DRequest.Form("firstName")
lastName=3DRequest.Form("lastName")
Dim objMail
Set objMail =3D Server.CreateObject("CDONTS.NewMail")
objMail.From =3D "sgorre@a..."
objMail.Subject =3D "Confirmation mail"
objMail.To =3D "" & Email
objMail.Body =3D "Dear " & vbcrlf&_
"" & lastName & vbcrlf&_
"Thank you for BLAH BLAH" & vbcrlf&_
"etc etc." & vbcrlf&_
"Please don't forget to inform us . " & vbcrlf&_
"Best regards"& vbcrlf&_
"mysite.com info"
objMail.Send
Response.write(" Mail was Sent")
set objMail =3D nothing
At 03:27 =EC=EC 14/6/2001 +0000, you wrote:
>hi,
>can any body help me.
>
>this is my code.
>mailsendto=3D"sgorre@a..."
>
>mailsubject=3D"testmail"
>mailbody=3D"this is a test mail"
>set objmail=3DServer.CreateObject("CDONTS.NewMail")
>objmail.To =3D mailsendto
>objmail.Subject =3D mailsubject
>objmail.Body =3D mailbody
>objmail.Send
>set objmail =3D nothing
>
>when i execute it mails are dropped in badmail folder.
>iam using win2000,iis5
>thanks.
|
|
 |