SMTP WITH GMAIL not working

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

SMTP WITH GMAIL not working

sayoojt
Below is the setting i used for smtp email setting. I tried most of the ways pointed by forum, posts, but nothing is working. I am totally frustrated now. Somebody please help me. Also am new to Ofbiz.
Appreciate a quick help :(

####
# OFBiz General Properties
# $Id: general.properties 7455 2006-04-30 19:01:55Z jonesde $
####

# -- unique instance id (20 char max)
unique.instanceId=ofbiz1

# -- the default currency to use for prices, etc
currency.uom.id.default=USD

# -- the default decimal format for currency
currency.decimal.format=##0.00

# -- locales made available separated by comma's
#locales.available=en,fr,nl

# -- the default country for drop downs
#country.geo.id.default=USA

# -- the default trackingCodeId to use for Partner Managed Tracking Codes
partner.trackingCodeId.default=

# -- USPS address matching string - should be all lower case, no spaces, pipe delimited
usps.address.match=(^.*?p[\\. ]*o[\\. ]*box.*$)|(^.*?post.*?office.*?box.*$)|((^|(^.*? ))r[\\. ]*r[\\. ]*(( +)|([0-9#]+)).*$)|(^.*?rural.*?route.*$)

# -- mail notifications enabled (Y|N)
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=localhost
mail.smtp.relay.host=smtp.gmail.com

# -- SMTP Auth settings
mail.smtp.auth.user=admin@*****.com
mail.smtp.auth.password=******

# -- 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

# -- HTTP upload max size in bytes (-1 for unlimited)
http.upload.max.size=-1
Reply | Threaded
Open this post in threaded view
|

Re: SMTP WITH GMAIL not working

pankaj savita
Hi Sayoojt,

Enable following lines in your general.properties file to create Socket,
Without establishing Socket Connection we cannot send mail.
# -- 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"
Hope this could help you.

--
Thanks & Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: [hidden email]

On Sun, Dec 26, 2010 at 12:58 AM, sayoojt <[hidden email]> wrote:

>
> Below is the setting i used for smtp email setting. I tried most of the
> ways
> pointed by forum, posts, but nothing is working. I am totally frustrated
> now. Somebody please help me. Also am new to Ofbiz.
> Appreciate a quick help :(
>
> ####
> # OFBiz General Properties
> # $Id: general.properties 7455 2006-04-30 19:01:55Z jonesde $
> ####
>
> # -- unique instance id (20 char max)
> unique.instanceId=ofbiz1
>
> # -- the default currency to use for prices, etc
> currency.uom.id.default=USD
>
> # -- the default decimal format for currency
> currency.decimal.format=##0.00
>
> # -- locales made available separated by comma's
> #locales.available=en,fr,nl
>
> # -- the default country for drop downs
> #country.geo.id.default=USA
>
> # -- the default trackingCodeId to use for Partner Managed Tracking Codes
> partner.trackingCodeId.default=
>
> # -- USPS address matching string - should be all lower case, no spaces,
> pipe delimited
> usps.address.match=(^.*?p[\\. ]*o[\\.
> ]*box.*$)|(^.*?post.*?office.*?box.*$)|((^|(^.*? ))r[\\. ]*r[\\. ]*((
> +)|([0-9#]+)).*$)|(^.*?rural.*?route.*$)
>
> # -- mail notifications enabled (Y|N)
> 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=localhost
> mail.smtp.relay.host=smtp.gmail.com
>
> # -- SMTP Auth settings
> mail.smtp.auth.user=admin@*****.com
> mail.smtp.auth.password=******
>
> # -- 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
>
> # -- HTTP upload max size in bytes (-1 for unlimited)
> http.upload.max.size=-1
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/SMTP-WITH-GMAIL-not-working-tp3163915p3163915.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: SMTP WITH GMAIL not working

sayoojt
Thanks pankaj, i tried that as well but the result remains same. by the way i have hosted the application in EC2 server.
Do you have any idea where the log files usually will reside in server. if you can guide me in that, i can show the actual error message am getting.

Thanks again for responding to the issue.
Reply | Threaded
Open this post in threaded view
|

Re: SMTP WITH GMAIL not working

Jacques Le Roux
Administrator
Please use rather user ML for such questions, see why here :
http://cwiki.apache.org/confluence/display/OFBADMIN/Mailing+Lists#MailingLists-DesignanddevelopmentList:dev@...

Thanks

Jacques

From: "sayoojt" <[hidden email]>

> Thanks pankaj, i tried that as well but the result remains same. by the way i
> have hosted the application in EC2 server.
> Do you have any idea where the log files usually will reside in server. if
> you can guide me in that, i can show the actual error message am getting.
>
> Thanks again for responding to the issue.
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/SMTP-WITH-GMAIL-not-working-tp3163915p3164157.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: SMTP WITH GMAIL not working

sayoojt
In reply to this post by sayoojt
i got used workaround. best thing is to use some other smtp server for sending mails and forget about google apps/gmail for sending mails from system.
i got it working like that.
Thanks guys for your help.