This is a discussion on Sending Email with ASP and CDOSYS within the ASP Code Samples forums, part of the ASP Development category; How to send a simple text email: Code: <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a ...
| |||||||
|
#1
| ||||
| ||||
| How to send a simple text email: Code: <%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
Code: <%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.Bcc="someoneelse@somedomain.com"
myMail.Cc="someoneelse2@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
Code: <%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.Send
set myMail=nothing
%>
Code: <%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.AddAttachment "c:\mydocuments\test.txt"
myMail.Send
set myMail=nothing
%>
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
| The Following User Says Thank You to jmurrayhead For This Useful Post: | ||
Rebelle (November 13th, 2008) | ||
|
#2
| ||||
| ||||
| Good stuff....with my form, I used the HTML. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Emails Using ASP.NET | richyrich | .Net Code Samples | 5 | July 6th, 2009 04:21 AM |
| help with email validation | Rebelle | JavaScript Programming | 13 | August 21st, 2008 10:57 AM |
| send Bulk email | peebman2000 | .Net Development | 2 | June 20th, 2008 10:06 AM |
| Sending Email using CDOSYS & Classic ASP | richyrich | ASP Code Samples | 0 | March 17th, 2008 09:52 AM |