ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Dixit <deepak.di...@hotwax.co>
Subject Re: How to send and receive email in ofbiz
Date Mon, 01 Oct 2018 08:41:10 GMT
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.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message