What Is The Vbscript To Send Email?

Asked By 0 points N/A Posted on -
qa-featured

Hello experts,

My boss told me to send some confidential files to him via vbscript. What is the specific vbscript to send email? I would also like to know about the perk of using a vbscript?

SHARE
Answered By 0 points N/A #107129

What Is The Vbscript To Send Email?

qa-featured

It is a visual basic scripting language from Microsoft. It is less complex than using formal language. And it also communicates more easily with the numerous technical scenarios. You should whom to send, who is sending, subject, body, how to send etc. And one more important thing is that you should send it as an html file. We will show you a sample mail here.

Emailobject = Createobject(CDO.Message”)

Emailobject. From = [email protected]

Emailobject.to = [email protected]

Emailobject. Subject= EmailConfiguration = emailObject.Configuration EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com" EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 345 EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 5 EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 3 EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "MY USER NAME” EmailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "MY PASSWORD” EmailConfiguration.Fields.Update Emailobject.Send Hope you excel in your job. Good luck

Related Questions