Send Mail (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


accessman -> Send Mail (7/15/2006 23:09:00)

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="Alan@hotmail.com"
myMail.To="Alan@hotmail.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

Error Type:
CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.
/asp_db1/email.asp, line 7

What's wrong with it?

Thanks.




yb2 -> RE: Send Mail (7/16/2006 8:38:23)

Are you using the IIS server to send the mail or a remote email server? It sounds like you either don't have SMTP setup on the IIS or you've specified a wrong address or something for the email server.

There's nothing wrong with the code you posted.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875