Send email from VBScript using SMTP and Gmail


Post has moved to


About cmanios

This entry was posted in Networking, smtp and tagged , , , . Bookmark the permalink.

11 Responses to Send email from VBScript using SMTP and Gmail

  1. kevin says:

    nice. finaly a working one.

  2. Schuimtas says:

    error 0x80040217 : Server not available

  3. Sathish says:

    Works Fine.. Thanks for the script

  4. boss says:

    WORK :))

  5. Pravin Bankar says:

    Thanks .. It works for me… Thanks alot

  6. Deepa says:

    This works fine. Thanks..
    Can you pls let me know how to send email with a file attachment?

    • CMA says:

      Just add the following after “oMsg.TextBody = “If you can read this, the script worked!””

      oMsg.AddAttachment “C:\path_to_file\”

      • Pradeep says:

        I added the same but unable to run script after that. without attachment it’s working fine.

  7. faraz says:

    Excellent,,,,,,,,,,,, Works like a charm,,,,,,,,,,,,,
    Thank you very very much,,,,,, God bless you all the time.

  8. claudinei says:

    Working… very very thanks.
    In my case i need change the smtpusessl for false (configuration of my server email).

    Sorry for errors of ortography and concordance, i am brazilian and not talk english.

  9. Bhaskar says:

    Thank you very much. Very useful script. I added attachment, it is working fine.

    oMsg.AddAttachment Replace( myAttachment, “\”, “\\” ),””,””

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s