You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Madhi Krishnan <ma...@udyogmandir.in> on 2018/10/01 07:14:47 UTC

How to send and receive email in ofbiz

hey all..
Can you one please help me on how to send and receive email in ofbiz..
What are the changes that we have to do in general.properties files if any?
And do we need to run a smtp server on background?
Thank You.

Re: How to send and receive email in ofbiz

Posted by Madhi Krishnan <ma...@udyogmandir.in>.
Hello pritam..
Now it is working Prefectly..The problem was my account was not allowing to
acces the account from a less secure application..
Thank you for you help..
Thank You All

On Mon, Oct 1, 2018 at 3:50 PM Madhi Krishnan <ma...@udyogmandir.in>
wrote:

> I'm not using any personal smtp server..Used the gmail settings
>
> On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <pr...@hotwaxsystems.com>
> wrote:
>
>> Hello Madhi,
>>
>> Which settings you have used? Gmail settings or your personal SMTP server
>> setup?
>>
>> Thanks and Regards
>> --
>> *Pritam Kute* | Sr. Enterprise Software Engineer
>> HotWax Commerce <http://www.hotwax.co/>  by  HotWax Systems
>> <http://www.hotwaxsystems.com/>
>> Plot no. 80, Scheme no. 78, Vijay Nagar, Indore, M.P. India 452010
>> Cell phone: +91 82519 20492
>>
>> HotWax Systems recently received 8 mentions in *The Gartner Digital
>> Commerce Vendor Guide, 2016 *by Gartner, Inc., the world's leading IT
>> research and advisory company. Learn more about our research here
>> <https://www.gartner.com/technology/media-products/newsletters/HotWax/1-2UVLP6M/index.html>
>> .
>>
>> [image: Inline image 1]
>>
>>
>> On Mon, Oct 1, 2018 at 3:23 PM Madhi Krishnan <
>> madhi.krishnan@udyogmandir.in> wrote:
>>
>>> Hello pritam..
>>> I have made the changes that you have mentioned above..But its
>>> showing .errorMessage
>>> [CON] Connection error when sending message
>>> Actually i'm using the out of the box service called sendMail..And tried
>>> to
>>> execute it from webtool
>>>
>>> On Mon, Oct 1, 2018 at 2:11 PM Deepak Dixit <de...@hotwax.co>
>>> wrote:
>>>
>>> > Hi Madhi Krishnan
>>> >
>>> > To send email you need do configuration in general.properties files.
>>> You
>>> > can use SystemProperties data as Pritam mentioned.
>>> > To receive email you need to configure JavaMail Container located at
>>> the
>>> > following file
>>> >
>>> > framework/service/ofbiz-component.xml
>>> >
>>> > Thanks & Regards
>>> > --
>>> > Deepak Dixit
>>> >
>>> >
>>> > On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <
>>> pritam.kute@hotwaxsystems.com
>>> > >
>>> > wrote:
>>> >
>>> > > Hello Madhi,
>>> > >
>>> > > You can use your Gmail account for sending emails in the OFBiz.
>>> > >
>>> > > Here you need to add following properties to your system.
>>> > >
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.notifications.enabled"
>>> systemPropertyValue="Y"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
>>> > > gmail.com
>>> > > "/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your
>>> Gmail
>>> > > Address"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your
>>> > Gmail
>>> > > Password"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.starttls.enable"
>>> systemPropertyValue="true"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.socketFactory.port"
>>> > > systemPropertyValue="465"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.socketFactory.fallback"
>>> > > systemPropertyValue="false"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.socketFactory.class"
>>> > > systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
>>> > >
>>> > > If you are going to run your custom SMTP server on the same machine
>>> where
>>> > > OFBiz is running, then you need some different settings.
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.notifications.enabled"
>>> systemPropertyValue="Y"/>
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.smtp.relay.host"
>>> systemPropertyValue="localhost"/>
>>> > >
>>> > > <!-- If you want to redirect all email traffic from OFBiz instance to
>>> > > perticular XYZ email address, set following property -->
>>> > > <SystemProperty systemResourceId="general"
>>> > > systemPropertyId="mail.notifications.redirectTo"
>>> systemPropertyValue="XYZ
>>> > > Email Address"/>
>>> > >
>>> > > Hope this helps you. Please let me know if you are facing any
>>> > difficulties.
>>> > >
>>> > > Thanks and Regards
>>> > > --
>>> > > Pritam Kute
>>> > >
>>> > > On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
>>> > > madhi.krishnan@udyogmandir.in> wrote:
>>> > >
>>> > > > hey all..
>>> > > > Can you one please help me on how to send and receive email in
>>> ofbiz..
>>> > > > What are the changes that we have to do in general.properties
>>> files if
>>> > > any?
>>> > > > And do we need to run a smtp server on background?
>>> > > > Thank You.
>>> > > >
>>> > >
>>> >
>>>
>>

