March 18, 2020
Estimated Post Reading Time ~

Configuring Fake SMTP with AEM/Adobe CQ5

How to configure fake-SMTP with AEM?
Fake SMTP is very useful to test the mailing program in your application. Fake SMTP is an SMTP server with GUI programmed in JAVA. We can simply use it as a mail receiver. Users can double click on received mail to open it to get an idea about the mail that is sent through the code. It is highly helpful for testing HTML templates in emails.

In order to use Fake SMTP, we need to configure the Day CQ Mail Service bundle in AEM and FakeSMTP server.
The process is explained stepwise below
1. Download FakeSMTP jar file[version 2.0] from here
2. Paste FakeSMTP jar in the AEM folder along with the CQ jar.
3. Open command prompt in the folder where the jar is present and enter the command 

java -jar fakeSMTP.jar -s -p 2525 -a 127.0.0.1
where “fakeSMTP.jar” is a jar file name. The server will open like below.

Navigate to CQ web console, search [ctrl+F] for “Day CQ mail Service”.
Enter the below configurations.

Click “Save” and test your program.

You have successfully configured the Fake SMTP server with AEM.



By aem4beginner

No comments:

Post a Comment

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