All source code in ASP/ VbScript Ask a ASP/ VbScript Pro Discussion Forum Categories All jobs in ASP/ VbScript
purpose,script,generate,code,send,mail,using,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 286,058. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login


 

 


Latest postings for ASP/ VbScript.
EXPORT WINDOWS REGISTRY DATA - INF FILE GENERATOR
By cyrus rynlee on 11/18


Click here to see a screenshot of this code!select, insert, update, delete Statements with ASP and Access Database
By carrzkiss on 10/10

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

CDO static mail generator

Print
Email
 
VB icon
Submitted on: 9/27/2000 3:54:36 PM
By: Anthony J. Biondo Jr  
Level: Beginner
User Rating: Unrated
Compatibility:ASP (Active Server Pages)

Users have accessed this code 23496 times.
 
author picture
(About the author)
 
     The purpose of this script is to generate the code to send mail using a regular mail server to someone. You type the message in the box using carriage returns... and supply a sender and receiver, and vola you ahve the code to send mail using ASP/CDO
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :CDO static mail generator
    '**************************************
    http://www.chernoblechicken.com
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

    '**************************************
    ' Name: CDO static mail generator
    ' Description:The purpose of this script
    '     is to generate the code to send mail usi
    '     ng a regular mail server to someone. You
    '     type the message in the box using carria
    '     ge returns... and supply a sender and re
    '     ceiver, and vola you ahve the code to se
    '     nd mail using ASP/CDO
    ' By: Anthony J. Biondo Jr
    '
    ' Returns:Code which you can copy and pa
    '     ste to do CDO mail on your website.
    '
    'This code is copyrighted and has    ' limited warranties.Please see http://w
    '     ww.Planet-Source-Code.com/vb/scripts/Sho
    '     wCode.asp?txtCodeId=6335&lngWId=4    'for details.    '**************************************
    
    <HTML>
    <HEAD>
    <TITLE>CDO MAIL GENERATOR</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    <FORM method="post" action="generateCdo_static.asp?create=1">
    <FONT size="2" face="Verdana, Arial, Helvetica, sans-serif"><B>CDO Mail Generator 
    (Static)</B></FONT><BR>
    <TABLE width="484" border="0">
    <TR> 
    <TD width="116" valign="middle"> 
    <DIV align="right"><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">Mail 
    From: </FONT> </DIV>
    </TD>
    <TD width="358"> 
    <INPUT type="text" name="myFrom" size="40">
    </TD>
    </TR>
    <TR> 
    <TD width="116" valign="middle"> 
    <DIV align="right"><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">Mail 
    To: </FONT></DIV>
    </TD>
    <TD width="358"> 
    <INPUT type="text" name="myTo" size="40">
    </TD>
    </TR>
    <TR> 
    <TD width="116" valign="middle"> 
    <DIV align="right"><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">Mail 
    Subject: </FONT> </DIV>
    </TD>
    <TD width="358"> 
    <INPUT type="text" name="mySubject" size="40">
    </TD>
    </TR>
    <TR> 
    <TD width="116" valign="middle"> 
    <DIV align="right"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="2">Mail 
    Body:</FONT></DIV>
    </TD>
    <TD width="358" rowspan="2">
    <TEXTAREA name="myBody" cols="40" rows="15"></TEXTAREA>
    </TD>
    </TR>
    <TR> 
    <TD valign="middle">  </TD>
    </TR>
    </TABLE>
    <BR>
    <INPUT type="submit" name="Submit" value="Submit">
    </FORM>
    </BODY>
    </HTML>
    <%
    ' CDO STATIC MAILER
    ' writeen by: Anthony J. Biondo Jr. (ant
    '     honyb@inbridesburg.com)
    '
    '
    myTo = request.form("myTo")
    myFrom = request.form("myFrom")
    mySubject=request.form("mySubject")
    myBody = request.form("myBody")
    mycreate = request.querystring("create")
    if mycreate = 1 Then
    myBody = replace(myBody, chr(13), chr(34) & "&vbcrlf&" &chr(34))
    response.write "<FONT face='Verdana, Arial, Helvetica, sans-serif' size='2'>"
    response.write "<B>CUT AND PASTE CODE BELOW</B><BR><BR>"
    response.write "myTo=" & chr(34) & myTo & chr(34) & "<BR>"
    response.write "Dim MyMail As CDONTS.NewMail<BR>"
    response.write "Set MyMail = CreateObject("&chr(34) & "CDONTS.NewMail" & chr(34) &")<BR>"
    response.write "MyMail.To = myTo<BR>"
    response.write "MyMail.From = " & chr(34) & myFrom & chr(34) & "<BR>"
    response.write "MyMail.Subject = " & chr(34) & mySubject & chr(34) & "<BR>"
    response.write "MyMail.Body =" & chr(34) & myBody & chr(34) & "<BR>"
    response.write "MyMail.Send " & "<BR>"
    response.write "Set MyMail = Nothing " & "<BR></FONT>"
    End if
    %>


Other 10 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/27/2001 2:34:43 AMHey

Hmmmm okay I see that I can send but what about recieving??? Any ideas on how I go about doing that or do I need to create my own dll for that???
(If this comment was disrespectful, please report it.)

 
7/23/2003 12:38:47 PM

I am finding difficulty it says page not found for "generateCdo_static.asp"? please help...
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2009 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.