converting from ASPMail to ASPEmail

S

shank

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 = "(e-mail address removed)"
Mail.FromName = "Purchases Sales Department"
Mail.AddAddress "(e-mail address removed)", "Purchases Sales Department"
Mail.AddBCC "Purchases Support", "(e-mail address removed)"
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
%>
 
A

Aaron [SQL Server MVP]

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", "(e-mail address removed)"


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/
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top