Re: How to send and receive email in ofbiz

Posted by Pritam Kute <pr...@hotwaxsystems.com>.
I have checked it on my local machine using "sendMail" service and it is
working fine for me. Can you recheck the properties which you have set once
again?

Thanks and Regards
--
Pritam Kute


On Mon, Oct 1, 2018 at 3:51 PM Madhi Krishnan <ma...@udyogmandir.in>
wrote:

> I'm not using any personal smtp server..Used the gmail settings
>
> On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <pr...@hotwaxsystems.com>
> wrote:
>
> > Hello Madhi,
> >
> > Which settings you have used? Gmail settings or your personal SMTP server
> > setup?
> >
> > Thanks and Regards
> > --
> > *Pritam Kute* | Sr. Enterprise Software Engineer
> > HotWax Commerce <http://www.hotwax.co/>  by  HotWax Systems
> > <http://www.hotwaxsystems.com/>
> > Plot no. 80, Scheme no. 78, Vijay Nagar, Indore, M.P. India 452010
> > Cell phone: +91 82519 20492
> >
> > HotWax Systems recently received 8 mentions in *The Gartner Digital
> > Commerce Vendor Guide, 2016 *by Gartner, Inc., the world's leading IT
> > research and advisory company. Learn more about our research here
> > <
> https://www.gartner.com/technology/media-products/newsletters/HotWax/1-2UVLP6M/index.html
> >
> > .
> >
> > [image: Inline image 1]
> >
> >
> > On Mon, Oct 1, 2018 at 3:23 PM Madhi Krishnan <
> > madhi.krishnan@udyogmandir.in> wrote:
> >
> >> Hello pritam..
> >> I have made the changes that you have mentioned above..But its
> >> showing .errorMessage
> >> [CON] Connection error when sending message
> >> Actually i'm using the out of the box service called sendMail..And tried
> >> to
> >> execute it from webtool
> >>
> >> On Mon, Oct 1, 2018 at 2:11 PM Deepak Dixit <de...@hotwax.co>
> >> wrote:
> >>
> >> > Hi Madhi Krishnan
> >> >
> >> > To send email you need do configuration in general.properties files.
> You
> >> > can use SystemProperties data as Pritam mentioned.
> >> > To receive email you need to configure JavaMail Container located at
> the
> >> > following file
> >> >
> >> > framework/service/ofbiz-component.xml
> >> >
> >> > Thanks & Regards
> >> > --
> >> > Deepak Dixit
> >> >
> >> >
> >> > On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <
> >> pritam.kute@hotwaxsystems.com
> >> > >
> >> > wrote:
> >> >
> >> > > Hello Madhi,
> >> > >
> >> > > You can use your Gmail account for sending emails in the OFBiz.
> >> > >
> >> > > Here you need to add following properties to your system.
> >> > >
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.notifications.enabled"
> >> systemPropertyValue="Y"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
> >> > > gmail.com
> >> > > "/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your
> Gmail
> >> > > Address"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your
> >> > Gmail
> >> > > Password"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.starttls.enable"
> >> systemPropertyValue="true"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.socketFactory.port"
> >> > > systemPropertyValue="465"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.socketFactory.fallback"
> >> > > systemPropertyValue="false"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.socketFactory.class"
> >> > > systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
> >> > >
> >> > > If you are going to run your custom SMTP server on the same machine
> >> where
> >> > > OFBiz is running, then you need some different settings.
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.notifications.enabled"
> >> systemPropertyValue="Y"/>
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.smtp.relay.host"
> >> systemPropertyValue="localhost"/>
> >> > >
> >> > > <!-- If you want to redirect all email traffic from OFBiz instance
> to
> >> > > perticular XYZ email address, set following property -->
> >> > > <SystemProperty systemResourceId="general"
> >> > > systemPropertyId="mail.notifications.redirectTo"
> >> systemPropertyValue="XYZ
> >> > > Email Address"/>
> >> > >
> >> > > Hope this helps you. Please let me know if you are facing any
> >> > difficulties.
> >> > >
> >> > > Thanks and Regards
> >> > > --
> >> > > Pritam Kute
> >> > >
> >> > > On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
> >> > > madhi.krishnan@udyogmandir.in> wrote:
> >> > >
> >> > > > hey all..
> >> > > > Can you one please help me on how to send and receive email in
> >> ofbiz..
> >> > > > What are the changes that we have to do in general.properties
> files
> >> if
> >> > > any?
> >> > > > And do we need to run a smtp server on background?
> >> > > > Thank You.
> >> > > >
> >> > >
> >> >
> >>
> >
>

