SukhmeetSingh Posted March 30, 2008 Share Posted March 30, 2008 Hi friends,I am new to ASP and trying to send an email from a ASP page and using following code:I am running the following code on my localhost. Had it made some if i had run this code on a webserver instead of localhost?I am a bit confused..Help!!<%'dim sendto'sendto = "someone@someone.com"'Sends an emaildim mailset mail = Server.CreateObject("CDO.Message")mail.To = "someone@someone.com"mail.From = "someone@sonething.com"mail.Subject = Testingmail.TextBody = "This is a test"mail.Send()Response.Write("Mail Sent!")'Destroy the mail object!set mail = nothing%>I am getting CDO.Message.1 Error 80040220' I cant find out wht problem is. Can someone help me out with this? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 31, 2008 Share Posted March 31, 2008 If I do a Google search for the error message it says that the SendUsing config is invalid. That generally means that you don't have it set up to use an email server. You need to tell it which email server to use to send mail. If you do a search for "ASP email SendUsing" you should find some examples. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.