converting from ASPMail to ASPEmail

Discussion in 'ASP General' started by shank, Dec 31, 2004.

  1. shank

    shank Guest

    Has anyone converted from ASPMail to ASPEmail...?

    1) I get the following error. Can you offer some insight?

    2) Is there an equivalent to this line: Mail.ContentType = "text/html" ...?

    thanks!
    ---------------------------------
    Persits.MailSender.4 error '800a0006'
    501 Syntax error. Syntax:{RCPT TO:<address> [SIZE=msgSize]}
    /email_to_sales.asp, line 225 (line 225 is: Mail.Send)
    ---------------------------------
    <%
    Set Mail = Server.CreateObject("Persits.MailSender")
    Mail.Host ="mail.mydomain.com"
    Mail.From = ""
    Mail.FromName = "Purchases Sales Department"
    Mail.AddAddress "", "Purchases Sales Department"
    Mail.AddBCC "Purchases Support", ""
    Mail.AddReplyTo Email, FirstName & " " & LastName
    Mail.Priority = 1
    Mail.Subject = "Sold By: " & (rsGetCustInfo.Fields.Item("HostURL").Value)
    'Mail.ContentType = "text/html"
    %>
    <%
    HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & vbCrLf
    HTML = HTML & "<html><head><title>Online Order</title></head>"
    HTML = HTML & "the rest of my message...."
    %>
    <%
    Mail.IsHTML = True
    Mail.Body = HTML
    Mail.Send
    Set Mail = Nothing
    %>
     
    shank, Dec 31, 2004
    #1
    1. Advertising

  2. > 1) I get the following error. Can you offer some insight?

    Sure, every other property goes "email", "pretty name", except this one,
    which you seem to have got backwards:

    > Mail.AddBCC "Purchases Support", ""




    > 2) Is there an equivalent to this line: Mail.ContentType = "text/html"

    ....?

    Mail.IsHTML = True

    You might consider looking at the manual, then you don't have to wait for
    someone else to look at the manual for you...
    http://www.aspemail.com/

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)
     
    Aaron [SQL Server MVP], Dec 31, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Preston Crawford
    Replies:
    0
    Views:
    433
    Preston Crawford
    Feb 4, 2004
  2. Chris A.

    ASPMAIL

    Chris A., Feb 29, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,376
    Ken Cox [Microsoft MVP]
    Feb 29, 2004
  3. GaryDean

    ASPMail Question

    GaryDean, Dec 17, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    351
    Barrie Wilson
    Dec 17, 2007
  4. b_boy

    ASPmail Vs Cdonts

    b_boy, Sep 17, 2003, in forum: ASP General
    Replies:
    1
    Views:
    104
    Atrax
    Sep 18, 2003
  5. Steve Bywaters

    ASPmail

    Steve Bywaters, Jan 19, 2004, in forum: ASP General
    Replies:
    6
    Views:
    132
    Roland Hall
    Jan 19, 2004
Loading...

Share This Page