Re: How to send and receive email in ofbiz

Posted by Madhi Krishnan <ma...@udyogmandir.in>.
I'm not using any personal smtp server..Used the gmail settings

On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <pr...@hotwaxsystems.com>
wrote:

> Hello Madhi,
>
> Which settings you have used? Gmail settings or your personal SMTP server
> setup?
>
> Thanks and Regards
> --
> *Pritam Kute* | Sr. Enterprise Software Engineer
> HotWax Commerce <http://www.hotwax.co/>  by  HotWax Systems
> <http://www.hotwaxsystems.com/>
> Plot no. 80, Scheme no. 78, Vijay Nagar, Indore, M.P. India 452010
> Cell phone: +91 82519 20492
>
> HotWax Systems recently received 8 mentions in *The Gartner Digital
> Commerce Vendor Guide, 2016 *by Gartner, Inc., the world's leading IT
> research and advisory company. Learn more about our research here
> <https://www.gartner.com/technology/media-products/newsletters/HotWax/1-2UVLP6M/index.html>
> .
>
> [image: Inline image 1]
>
>
> On Mon, Oct 1, 2018 at 3:23 PM Madhi Krishnan <
> madhi.krishnan@udyogmandir.in> wrote:
>
>> Hello pritam..
>> I have made the changes that you have mentioned above..But its
>> showing .errorMessage
>> [CON] Connection error when sending message
>> Actually i'm using the out of the box service called sendMail..And tried
>> to
>> execute it from webtool
>>
>> On Mon, Oct 1, 2018 at 2:11 PM Deepak Dixit <de...@hotwax.co>
>> wrote:
>>
>> > Hi Madhi Krishnan
>> >
>> > To send email you need do configuration in general.properties files. You
>> > can use SystemProperties data as Pritam mentioned.
>> > To receive email you need to configure JavaMail Container located at the
>> > following file
>> >
>> > framework/service/ofbiz-component.xml
>> >
>> > Thanks & Regards
>> > --
>> > Deepak Dixit
>> >
>> >
>> > On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <
>> pritam.kute@hotwaxsystems.com
>> > >
>> > wrote:
>> >
>> > > Hello Madhi,
>> > >
>> > > You can use your Gmail account for sending emails in the OFBiz.
>> > >
>> > > Here you need to add following properties to your system.
>> > >
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.notifications.enabled"
>> systemPropertyValue="Y"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
>> > > gmail.com
>> > > "/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your Gmail
>> > > Address"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your
>> > Gmail
>> > > Password"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.starttls.enable"
>> systemPropertyValue="true"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.socketFactory.port"
>> > > systemPropertyValue="465"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.socketFactory.fallback"
>> > > systemPropertyValue="false"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.socketFactory.class"
>> > > systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
>> > >
>> > > If you are going to run your custom SMTP server on the same machine
>> where
>> > > OFBiz is running, then you need some different settings.
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.notifications.enabled"
>> systemPropertyValue="Y"/>
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.smtp.relay.host"
>> systemPropertyValue="localhost"/>
>> > >
>> > > <!-- If you want to redirect all email traffic from OFBiz instance to
>> > > perticular XYZ email address, set following property -->
>> > > <SystemProperty systemResourceId="general"
>> > > systemPropertyId="mail.notifications.redirectTo"
>> systemPropertyValue="XYZ
>> > > Email Address"/>
>> > >
>> > > Hope this helps you. Please let me know if you are facing any
>> > difficulties.
>> > >
>> > > Thanks and Regards
>> > > --
>> > > Pritam Kute
>> > >
>> > > On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
>> > > madhi.krishnan@udyogmandir.in> wrote:
>> > >
>> > > > hey all..
>> > > > Can you one please help me on how to send and receive email in
>> ofbiz..
>> > > > What are the changes that we have to do in general.properties files
>> if
>> > > any?
>> > > > And do we need to run a smtp server on background?
>> > > > Thank You.
>> > > >
>> > >
>> >
>>
>

Re: How to send and receive email in ofbiz

Posted by Pritam Kute <pr...@hotwaxsystems.com>.
Hello Madhi,

Which settings you have used? Gmail settings or your personal SMTP server
setup?

