April 3, 2020
Estimated Post Reading Time ~

Setting up Gmail as your SMTP server in CQ5

The Problem You want to set up an SMTP server to let you send mail out of your local instance of CQ5 author.

The Solution 
Set up a GMail account (or use your own if you feel comfortable where you are storing the information).

The steps:
1. Go to the Felix Console
http://localhost:4502/system/console/configMgr
2. Scroll down and click to edit the Day CQ Mail Service OSGi config.
3. Enter the following details:

SMTP Server Host - smtp.gmail.com
SMTP Server Port - 465
SMTP User - your username (i.e. john.doe@gmail.com)
SMTP Password - your password
From Address - your email
SMTP Use SSL - true

4. Hit Save
5. Run a user through a workflow containing a group of which you are a member, or send out a newsletter to a group which you are a part of.

You should receive the email in your inbox.

It is worth noting that for production environments, you should set up a production-grade SMTP service rather than use Gmail.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.