IIS ASP - converting from ASPMail to ASPEmail

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > December 2004 > converting from ASPMail to ASPEmail





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author converting from ASPMail to ASPEmail
shank

2004-12-30, 8:47 pm

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 = "sales@mydomain.com"
Mail.FromName = "Purchases Sales Department"
Mail.AddAddress "sales@mydomain.com", "Purchases Sales Department"
Mail.AddBCC "Purchases Support", "support@mydomain.com"
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
%>


Aaron [SQL Server MVP]

2004-12-31, 2:47 am

> 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", "support@mydomain.com"




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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com