Expand my Community achievements bar.

SOLVED

Email configuration using gmail smtp on AEM6.1

Avatar

Level 2

Hi Guys, I have configured the smtp with the following details on http://localhost:4502/system/console/configMgr

SMTP Server Host Name : smtp.gmail.com

SMTP Server Port : 465

SMTP User: username

SMTP Password: password

From Address : email

SMTP Use SSL : true

Debug Email : true

I enabled https://www.google.com/settings/security/lesssecureapps as well.

I have configured this email id for workflow process handling in the user group, but I am getting the below error while executing the workflow and no email is sending and receiving.

DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc.,1.5.0-b01], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAP
DEBUG: failed to load address map, using defaults
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc.,1.5.0-b01]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false

Please guys provide me some input to configure the gmail smtp on adobe aem to test the application scenarios. 

thanks in advance...

cheers, Sandeep

1 Accepted Solution

Avatar

Correct answer by
Level 4
4 Replies

Avatar

Level 10

Hi Sandeep,

Please find this article which contains custom AEM workflow steps that sends email messages: https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html, which consists of your use case.

  • SMTP server host name - the SMTP server that you want to use.
  • SMTP server port - the server port to use, Typically this value is 25. 
  • Username - the user name for the SMTP user. 
  • Password - the corresponding password.

Thanks,
Ratna Kumar.

Avatar

Administrator

Hi Sandeep

Pleas try to configure gmail emails as stated in following links :- 

Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

//Creating custom AEM workflow steps that send email messages

 

Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

//Creating custom CQ email services

 

Link:- http://labs.6dglobal.com/blog/2012-08-20/sending-email-adobe-cq-api/

//Sending Email with the Adobe CQ API

 

Link:- http://wem.help.adobe.com/enterprise/en_US/10-0/wem/administering/notification.html#Configuring%20th...

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Level 4

Avatar

Level 5

FYI - Since labs.6dglobal.com is down, here's the same article on Sending Email via the CQ API on my personal blog: https://www.danklco.com/posts/2012/08/20/sending-email-adobe-cq-api/