NATS4 Email Configuration GMail SMTP

From TMM Wiki
Revision as of 13:31, 27 January 2024 by TMM Rich (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Mailing Admin
The Mailing Admin
Create New Mailer
Email Configuration
The Mailing Queue
Mailer Template Variables
Mass Mailing Template Variables
Common Mailer Examples
Setting Rules
NATS Configuration Admin
The Configuration Admin
Log Admin Activity
IP Address Filtering
MEMBER_EXPIRE_PAD
SKIP COUNTRIES
Fraud Configuration
Email Configuration
Affiliate Signup Email
Affiliate Postback
Affiliate Postback NEW
Affiliate Analytics
Throttling
NATS4 Terms of Service feature
GeoIP2

General Settings

General Settings
General Settings

From the Emails Configuration section you can edit custom settings for automated emails to members, affiliates, program owners, account representatives, and site partners. General Settings allows you to set basic options on outgoing emails from NATS. The first set of options work in conjunction with options set in the Mailing Admin:

  • MAIL_SINGLE_LINE_ENDINGS - This option is not currently in use and will not affect anything.
  • MAIL_QUEUE_PROCESSING_TIME - This designates how many minutes at a time the mail queue will run for.
  • MAIL_QUEUE_WAIT_SECONDS - This sets how many seconds the Mailing Admin should wait between checking new mails.
  • MAIL_QUEUE_BUFFER_MICRO_SECONDS - This sets how many micro seconds the Mailing Admin should wait between sending emails.
  • HTML_ONLY_WARNING - This allows you to set an automated plain text message when an email is HTML only.

The next set of fields under General Settings allows you to configure what email addresses the mails are sent from, as well as sending methods and security options:

  • EMAIL_FROM_DEFAULT - Designates a default email address to send mails from.
  • EMAIL_FROM_NICE_DEFAULT - This field specifies what particular name is displayed next to the email address.
  • EMAIL_REPLY_DEFAULT - Designates a default email address to reply to mails to.
  • EMAIL_REPLY_NICE_DEFAULT - This field specifies what particular name is displayed next to the reply-to address.
  • EMAIL_SEND_METHOD_DEFAULT - Use the drop-down menu to choose between mails being sent from the default PHP method and the Custom SMTP method
    • PHP vs. SMTP - SMTP is generally recommended over PHP Mail for mass emails, as SMTP tends to be quicker and bogs down a server less than PHP mails. This is because PHP Mail opens and closes an SMTP socket for each email, while SMTP acts as its own mail server. However, the SMTP option requires that you have an SMTP server to use.
    • NOTE: If you are using qmail in your PHP setup, it needs to be configured to allow the "sendmail" options that are passed from PHP.
    • We do not provide SMTP servers, you must have your own SMTP server set up in order to use our Custom SMTP email option.
  • EMAIL_SMTP_SERVER_DEFAULT - Sets the default server to be used for SMTP mails
  • EMAIL_SMTP_PORT_DEFAULT - Sets the default port to be used for SMTP mails
  • EMAIL_SMTP_USERNAME_DEFAULT - Sets the default username to log in for SMTP mails
  • EMAIL_SMTP_PASSWORD_DEFAULT - Sets the default password to log in for SMTP mails
  • EMAIL_BCC_TO_DEFAULT - You can use this to automatically send a blind carbon copy of an email to a certain email address.

These settings can further be refined through the options and fields below.

"Sending To" Settings

Sending to Affiliate

Under the individual Sending to Settings, fields will be the same for members, affiliates, etc. with the exception of who the mail is sent to. The description of these fields is the same as those under general settings, except that these settings can be individually designated for:

  1. Sending to Members
  2. Sending to Affiliates
  3. Sending to Owners
  4. Sending to Account Representatives
  5. Sending to Site Partners

This allows for a great deal of flexibility in creating different settings for emails sent to different types of people associated with your site.

Most of the time it will not be necessary to edit or individually set these options. However if sending emails from different addresses is necessary, these options will override the General Settings found above.

Email Affiliate Subjects

Email Affiliate Subjects

The NATS Mailing Function allows you to set the subject of any automatically-generated email through the Email section of the Configuration Admin. You can do this under the options entitled EMAIL_AFFILIATE_SIGNUP or the options beginning with EMAIL_AFFILIATE_ON_MEMBER.

Additionally NATS4 allows you to designate only certain Emails to be sent to affiliates automatically, such as when a member initiates a cancellation or a chargeback. To configure this, use the drop-down menus next to configuration options starting with AFFILIATE_EMAIL_ON_MEMBER, such as AFFILIATE_EMAIL_ON_MEMBER_JOINED. Once you click the drop-down menu, you will see three choices that are universal across the Mailing Function:

  1. No Emails - Emails will not be sent for this particular topic when this choice is selected.
  2. Always Email - Emails will always be sent for this particular topic when this choice is selected.
  3. Affiliate's Choice - Affiliates will be able to select whether or not they receive emails on this topic.

If you leave these fields blank, the mails will not be sent.

At the bottom of the Email Affiliate Subjects section, there are categories to set affiliate email subjects using Smarty scripts in order to automatically designate what project or website the email is sent from. These include EMAIL_AFFILIATE_FORGOT_PASSWORD, EMAIL_AFFILIATE_NOTIFY and the fields under those topics.

Remember: These fields only affect the subject line of an email. To change the body text of automated emails, you must edit the email templates under the Skins & Templates Admin.

Email Owner Subjects

Email Owner

Email Owner Subjects allows you to set specific email subjects based on certain member and affiliate action, such as when a member joins or cancels, or when an affiliate signs up. When these conditions are triggered, an email will be automatically composed to the site owner based on these settings.

Each setting is specified by the last word or phrase in each field, such as EMAIL_OWNER_JOINED or EMAIL_OWNER_REBILLED; each setting is also detailed by a short description of what the change will affect under each field title. By using these fields you can create email topics for specific events and conditions.

If you leave these fields blank, no mails will be sent.

Remember: These fields only affect the subject line of an email. To change the body text of automated emails, you must edit the email templates under the Skins & Templates Admin.

Send To Address

Send to Address

This section allows you to set what email address incoming mails from NATS will be sent to.

  • EMAIL_TO_OWNER - designates an email address for mails sent to the site owner.



Additional Setup Required By Google

Troubleshooting

  • Issue: Google SMTP credentials are correct via web login, but emails fail to send.
    • This could be due to failure to login due to Google Workspace default settings, where "less secure apps" is disabled
    • Error message manually logged:
SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at
                   	                  535 5.7.8  https://support.google.com/mail/?p=BadCredentials