View Full Version : email messaging sytem that sends out asp coded files?
07-17-2007, 06:27 PM
i have a newsletter that has asp code within the file. i need to send this newsletter out via some sort of messaging system but, most messaging systems only allow html and not asp. does such a system even exist?
07-17-2007, 06:47 PM
If you use an ASP Mail system (CDOSYS, JMail, ASPEmail), then you can use ASP to build your ASP/HTML page and send it out that way.
Use one of the free clients above (my recommendation is ASPEmail, but some say JMail is better. CDOSYS is included with ASP and IIS 5/6, but the documentation is horrific) and use the IsHTML = true setting and send your email as HTML.
07-17-2007, 08:30 PM
Here's the code I use. For more examples check this site out.
Set objCDO = Server.CreateObject("CDO.Message")
strFrom = "firstname.lastname@example.org"
strTo = "email@example.com"
strMessage = "This person was just registered.<br>Name - " & Request.Form("txtFirstName") & " " & Request.Form("txtLastName")
objCDO.From = strFrom
objCDO.To = strTo
objCDO.Subject = "New Registration"
objCDO.TextBody = strMessage
Set objCDO = Nothing
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.