Add to Favorites    Make Home Page 5154 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Components Home » Send Outlook message from script


Search Projects & Source Codes:

Title Send Outlook message from script
Description This allows you to fill out and send an Outlook message from script. Uncomment 2 lines to create a sub that can be included in a larger script. Great for admins who routinely send reports.
Category ASP » Components
Hits 4132
Code Select and Copy the Code
'************************************** ' Name: Send Outlook message from script ' ' Description:This allows you to fill ou ' t and send an Outlook message from scrip ' t. Uncomment 2 lines to create a sub tha ' t can be included in a larger script. Gr ' eat for admins who routinely send report ' s. ' ' Inputs:The script, as shown, is all ha ' rdcoded, but you could easily call "inpu ' tbox", or read inputs off a form to fill ' in the items. If you need help adapting ' this to your needs, let me know - I'm ha ' ppy to help you customize it. ' ' Returns:You can choose to preview by u ' sing the .display, or send without previ ' ew by using .send ' ' Assumes:As with all .vbs scripts, you ' must have the scripting runtime. You als ' o need Outlook installed. ' 'Uncomment the sub and 'end sub lines to use this in a program. ' 'Leaving these commented will allow you ' 'to run this as a standalone script 'sub SendAttach() 'Open mail, adress, attach report Dim objOutlk 'Outlook Dim objMail 'Email item Dim strMsg Const olMailItem = 0 'Create a new message Set objOutlk = CreateObject("Outlook.Application") Set objMail = objOutlk.createitem(olMailItem) objMail.To = "" = "" 'Enter an address here To include a carbon copy; bcc is For blind carbon copy's 'Set up Subject Line objMail.subject = "I saw your code On Planet Source Code on " & CStr(Month(Now)) & "/" & CStr(Day(Now)) & "/" & CStr(Year(Now)) 'Add the body strMsg = "Your code rocks!" & vbCrLf strMsg = strMsg & "I voted and gave you an excellent rating!" 'To add an attachment, use: 'objMail.attachments.add("C:MyAttachmentFile.txt") objMail.body = strMsg objMail.display 'Use this To display before sending, otherwise call objMail.Send to send without reviewing 'Clean up Set objMail = Nothing Set objOutlk = Nothing 'end sub

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld


Google Groups Subscribe to SourceCodesWorld - Techies Talk

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!

ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page


Google Search


Source Codes is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions
Copyright ©2003-2020, All Rights Reserved.
Page URL:

Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review