Quick Search for:  in language:    
User,send,email,with,html,files,display,Newsl
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 203,988. lines
 Jobs: 110. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login


 

 


Latest Code Ticker for ASP/ VbScript.
Click here to see a screenshot of this code!Rapid Classified v2.0
By Gurgen Alaverdian on 1/17

(Screen Shot)

Click here to see a screenshot of this code!Gallery Image with Zoom
By Marcelo Valle Franco on 1/12

(Screen Shot)

Click here to see a screenshot of this code!ASP Photo Competition
By Saul Bryan on 1/12

(Screen Shot)

Execute DTS package
By Himadrish Laha on 1/12


Connecting to a MySQL with ADO, DAO and RDO
By Ahmed Magdy Ezzeldin on 1/11


Automatic Form Insertion To Database
By Yasar Bayar on 1/11


Click here to see a screenshot of this code!Find Closest Physical Location (based on zip code, etc)
By Mark Kahn on 1/11

(Screen Shot)

String --> SQL Search Query
By Mark Kahn on 1/11


Replace text/Numbers for Images...
By Kenneth Nilsson on 1/9


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!

Affiliate Sites



 
 
   

Email with HTML files

Print
Email
 
VB icon
Submitted on: 11/21/2002 2:54:13 AM
By: Snoopy Jedi  
Level: Intermediate
User Rating: By 2 Users
Compatibility:ASP (Active Server Pages), HTML, VbScript (browser/client side)

Users have accessed this code 3498 times.
 

(About the author)
 
     User can send the email with a html files display in the email. It is for Newsletter purpose.

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :Email with HTML files
    '**************************************
    1) Pls email To me(paradsie45@hotmail.com) if you feel the code is good.
    2) Pls write it To your file.
    <META name="Author" content="s.j.">
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: Email with HTML files
    ' Description:User can send the email wi
    '     th a html files display in the email. It
    '     is for Newsletter purpose.
    ' By: Snoopy Jedi
    '
    'This code is copyrighted and has    ' limited warranties.Please see http://w
    '     ww.Planet-Source-Code.com/vb/scripts/Sho
    '     wCode.asp?txtCodeId=8024&lngWId;=4    'for details.    '**************************************
    
    <TITLE>Adding Attachment</TITLE>
    <%
    Sub ReplaceInBodyPart(bp)
    	Const strTokentoFind = "SIGNATURE"
    	Const strTokenToReplace = "Benny WONG Chee Khiun"
    	Set objStream = bp.GetDecodedContentStream
    	strContent = objStream.ReadText
    	strContent = Replace(strContent, strTokentoFind, strTokenToReplace)
    	objStream.Position = 0
    	objStream.SetEOS
    	objStream.WriteText strContent
    	objStream.Flush
    	Set objStream = nothing
    End Sub
    Sub modifyHtmlAndTextBodyParts(msg)
    	Set objBP = msg.HTMLBodyPart
    	ReplaceInBodyPart objBP
    	Set objBP = nothing
    	Set objBP = msg.TextBodyPart
    	ReplaceInBodyPart objBP
    	Set objBP = nothing
    End Sub
    Set objMsg = Server.CreateObject ("CDO.Message")
    With objMsg
    	.To = """Benny"" <xxx@xxx.com.my>"
    	.From = """Snoopy Jedi"" <xxx@hotmail.com>"
    	.Subject = "This is the subject"
    	.CreateMHTMLBody "file://c:\Attachment.htm"
    End With
    ModifyHtmlAndTextBodyParts objMsg
    objMsg.Send 
    Set objMsg = nothing
    %>


Other 6 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.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate 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
11/22/2002 8:22:50 AM:Bhushan Paranjpe
Good code,
Five Globes from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

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.
 
Name:
Comment:

 

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 | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 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.