Author: |
Camptocamp, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
15.0 |
Repository: |
acsone/server-env |
Dependencies: |
google_gmail,
server_environment,
and
server_environment_ir_config_parameter |
Languages: |
HTML (367, 77.4%),
Python (30, 6.3%),
and
reStructuredText (77, 16.2%) |
Other repositories: |
Change2improve/server-env,
Gabinete-Digital/server-env,
OCA/server-env,
SeuMarco/server-env,
ajaniszewska-dev/server-env,
brain-tec/server-env,
camptocamp/server-env,
and
gurneyalex/server-env |
<h1 class="title">Mail configuration with server_environment for Google Gmail</h1>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-env/tree/15.0/mail_environment_google_gmail"><img alt="OCA/server-env" src="https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-env-15-0/server-env-15-0-mail_environment_google_gmail"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/254/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to configure Gmail outgoing servers with server-env.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id1">Configuration</a></h2>
<p>Example of config file</p>
<pre>
<code>[ir.config_parameter]
google_gmail_client_id = YOUR_GMAIL_API_CLIENT_ID
google_gmail_client_secret = YOUR_GMAIL_API_CLIENT_SECRET
[outgoing_mail.gmail_smtp_server]
smtp_host = smtp.gmail.com
smtp_port = 587
smtp_user = example@gmail.com
smtp_encryption = starttls
use_google_gmail_service = True
google_gmail_authorization_code = YOUR_ACCOUNT_AUTH_CODE
google_gmail_refresh_token = YOUR_REFRESH_TOKEN</code>
</pre>
<p>These two are global parameters, in core they're configured in General Settings:</p>
<ul class="simple">
<li><cite>YOUR_GMAIL_API_CLIENT_ID</cite>: The client ID of your Google API project.</li>
<li><cite>YOUR_GMAIL_API_CLIENT_SECRET</cite>: The client secret of your Google API project.</li>
</ul>
<p>These two are account-specific parameters:</p>
<ul class="simple">
<li><cite>YOUR_ACCOUNT_AUTH_CODE</cite>: In core, there's a button that opens an URL to generate it.</li>
<li><cite>YOUR_REFRESH_TOKEN</cite>: In core, it's generated automatically when the
<cite>google_gmail_authorization_code</cite> is written. It's not shown on the form, but I recommend
having Odoo generate it and extract it from there, before setting up the server-env.</li>
</ul>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-env/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-env/issues/new?body=module:%20mail_environment_google_gmail%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id3">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id4">Authors</a></h3>
<ul class="simple">
<li>Camptocamp</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul>
<li><p class="first"><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a></p>
<blockquote>
<ul class="simple">
<li>Iván Todorovich <<a class="reference external" href="mailto:ivan.todorovich@camptocamp.com">ivan.todorovich@camptocamp.com</a>></li>
</ul>
</blockquote>
</li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id6">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/ivantodorovich"><img alt="ivantodorovich" src="https://github.com/ivantodorovich.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-env/tree/15.0/mail_environment_google_gmail">OCA/server-env</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>