Email configuration using gmail smtp on AEM6.1 | Community
Skip to main content
Sandeep_Rawat
Level 2
Dec 21, 2015 1:00 AM UTC
Solved

Email configuration using gmail smtp on AEM6.1

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Chandra_gupta
Chandra_guptaAccepted solution
Level 4
Dec 22, 2015 5:59 AM UTC

4 replies

dan_klco
Level 4
Feb 22, 2018 10:13 PM UTC

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/

Translate
Chandra_gupta
Chandra_guptaAccepted solution
Level 4
Dec 22, 2015 5:59 AM UTC
kautuk_sahni
Employee
Dec 21, 2015 4:56 AM UTC

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%20the%20Mail%20Service

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Translate
Kautuk Sahni
Ratna_Kumar
Level 10
Dec 21, 2015 4:22 AM UTC

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.

Translate