Thanks and Regards
--
*Pritam Kute* | Sr. Enterprise Software Engineer
HotWax Commerce <http://www.hotwax.co/>  by  HotWax Systems
<http://www.hotwaxsystems.com/>
Plot no. 80, Scheme no. 78, Vijay Nagar, Indore, M.P. India 452010
Cell phone: +91 82519 20492

HotWax Systems recently received 8 mentions in *The Gartner Digital
Commerce Vendor Guide, 2016 *by Gartner, Inc., the world's leading IT
research and advisory company. Learn more about our research here
<https://www.gartner.com/technology/media-products/newsletters/HotWax/1-2UVLP6M/index.html>
.

[image: Inline image 1]


On Mon, Oct 1, 2018 at 3:23 PM Madhi Krishnan <ma...@udyogmandir.in>
wrote:

> Hello pritam..
> I have made the changes that you have mentioned above..But its
> showing .errorMessage
> [CON] Connection error when sending message
> Actually i'm using the out of the box service called sendMail..And tried to
> execute it from webtool
>
> On Mon, Oct 1, 2018 at 2:11 PM Deepak Dixit <de...@hotwax.co>
> wrote:
>
> > Hi Madhi Krishnan
> >
> > To send email you need do configuration in general.properties files. You
> > can use SystemProperties data as Pritam mentioned.
> > To receive email you need to configure JavaMail Container located at the
> > following file
> >
> > framework/service/ofbiz-component.xml
> >
> > Thanks & Regards
> > --
> > Deepak Dixit
> >
> >
> > On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <
> pritam.kute@hotwaxsystems.com
> > >
> > wrote:
> >
> > > Hello Madhi,
> > >
> > > You can use your Gmail account for sending emails in the OFBiz.
> > >
> > > Here you need to add following properties to your system.
> > >
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
> > > gmail.com
> > > "/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your Gmail
> > > Address"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your
> > Gmail
> > > Password"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.starttls.enable"
> systemPropertyValue="true"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.socketFactory.port"
> > > systemPropertyValue="465"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.socketFactory.fallback"
> > > systemPropertyValue="false"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.socketFactory.class"
> > > systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
> > >
> > > If you are going to run your custom SMTP server on the same machine
> where
> > > OFBiz is running, then you need some different settings.
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.smtp.relay.host"
> systemPropertyValue="localhost"/>
> > >
> > > <!-- If you want to redirect all email traffic from OFBiz instance to
> > > perticular XYZ email address, set following property -->
> > > <SystemProperty systemResourceId="general"
> > > systemPropertyId="mail.notifications.redirectTo"
> systemPropertyValue="XYZ
> > > Email Address"/>
> > >
> > > Hope this helps you. Please let me know if you are facing any
> > difficulties.
> > >
> > > Thanks and Regards
> > > --
> > > Pritam Kute
> > >
> > > On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
> > > madhi.krishnan@udyogmandir.in> wrote:
> > >
> > > > hey all..
> > > > Can you one please help me on how to send and receive email in
> ofbiz..
> > > > What are the changes that we have to do in general.properties files
> if
> > > any?
> > > > And do we need to run a smtp server on background?
> > > > Thank You.
> > > >
> > >
> >
>

Re: How to send and receive email in ofbiz

Posted by Madhi Krishnan <ma...@udyogmandir.in>.
Hello pritam..
I have made the changes that you have mentioned above..But its
showing .errorMessage
[CON] Connection error when sending message
Actually i'm using the out of the box service called sendMail..And tried to
execute it from webtool

On Mon, Oct 1, 2018 at 2:11 PM Deepak Dixit <de...@hotwax.co> wrote:

> Hi Madhi Krishnan
>
> To send email you need do configuration in general.properties files. You
> can use SystemProperties data as Pritam mentioned.
> To receive email you need to configure JavaMail Container located at the
> following file
>
> framework/service/ofbiz-component.xml
>
> Thanks & Regards
> --
> Deepak Dixit
>
>
> On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <pritam.kute@hotwaxsystems.com
> >
> wrote:
>
> > Hello Madhi,
> >
> > You can use your Gmail account for sending emails in the OFBiz.
> >
> > Here you need to add following properties to your system.
> >
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
> > gmail.com
> > "/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your Gmail
> > Address"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your
> Gmail
> > Password"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.starttls.enable" systemPropertyValue="true"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.socketFactory.port"
> > systemPropertyValue="465"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.socketFactory.fallback"
> > systemPropertyValue="false"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.socketFactory.class"
> > systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
> >
> > If you are going to run your custom SMTP server on the same machine where
> > OFBiz is running, then you need some different settings.
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.smtp.relay.host" systemPropertyValue="localhost"/>
> >
> > <!-- If you want to redirect all email traffic from OFBiz instance to
> > perticular XYZ email address, set following property -->
> > <SystemProperty systemResourceId="general"
> > systemPropertyId="mail.notifications.redirectTo" systemPropertyValue="XYZ
> > Email Address"/>
> >
> > Hope this helps you. Please let me know if you are facing any
> difficulties.
> >
> > Thanks and Regards
> > --
> > Pritam Kute
> >
> > On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
> > madhi.krishnan@udyogmandir.in> wrote:
> >
> > > hey all..
> > > Can you one please help me on how to send and receive email in ofbiz..
> > > What are the changes that we have to do in general.properties files if
> > any?
> > > And do we need to run a smtp server on background?
> > > Thank You.
> > >
> >
>

