ASP Mail component

Why I can't send email with ASPMAIL component? I've used simple code sample from ASPMail site but i doesn't work.

Any answer?

Thanks
 
grafxdesigns said:
Why I can't send email with ASPMAIL component? I've used simple code sample from ASPMail site but i doesn't work.

Any answer?

Thanks

Well...since you didn't tell us the code you are using....how are we to help? :)
 
grafxdesigns said:
Why I can't send email with ASPMAIL component? I've used simple code sample from ASPMail site but i doesn't work.

Any answer?

Thanks

Could you point me to the page your script is located at? ASPMail as well as CDONTS are working fine
 
Yash said:
Could you point me to the page your script is located at? ASPMail as well as CDONTS are working fine

Try this code

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Joe?s Widgets Corp."
Mailer.FromAddress= "[email protected]"
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.AddRecipient "John Smith", "[email protected]"
Mailer.Subject = "Great SMTP Product!"
Mailer.BodyText = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if

From ASPMail site

Thanks
 
grafxdesigns said:
I used ASPMail sample code from their site. Please refer above. Thanks
I guess you should set the RemoteHost to your mail server (mail.yourdomain.com) and From - to a valid mail account, for example postmaster @ yourdomain.com

(where "yourdomain" of course your domain :) )
 
StPatrick said:
I guess you should set the RemoteHost to your mail server (mail.yourdomain.com) and From - to a valid mail account, for example postmaster @ yourdomain.com

(where "yourdomain" of course your domain :) )

Yes, I've replaced all of that.
 
Hi

I recommend you wait till saturday. Our datacenter shift should be completed by then and if there were any problems in the windows server you are hosted on, it will be corrected. If the problem continues to exist after that, we'll look into it again. We can't make any changes to the servers now as a sync is taking place.
 
Your site now resides on the new servers. Is is still not working? If not, I recommend you open a ticket with us detailing your problem. You'd get a fast resolution through the ticket system.
 
Could you elaborate?

I had run this script on your website and it worked perfectly:

<html><head>
<title>serverobjectsmail.asp</title>
</head><body bgcolor="#FFFFFF">
<%
' ASPMail(tm) from www.serverobjects.com
' is not part of ASP per se,
' but a third party utility from serverobjects.com
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "mail.grafxdesigns.net"
Mailer.qmessage=true
Mailer.FromName = "Your Name"
Mailer.FromAddress = "[email protected]"
Mailer.AddRecipient "Yash","[email protected]"
Mailer.Subject = "ASPMail Tutorial"

Mailer.BodyText = "Hi. Just trying the mail example" & vbCrLf
Mailer.BodyText = "Line 2"
Mailer.BodyText = "Line 3"
If Mailer.SendMail then
Msg = "mail sent sucessfully!"
Else
Msg = "mail <b>not</b> sent sucessfully"
msg = msg & "<br>" & mailer.response
End If
response.write Msg

set mailer=nothing
%>
 
Back
Top