[thelist] ASPMail

Kevin Stevens kjs at ratking.co.uk
Sat Jan 25 08:37:01 CST 2003


Hi Gang
              I've been un-subbed for a while, hope this hasn't come up
recently. I have previously only used CDONTS for sending e-mails via an ASP
site, this time I have to use ASPMail and I'm getting an error. Here's the
code...

response.write request.form("vol_email")
response.write request.form("name")

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName   = request.form("name")
Mailer.FromAddress= request.form("vol_email")
Mailer.RemoteHost = "compvoltalk.co.uk"
Mailer.AddRecipient "KJS", "testing at ratking.co.uk"
Mailer.Subject    = "Visit to " &(request.form("client_name"))
Mailer.BodyText   = request.form("details")
if Mailer.SendMail then
  Response.Write "Mail sent..."
else
  Response.Write "Mail send failure. Error was " & Mailer.Response
end if

and the error I'm getting is this...

testing at ratking.co.ukkjsMail send failure. Error was 503 must have sender
and recipient first

The code I have used has been taken from
http://www.serverobjects.com/comp/Aspmail2.htm and modified to recieve data
from a form, but I am at a loss as to why it doesn't work. I have trawled
through Google to find an answer but all the sites use the same example from
the URL above, so no joy there. Anyone care to tell me what I'm doing wrong?

TIA

Kevin Stevens
kjs at ratking.co.uk





More information about the thelist mailing list