Re: Serverobjects AspMail Problem
- From: "Menolo" <menolo@xxxxxxxxxx>
- Date: Tue, 17 May 2005 00:05:44 +0100
Thanks, tried CDOSYS already along with Persits AspEmail, JMail all with
similar issues of not recognising recipients or not working at all, this is
all probably to do with SMTP relaying, no luck either with changing
'Mailer.AddRecipient', AspMail works best but I wish to disable its
reporting the error if possible.
"Menolo" <menolo@xxxxxxxxxx> wrote in message
news:d60m33$km9$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi, my forms send fine, the email addresses receive the data, but it still
> gives error after submitting;
>
> "mail sent failure. Error was 503 bad sequence of commands. you must
> specify the recipients of a message before you can send it"
>
> this happens for all email addresses other than those which are the same
> as my domain name.
>
>
> this is my incemail.asp
>
> <%
>
> emailcomponent="ServerObjects ASPMail"
> sub sendmail(recipient,senderemail,subject,message)
> Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
> Mailer.RemoteHost = smtpserver
> Mailer.FromAddress= defaultemail
> Mailer.Subject = subject
> if senderemail<>"" then
> Mailer.Replyto = senderemail
> Mailer.FromName = senderemail
> end if
> Mailer.BodyText = message
> recipients=split(recipient,vbcrlf)
> for x=0 to ubound(recipients)
> if recipients(x)<>"" then Mailer.AddRecipient recipients(x),recipients(x)
> next
> if not(Mailer.SendMail) then response.write "Mail send failure. Error was
> " & Mailer.Response
> set Mailer=nothing
> end sub
>
> %>
>
> if it cannot be fixed, how can I get the above code to ignore errors or at
> least hide from view.
> Thanks for any help.
>
>
>
.
- References:
- Serverobjects AspMail Problem
- From: Menolo
- Serverobjects AspMail Problem
- Prev by Date: Advanced Soap communication with traditional ASP
- Next by Date: RE: ASP Help Needed
- Previous by thread: Re: Serverobjects AspMail Problem
- Next by thread: aspSmartImage HELP!
- Index(es):
Relevant Pages
|
Loading