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. >
