ASPMail problem.

Results 1 to 2 of 2

Thread: ASPMail problem.

  1. #1
    minni Guest

    Default ASPMail problem.

    I get the following error..<BR><BR>503 Bad Sequence of Commands. <BR>What does this mean??<BR>My code is as follows..<BR>Set Mailer = Server.CreateObject("SMTPsvg.Mailer")<BR>Mailer.Fr omName = "ABC Corp."<BR>Mailer.FromAddress= ""<BR>Mailer.RemoteHost = ""<BR>Mailer.AddRecipient "john.", ""<BR>Mailer.Subject = "Need inquiries on quotations"<BR>strbody = ""CompanyName:"&Request.QueryString("txtcompany")< BR>if Request.QueryString("txtURL")&#060;&#062; "" then<BR> strBody = strBody & "CompanyURL:" & Request.QueryString("txtURL") <BR>else<BR> strBody = strBody & "CompanyURL: XXXXXX" <BR>end if<BR>Mailer.BodyText = strBody<BR>if Mailer.SendMail then<BR> Response.Redirect "Msg.asp?Msg=Thanks <BR>Your query has been submitted successfully.We will contact you within two business days."<BR>else<BR>response.write "Mail send failure. Error was " & Mailer.Response<BR> &#039Response.Redirect "Msg.asp?Msg=Mail send failure. Error was " & Mailer.Response<BR>end if

  2. #2
    sjv Guest

    Default RE: ASPMail problem.

    Check out the syntax for accessing the methods of the mail component

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts