Setting up SMTP email and Registration in TNG

Post Reply
Steve
Posts: 62
Joined: Sun Oct 01, 2017 3:08 pm

Setting up SMTP email and Registration in TNG

Post by Steve » Wed Jul 04, 2018 11:38 am

Setting up SMTP email and registration in TNG is a simple process if the server is configured correctly and you have the correct port, user name, password and authentication protocol. If not, setting up email can be a very frustrating process. To begin, contact the email provider for your website and get the correct port number and authentication protocol. Login to the administrator control panel and select Mail and Registration.
 
Image
  1. E-mail Address:
    Enter the email address you want to use for your contact information.

  2. Send all mail from address above:
    This email is used for the contact us page. The email address for each assigned tree will override this address even if you select yes when sending mass emails.

  3. Allow new user registrations:
    Select yes to allow new users to register. If you set this option to NO, new users will not be able to register but can be added manually by an administrator.

  4. Notify on reviewable submissions:
    Set this to yes if you want to be notified when a user submits an edit or suggestion.

  5. Create new tree for user:
    Setting this option to yes will create a new tree when the user registers. TNG allows you to have multiple trees however users can only view the tree to which they are assigned.

  6. Auto approve new users:
    Set this option to yes if you want users approved automatically. If set to no you will need to manually approve newly registered users.

  7. Send acknowledgement email:
    Enable this feature to send a registration acknowledgement to users.

  8. Include password in welcome email:
    Enable this feature to send the users password in the registration is approved email.

  9. Use SMTP authentication:
    You must enable this option to use SMTP (Simple Mail Transport Protocol) authentication. However, depending on your host or server configuration SMTP may not be required. If you want to use SMTP enable this feature by selecting yes.

  10. SMTP host name:
    If you are going to use SMTP you must enter a host name for your server or email provider.

  11. Mail username:
    This is the user name used to log in to your email provider. It should be the same address used for the email address above.

  12. Mail password:
    Enter the password your provider will use for this email address.

  13. Port number:
    Enter the outgoing port number for you email provider. The normal ports for outgoing SMTP mail are either 587 or 465.

  14. Encryption:
    Most email providers require encryption. If you are unsure contact your provider to confirm their requirements. My provider is NO-IP so simply entering SMTP in the encryption field is sufficient. There are other options such as SSL, TLS and STARTTLS. Encryption is probably the single biggest issue setting up emails due to different hosts requiring different settings.

Image


Using email in TNG is fairly straight forward provided the port and encryption methods are correct and there are no server issues. Run phpinfo.php to ensure mailparse is enabled. If you do not have this file you can create one using Komodo IDE or NotePad++. Do not use a wordprocessor program or notepad or any editor that adds a BOM (Byte Order Mark) in the file. Add the code below in your phpinfo.php file and place on your website.

Code: Select all

<?php
phpinfo();
?>
Launch the file in a browser and scroll down to make sure mailparse is enabled.

Image


While you're there you can also see other SMTP settings, which you should not need to change.

Image


To check PHP on a Synology device login to DSM and open Web Station and select PHP Settings. Select the version of PHP and then select edit.Scroll down and make sure mailparse is checked as shown below.

Image


If you are on a hosted server, check with host to ensure they have the correct php extensions and settings enabled for your website.

Post Reply