cloudbees - Authentication Issue with SendGrid -
i signed sendgrid via cloudbees. trying send email via sendgrid smtp api following attributes:
port=587 host=smtp.sendgrid.net username=[username generated cloudbees, cloudbees_[myid] ] password=[the password login cloudbees grandcentral]
and getting following exception.
caused by: javax.mail.authenticationfailedexception: 535 authentication failed: bad username / password @ com.sun.mail.smtp.smtptransport$authenticator.authenticate(smtptransport.java:823) @ com.sun.mail.smtp.smtptransport.authenticate(smtptransport.java:756) @ com.sun.mail.smtp.smtptransport.protocolconnect(smtptransport.java:673) @ javax.mail.service.connect(service.java:295) @ org.springframework.mail.javamail.javamailsenderimpl.dosend(javamailsenderimpl.java:389)
... 38 more
what should password be? username wrong?
thanks in advance, al
don't use cloudbees credentials connect sendgrid, runtime injected ones (read http://wiki.cloudbees.com/bin/view/run/sendgrid). should use resource binding sendgrid directly injected jndi javamail session, setup simpler