how to configure SMTP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how to configure SMTP

indela
hi all,

i want to config SMTP. i entered all data in ${ofbiz install dir}/framework/common/config/general.properties


mail.notifications.enabled=Y

# -- redirect all mail notifications to this address for testing
#mail.notifications.redirectTo=

# -- the default mail server to use
mail.smtp.relay.host=smtp.gmail.com

# -- SMTP Auth settings
mail.smtp.auth.user=indelasreenu@gmail.com
mail.smtp.auth.password=mypassword

# -- Additional Required Fields needed for Gmail and other non traditional smtp servers
# -- These added fields also work for Yahoo business mail for instance
# -- Gmail smtp port can be either 465 or 587
mail.smtp.port=465
# -- Gmail requires StartTLS
mail.smtp.starttls.enable=true

# -- Gmail requires a JSSE socket factory, the following socketFactory settings will override JavaMail's default socketFactory settings
# -- Port needs to be the same as mail.smtp.port
mail.smtp.socketFactory.port=465
#mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
#--Fallback [true|false] determines whether you will allow a non secure connection if you are unable to get a secure one
mail.smtp.socketFactory.fallback=false

but its not sending mail.
when i was trying forget password. send new password to user mail id but it showing error is


The Following Errors Occurred:

Problems with configuration; please contact customer service.


please help me
Reply | Threaded
Open this post in threaded view
|

Re: how to configure SMTP

Robert Gan
I havent tried, but maybe you have to rebuild it (./ant build), or delete the cache...

but its just an idea
Reply | Threaded
Open this post in threaded view
|

RE: how to configure SMTP

Marcus Peixoto
In reply to this post by indela
My configuration is exactly the same and it's working fine.
The only thing I noticed is that you have enabled the notification but haven't informed the email to redirect to.

mail.notifications.enabled=Y
#mail.notifications.redirectTo=


Here is my configuration:

mail.notifications.enabled=Y
mail.notifications.redirectTo=xxxxx@xxxxx
mail.smtp.relay.host=smtp.gmail.com
mail.smtp.auth.user=xxxxxx@xxxxxx
mail.smtp.auth.password=yyyyyyyyyyyyy
mail.smtp.port=465
mail.smtp.starttls.enable=true
mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false
mail.address.caseInsensitive=N
mail.debug.on=Y

Regards,

Marcus Peixoto


Reply | Threaded
Open this post in threaded view
|

RE: how to configure SMTP

indela
thanks all,

Now SMTP is working fine.....
Reply | Threaded
Open this post in threaded view
|

RE: how to configure SMTP

Robert Gan
what was the problem at the end?
Reply | Threaded
Open this post in threaded view
|

RE: how to configure SMTP

Mohd Viqar
This line should be uncommented
#mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory