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: [email protected]

On Sun, Dec 26, 2010 at 12:58 AM, sayoojt <[email protected]> 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=ad...@*****.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 via email to