hi,
i got a problem in sending mail . i used TemplateEmailSender class to send email.I did configuration in the following components.
SMTPEmail component
# /atg/dynamo/service/SMTPEmail
#Wed Jul 18 15:26:45 EDT 2007
defaultFrom=
x...@gmail.compassword=xxxxx
username=
xxx...@gmail.comI gave my email id and password as username and password and in my configuration component i did the following configuration
emailHandlerHost=
smtp.gmail.comemailHandlerPort=465
defaultDynamoPrefix=
I am trying to send a mail using gmails smtp host but i am getting the following error
23:27:24,212 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
23:27:24,216 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
23:27:24,246 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
23:27:24,247 INFO [STDOUT] DEBUG SMTP: trying to connect to host "
smtp.gmail.com", port 465, isSSL false
23:27:34,207 ERROR [SMTPEmail] Could not open an SMTP connection
23:27:34,234 ERROR [ProfileFormHandler] TemplateEmailInfo: Unable to send email
CAUGHT AT:
CONTAINER:atg.userprofiling.email.TemplateEmailException: atg.service.email.EmailException: Could not open an SMTP connection; SOURCE:atg.service.email.EmailException: Could not open an SMTP connection
at atg.userprofiling.email.TemplateEmailSender.doSendEmailMessage(TemplateEmailSender.java:2323)
at atg.userprofiling.email.TemplateEmailSender.doSendEmailMessage(TemplateEmailSender.java:1983)
at atg.userprofiling.email.TemplateEmailSender.sendEmailMessage(TemplateEmailSender.java:1737)
at atg.userprofiling.email.TemplateEmailSender.sendEmailMessage(TemplateEmailSender.java:1525)
at fender.userprofiling.FENDERProfileFormHandler.postCreateUser(FENDERProfileFormHandler.java:196)
at atg.userprofiling.ProfileForm.handleCreate(ProfileForm.java:1114)
at atg.userprofiling.ProfileFormHandler.handleCreate(ProfileFormHandler.java:369)
at fender.userprofiling.FENDERProfileFormHandler.handleCreate(FENDERProfileFormHandler.java:
Can any one plz tell me whats the problem and also what will be the suitable value for emailhandlerHost and port so that i can send an email from my local system