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. |
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 < [hidden email]> 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. > |
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 <[hidden email]> 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 < > [hidden email]> 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. > > > |
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 <[hidden email]> 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 <[hidden email] > > > 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 < > > [hidden email]> 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. > > > > > > |
Hello Madhi, Which settings you have used? Gmail settings or your personal SMTP server setup? Thanks and Regards -- Pritam Kute | Sr. Enterprise Software Engineer 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. On Mon, Oct 1, 2018 at 3:23 PM Madhi Krishnan <[hidden email]> wrote: Hello pritam.. |
I'm not using any personal smtp server..Used the gmail settings
On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <[hidden email]> 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 < > [hidden email]> 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 <[hidden email]> >> 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 < >> [hidden email] >> > > >> > 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 < >> > > [hidden email]> 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. >> > > > >> > > >> > >> > |
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 <[hidden email]> wrote: > I'm not using any personal smtp server..Used the gmail settings > > On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <[hidden email]> > 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 < > > [hidden email]> 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 <[hidden email]> > >> 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 < > >> [hidden email] > >> > > > >> > 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 < > >> > > [hidden email]> 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. > >> > > > > >> > > > >> > > >> > > > |
In reply to this post by Madhi Krishnan
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 <[hidden email]> wrote: > I'm not using any personal smtp server..Used the gmail settings > > On Mon, Oct 1, 2018 at 3:40 PM Pritam Kute <[hidden email]> > 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 < >> [hidden email]> 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 <[hidden email]> >>> 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 < >>> [hidden email] >>> > > >>> > 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 < >>> > > [hidden email]> 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. >>> > > > >>> > > >>> > >>> >> |
Free forum by Nabble | Edit this page |