다음을 통해 공유


Azure: Create website and send emails from WordPress hosted Azure web sites

Last week i started developing my WordPress powered site from Microsoft Azure and the site is running much faster but one thing that i figured out is that how to send emails from WordPress site.  The clear fact is that Windows Azure doesn’t provide you with an SMTP server. So what is the workaround?

SendGrid

What is the SendGrid email service?

SendGrid is a cloud-based email service that provides reliable transactional email delivery, scalability, and real-time analytics along with flexible APIs that make custom integration easy. Common SendGrid usage scenarios include:

  • Automatically sending receipts to customers.
  • Administering distribution lists for sending customers monthly e-fliers and special offers.
  • Collecting real-time metrics for things like blocked email, and customer responsiveness.
  • Generating reports to help identify trends.
  • Forwarding customer inquiries.
  • Processing incoming emails.

For more information, click here.

So lets get start – how to use this feature and enable my site to send emails to…

  1. Log in to the Azure Management Portal.
  2. In the lower pane of the management portal, click New.

http://i1.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_3.png?zoom=2&resize=209%2C44

Select Market Place

http://i2.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_6.png?zoom=2&resize=189%2C229

Choose SendGrid service from the developer service

http://i1.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_5.png?zoom=2&resize=810%2C393

to start with go for the free option, otherwise you can see the pricing options here

http://i0.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_7.png?zoom=2&resize=512%2C276

  • Your SendGrid account is now ready and you will see the message Successfull.
  • Your account and credentials are now created. You SendGrid is ready to send emails at this point.
  • Before you get into the other configuration, please take a note on the following values for later use from below screen.
  • To find your SendGrid credentials, Click Connection Info.

http://i2.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_10.png?zoom=2&resize=247%2C231

http://i2.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_11.png?zoom=2&resize=396%2C417

Note down the Username, Password and SMTP details for below configuration usage.

Now that you have an SMTP server ready to use, you need to plug those values into WordPress.

  • I found the WP Mail SMTP WordPress Plug-In to be extremely helpful for this.
  • After you install WP Mail SMTP, you’ll get a new option in your WordPress Settings menu named “Email”.

http://i2.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_14.png?zoom=2&resize=107%2C392

http://i1.wp.com/www.mynetworks.me/wp-content/uploads/2015/07/Snip20150714_15.png?zoom=2&resize=561%2C671

Click Save changes and then click test email (If you want to send to multiple email address, separate with comma.

Once you received the test email, you are good to go for website to configure with notifications.

Enjoy…and happy browsing