Sending Gmail Email via SMTP

Because I perform nearly all of my Workflow development and labwork locally on my workstation, I do not want to have Exchange and Outlook and all that running in a VM someplace just to handle AD and email testing, nor do I want to maintain some other free, open-source mail server.  I found that with a few dummy Gmail accounts and a Send Email Component Via SMTP component, I could do all the notification/email testing I need without the extra computing resource overhead.

Here’s a quick POC guide to setting it up.

First off, the SMTP component, by default, isn’t loaded into a new Workflow project.  You can either search for “Send Email” and click on the component in the unloaded libraries section, or you can add the “Email” library and find it that way.

For my tests, I’ve created two Gmail accounts – one for sending, and another for receiving.  For any Gmail account you’re going to use for sending email, go to this link while logged into that Gmail account:

https://www.google.com/settings/security/lesssecureapps

2014-12-18_10-38-42

And Enable access.

Set up the items on the Addressing tab, as required:

2014-12-18_9-01-14

For contents, just supply the required fields in whatever test capacity you’d like.

For Server Setup, configure thusly:

2014-12-18_9-53-40

Then you should be able to successfully test not only this POC, but also any email functionality needed for other projects (without the need for having and configuring mail servers).


Featured Components

Send Email Component Via SMTP


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s