How to use ASP & Sending Mail with CDO.Message (Reply-To Header) This is learn/tutorial asp developers how to using ASP script Sending Mail with CDO.Message (Reply-To Header)
ShotDev Focus:
- ASP & Sending Mail with CDO.Message (Reply-To Header)
Example
asp_cdomessage_reply.asp
<html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Dim myMail,HTML,strMsg Set myMail = Server.CreateObject("CDO.Message") strMsg = "" strMsg = strMsg &"<h1>My Message</h1><br>" strMsg = strMsg &"<table width='285' border='1'>" strMsg = strMsg &" <tr>" strMsg = strMsg &" <td><div align='center'><strong>My Message </strong></div></td>" strMsg = strMsg &" <td><div align='center'><font color='red'>My Message</font></div></td>" strMsg = strMsg &" <td><div align='center'><font size='2'>My Message</font></div></td>" strMsg = strMsg &" </tr>" strMsg = strMsg &" <tr>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" </tr>" strMsg = strMsg &" <tr>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" <td><div align='center'>My Message</div></td>" strMsg = strMsg &" </tr>" strMsg = strMsg &"</table>" myMail.From = "webmaster@shotdev.com" myMail.ReplyTo ="reply@shotdev.com" myMail.To = "member@shotdev.com" myMail.Subject = "My Subject" myMail.HTMLBody = strMsg myMail.Send Response.write ("Mail Sending.") Set myMail = Nothing %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_cdomessage_reply.asp
Screenshot
3amateur…
…