Re: Serverobjects AspMail Problem



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.
>
>
>


.



Relevant Pages

  • Re: Serverobjects AspMail Problem
    ... > gives error after submitting; ... > sub sendmail ... > Mailer.FromName = senderemail ... > if notthen response.write "Mail send failure. ...
    (microsoft.public.inetserver.asp.components)
  • Serverobjects AspMail Problem
    ... sub sendmail ... Set Mailer = Server.CreateObject ... Mailer.FromName = senderemail ... if notthen response.write "Mail send failure. ...
    (microsoft.public.inetserver.asp.components)
  • Re: Serverobjects AspMail Problem
    ... > gives error after submitting; ... > sub sendmail ... > Mailer.FromName = senderemail ... > if notthen response.write "Mail send failure. ...
    (microsoft.public.inetserver.asp.components)

Loading