Configuring incoming and outgoing mail server is very easy in odoo. This blog will be explaining how to setup mail servers in odoo.Follow the instructions as shown below.
At first go to Settings -> Technical -> Email -> Incoming Mail Servers (or) Outgoing Mail Servers
Incoming Mail Server Setup
After selecting Incoming Mail Servers option we can begin to configure incoming mail server. Before configuring, there are some mandatory fields that we need to fill.
‘Name’ : Just a label for the setup.It must be unique. Name it as ‘Incoming Gmail’ (or anything else you need to put).
’Server Type’ : It is the type of server to use by default it is ‘pop server’.
‘Server Name’: here we want to enter the server name which point to the ‘pop server’ for example ‘pop.gmail.com’.
‘Port’ is the port of SMTP server.
Choose appropriate security. Eg: Mark ‘SSL/TLS’, is the type of security.
Now fill the ‘Username’ and ‘Password’ in the ‘Login Information’ section as the mail id from which the mail is expected to come and its password.
After filling all the details click on the ‘Test&Confirm’ button. It will test the connection based on the details and confirm the connection only if the details are correct. This way how incoming mail server is configured in odoo.
Outgoing Mail Server Setup
Selecting the ‘Outgoing Mail Servers’ option we can configure the outgoing mail server.
Like Incoming Mail Servers setup there also have some mandatory field to fill.
‘Description’ : Just like name enter it as ‘Outgoing Mail’.
‘SMTP Server’: Write the Hostname or IP of SMTP server for example ‘smtp.gmail.com’.
‘SMTP Port’ : The port of the server ie, 465 for gmail.
Then select the ‘Connection Security’ as ‘SSL/TLS’ from the drop down list and fill the ‘Username’ and ‘Password’ as the mail to which the mail to be sent and its password.
When the fields are filled click on the ‘Test Connection’ button shown in the left most corner, in order to check whether the connection is made successful or not. If the connection is successful then odoo will send mail to the specified Gmail.