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