2.13.1.2.7. Setting up mail in WordPress

V CMS WordPress does not have the functionality of sending mail to clients by default, its implementation is available using plugins. For example, to configure sending mail, you can use the following plugins:

Follow these steps to set up SMTP connection:

  1. In the left menu go to the section "WP Mail SMTP" → "Settings".
  2. In the tab "General" fill in the fields:
    1. "From (email)" – you need to specify the mailbox that will be used as the sender's name. Attention! In most cases, this parameter must be the same as the SMTP username.
    2. "On behalf of" – the name to be listed as the sender.
    3. "Return address" – it is worth setting this parameter to receive non-delivery letters to the same mail as specified in the field "From".
    4. Select a method for sending letters: (to set up a connection to a mailbox created on our hosting, you should choose "Other SMTP" and use these connection data)
      1. Specify the data in the fields of the section "Other SMTP":
        1. "SMTP server " — specify the address of the mail server.
        2. "Encryption" – you need to select encryption. In the case of using a mailbox hosted by us and port 465, you need to specify SSL in this paragraph.
        3. "SMTP port" — select the port used to connect to the mail server.
        4. "Auto TLS" – automatic detection of TLS encryption support. If you use a mailbox hosted by us, this option should be disabled.
        5. "SMTP username" — specify the full name of the mailbox from which the sending will be performed.
        6. "SMTP password" — enter the password for the mailbox.
    5. Save the entered data.

Follow these steps to set up SMTP connection:

  1. Go to section "Post SMTP" → "Post SMTP" to access the plugin settings section.
  2. In chapter "Invoice" specify the connection data:
    (to set up a connection to a mailbox created on our hosting, you should use these connection data)
    1. "Type" – select the type of work with mail services, to work with mailboxes created with us, you need to specify "SMTP".
    2. "Send type" – this parameter should be specified as PostSMTP.
    3. "Outgoing server" — specify the address of the mail server.
    4. "Outgoing server port" — specify the port used to connect to the mail server.
    5. "Envelope-From Email address" – return shipping address of the letter and errors in case of problems.
    6. "Security" — Specify the type of encryption. In the case of specifying a mailbox located with us and using the port 465 choose SMTPS, otherwise set No or No frame.
    7. "Authentication" — set value login.
    8. "Username" — specify the full name of the mailbox from which the sending will be performed.
    9. "Password" — enter the password for the mailbox.
  3. Save your changes.
  4. In case of problems when sending emails, you can set up a backup sending method in the tab "Reserve method":
    1. "Use a fallback method?" – set the value "Yes".
    2. "Outgoing mail server" — specify the address of the mail server.
    3. "Port" — specify the port used to connect to the mail server.
    4. "Encryption" — Specify the type of encryption. In the case of specifying a mailbox located with us and using the port 465 choose SSL, otherwise set No or No frame.
    5. "Use SMTP Authentication?" — set value "Yes".
    6. "Username" — specify the full name of the mailbox from which the sending will be performed.
    7. "Password" — enter the password for the mailbox.
  5. Save your changes.
  6. Adjust the checked parameters in the tab "Message":
    1. "Email address" – it is worth specifying the address of the mailbox that will be designated by the sender. In order to avoid problems with sending, in most cases, in this field it is worth specifying the same mailbox as in the login field of the SMTP settings.
    2. "Prevent plugins and themes from changing this" – this parameter should be set in order not to change the sender's address. A different address can lead to problems in sending the letter.
    3. "Name" – the name of the sender that will be indicated in the letter.
  7. Save your changes.
Content