How To Send An Automated Email Using VBScript


Tour : How to send an automated email using VBScript

Step 1. Let’s Start to Learn “How to send an automated email using VBScript”
Step 2. Program Code to send Automated email
Step 3. Required Variable Declaration
Step 4. Define a value to declared variables
Step 5. Declare “CDO.Message” object
Step 6. Configure required values to send an email
Step 7. Compose an email to send
Step 8. Finally send composed email
Step 9. Release all Created object
Step 10. Congratulation :)
Step 11. Visit GoLearningBus.Com for more ” training

1. Let’s Start to Learn “How to send an automated email using VBScript”
Open the VB Script editor either from desktop VBScript shortcut or from start menu.

2. Program Code to send Automated email
Here you see the VBScript Program “To Send an automated email using VBScript”.In next slides we will discuss whole code line by line for better understanding.

3. Required Variable Declaration
Here we Declare the Required variables.
We use this variable as global variable and use when we declare required object or set any value to this variable.

4. Define a value to declared variables
Before sending an email we need some values like from which account we want to send email means sender email id, Receiver email id , Subject line of email and email body message which can be either in string format or html format.Here you can see the sample variable value which we will use in the program.

5. Declare “CDO.Message” object
To send an email we need “CDO.Message” object , so here we create required object and also we create email Configuration object as well because to send an email we need to set configuration values

6. Configure required values to send an email
Before sending an email we need to configure some email setting like here we set configuration value using created email configuration object.To know more about configuration pleaseClick here

7. Compose an email to send
After configuration an email setting we need to compose an email which we want to send.To compose an email we need sender email id , receiver email id, subject line of email, body message of email. if we want to CC or BCC this email then we require that email id as well CC and BCC both is optional.

8. Finally send composed email
Now after compose email we are ready to send email , so now we update all the fields of email object and finally call the send email method to send an email.after calling send email method email will deliver the receiver email id.

9. Release all Created object
Now after sending an successful email we need to release all created object. so in this program we create email object and email configuration object. here we set both object to nothing means both objects are release.

10. Congratulation :)
Congratulation ! We have successfully Write our VBscript program “To send an automated email using VBScript”.Now run the script to get/send an automated email using VBScript

11. Visit GoLearningBus.Com for more ” training
Visit GoLearningBus.Com for more ” guided tours and training. For only you can access more than 300 apps for a lifetime of learning and training.