Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Split environment variables into sections and remove repeated examples
NyanKiyoshi3bd20d4979d3
diff --git a/docs/guides/email_integration.rst b/docs/guides/email_integration.rstindex d82a670e8f..6874586e9e 100644--- a/docs/guides/email_integration.rst+++ b/docs/guides/email_integration.rst@@ -1,17 +1,15 @@Email Configuration and Integration===================================-Saleor offers a few ways to set-up your email settings over SMTP servers and relays.+Saleor offers a few ways to set-up your email settings over SMTP servers and relays+through the below environment variables.-The global, and basic way saleor offers is to set the following ``EMAIL_URL`` environment variable to the target URL,-which will contain a straightforward value as bellow examples.-You can customize the sender email address by setting the environment variable ``DEFAULT_FROM_EMAIL`` to your desired email address.-You also can customize the sender name by doing as follow ``Example Is Me <[email protected]>``.+``EMAIL_URL``++++++++++++++--Example Configurations-----------------------+You can set the environment variable ``EMAIL_URL`` to the SMTP URL,+which will contain a straightforward value as shown in below examples... table::@@ -19,7 +17,7 @@ Example Configurations========================================================== ================================================================================Description URL========================================================== ================================================================================- GMAIL with **SSL on**. ``smtp://[email protected]:[email protected]:465/?ssl=True``+ GMail with **SSL on**. ``smtp://[email protected]:[email protected]:465/?ssl=True``OVH with **STARTTLS on**. ``smtp://[email protected]:[email protected]:587/?tls=True``A SMTP server unencrypted. ``smtp://[email protected]:[email protected]:25/``========================================================== ================================================================================@@ -27,28 +25,35 @@ Example Configurations.. note::- If you want to use your personal Gmail account to send mails,+ If you want to use your personal GMail account to send mails,you need to `enable access to unknown applications in your Google Account <https://myaccount.google.com/lesssecureapps>`_... warning::Always make sure you set-up correctly at least your SPF records, and while on it, your DKIM records as well.- **Otherwise your mails will be denied by mail servers or intercepted by spam filters in production.**+ **Otherwise your production mails will be denied by most mail servers or intercepted by spam filters.**+++.. _DEFAULT_FROM_EMAIL:++``DEFAULT_FROM_EMAIL``+++++++++++++++++++++++++You can customize the sender email address by setting the environment variable ``DEFAULT_FROM_EMAIL`` to your desired email address.+You also can customize the sender name by doing as follow ``Example Is Me <[email protected]>``.Sendgrid Integration--------------------After you `created your sendgrid application <https://app.sendgrid.com/guide/integrate/langs/smtp>`_,-you need to set the environment variable ``EMAIL_URL`` as bellow,+you need to set the environment variable ``EMAIL_URL`` as below,but by replacing ``YOUR_API_KEY_HERE`` with your API key.``smtp://apikey:[email protected]:465/?ssl=True``-Then, you have to set the environment variable ``DEFAULT_FROM_EMAIL`` to the email address you want to use as the sender email.--Example: ``export [email protected]``+Then, set the environment variable ``DEFAULT_FROM_EMAIL`` `as mentioned before <DEFAULT_FROM_EMAIL_>`_... note::@@ -62,7 +67,7 @@ Mailgun Integration-------------------After you `added your domain in Mailgun and correctly set-up your domain DNS records <https://app.mailgun.com/app/domains/new>`_,-you can set the environment variable ``EMAIL_URL`` as bellow,+you can set the environment variable ``EMAIL_URL`` as below,but by replacing everything capitalized, with your data.``smtp://YOUR_LOGIN_NAME@YOUR_DOMAIN_NAME:[email protected]:465/?ssl=True``@@ -86,15 +91,12 @@ Mailjet Integration-------------------After `adding your domain in Mailjet <https://app.mailjet.com/account/sender/domain#create-domain>`_,-you have to set the environment variable ``EMAIL_URL`` as bellow,+you have to set the environment variable ``EMAIL_URL`` as below,but by replacing everything capitalized, with your data, available at this `URL <https://app.mailjet.com/account/setup>`_.``smtp://YOUR_MAILJET_USERNAME:[email protected]:587/?tls=True``-Then, you have to set the environment variable ``DEFAULT_FROM_EMAIL`` to the email address you want to use as the sender email.--Example: ``export [email protected]``-+Then, set the environment variable ``DEFAULT_FROM_EMAIL`` `as mentioned before <DEFAULT_FROM_EMAIL_>`_.Amazon SES Integration@@ -103,8 +105,8 @@ Amazon SES IntegrationAfter having `verified your domain(s) in AWS SES <https://eu-west-1.console.aws.amazon.com/ses/home#verified-senders-domain:>`_,and set-up DKIM and SPF records, you need to `create your SMTP credentials <https://eu-west-1.console.aws.amazon.com/ses/home#smtp-settings:>`_.-Then, you can use this data to set-up the environment variable ``EMAIL_URL`` as bellow, by replacing everything capitalized, with your data.+Then, you can use this data to set-up the environment variable ``EMAIL_URL`` as below, by replacing everything capitalized, with your data.``smtp://YOUR_SMTP_USERNAME:[email protected]_AWS_SES_REGION.amazonaws.com:587/?tls=True``-Then, you have to set the environment variable ``DEFAULT_FROM_EMAIL`` to the email address you want to use as the sender email.+Then, set the environment variable ``DEFAULT_FROM_EMAIL`` `as mentioned before <DEFAULT_FROM_EMAIL_>`_.