Re: How to send and receive email in ofbiz

Posted by Deepak Dixit <de...@hotwax.co>.
Hi Madhi Krishnan

To send email you need do configuration in general.properties files. You
can use SystemProperties data as Pritam mentioned.
To receive email you need to configure JavaMail Container located at the
following file

framework/service/ofbiz-component.xml

Thanks & Regards
--
Deepak Dixit


On Mon, Oct 1, 2018 at 1:45 PM, Pritam Kute <pr...@hotwaxsystems.com>
wrote:

> Hello Madhi,
>
> You can use your Gmail account for sending emails in the OFBiz.
>
> Here you need to add following properties to your system.
>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.
> gmail.com
> "/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your Gmail
> Address"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your Gmail
> Password"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.starttls.enable" systemPropertyValue="true"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.socketFactory.port"
> systemPropertyValue="465"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.socketFactory.fallback"
> systemPropertyValue="false"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.socketFactory.class"
> systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>
>
> If you are going to run your custom SMTP server on the same machine where
> OFBiz is running, then you need some different settings.
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.smtp.relay.host" systemPropertyValue="localhost"/>
>
> <!-- If you want to redirect all email traffic from OFBiz instance to
> perticular XYZ email address, set following property -->
> <SystemProperty systemResourceId="general"
> systemPropertyId="mail.notifications.redirectTo" systemPropertyValue="XYZ
> Email Address"/>
>
> Hope this helps you. Please let me know if you are facing any difficulties.
>
> Thanks and Regards
> --
> Pritam Kute
>
> On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
> madhi.krishnan@udyogmandir.in> wrote:
>
> > hey all..
> > Can you one please help me on how to send and receive email in ofbiz..
> > What are the changes that we have to do in general.properties files if
> any?
> > And do we need to run a smtp server on background?
> > Thank You.
> >
>

Re: How to send and receive email in ofbiz

Posted by Pritam Kute <pr...@hotwaxsystems.com>.
Hello Madhi,

You can use your Gmail account for sending emails in the OFBiz.

Here you need to add following properties to your system.

<SystemProperty systemResourceId="general"
systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.relay.host" systemPropertyValue="smtp.gmail.com
"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.auth.user" systemPropertyValue="Your Gmail
Address"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.auth.password" systemPropertyValue="Your Gmail
Password"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.port" systemPropertyValue="465"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.starttls.enable" systemPropertyValue="true"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.socketFactory.port" systemPropertyValue="465"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.socketFactory.fallback"
systemPropertyValue="false"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.socketFactory.class"
systemPropertyValue="javax.net.ssl.SSLSocketFactory"/>

If you are going to run your custom SMTP server on the same machine where
OFBiz is running, then you need some different settings.
<SystemProperty systemResourceId="general"
systemPropertyId="mail.notifications.enabled" systemPropertyValue="Y"/>
<SystemProperty systemResourceId="general"
systemPropertyId="mail.smtp.relay.host" systemPropertyValue="localhost"/>

<!-- If you want to redirect all email traffic from OFBiz instance to
perticular XYZ email address, set following property -->
<SystemProperty systemResourceId="general"
systemPropertyId="mail.notifications.redirectTo" systemPropertyValue="XYZ
Email Address"/>

Hope this helps you. Please let me know if you are facing any difficulties.

Thanks and Regards
--
Pritam Kute

On Mon, Oct 1, 2018 at 12:45 PM Madhi Krishnan <
madhi.krishnan@udyogmandir.in> wrote:

> hey all..
> Can you one please help me on how to send and receive email in ofbiz..
> What are the changes that we have to do in general.properties files if any?
> And do we need to run a smtp server on background?
> Thank You.
>