SMTP Authentication via Scripts

Using SMTP authentication for your scripts, like you would with a mail client, is important for proper mail delivery as anti-spam filters will score mail sent via a script differently then via a mail server that you have to login in to.  As such, using SMTP authentication is recommended and some servers require it.   Below you'll find some examples for various popular scripts on how to use SMTP authentication with a script. 

Custom PHP

Using a SMTP authentication class, such as PHPmailer, is recommended. There is an example of this at http://u2-web.com/support/downloads/formmail/


 

Wordpress

Using a plugin, such as WP Mail SMTP - http://wordpress.org/plugins/wp-mail-smtp/ . Install the plugin as normal and go to the Settings → WP Mail SMTP or other plugin that you may use.

Settings for WP Mail SMTP:

  • From Email: the email that you want the email to be seen as sent from – it should be on the same domain as the user you'll be using

  • From Name: this will be what is shown as the name that sent the email and can be anything you want

  • Mailer: Send all Wordpress emails via SMTP

  • SMTP Host: mail.example.com mail.u2-web.com – where example.com is your domain name or where mail.u2-web.com is our actual server name that you can get from us

  • SMTP Port: 465

  • Encryption: Use SSL encryption

  • Authentication: Use SMTP Authentication

  • Username: a mailbox that is setup in the control panel – we recommend using a specific mailbox for this purpose such as outbound@example.com .

  • Password: the password that is used for that mailbox



Joomla

Joomla has built-in SMTP authentication functions and you would set them up under Site → Global Configuration → Server → Mail settings

Settings for Joomla:

  • Mailer: SMTP

  • From Email: the email that you want the email to be seen as sent from – it should be on the same domain as the user you'll be using

  • From Name: this will be what is shown as the name that sent the email and can be anything you want

  • Sendmail Path: can be ignored / left as default value

  • SMTP Authentication: Yes

  • SMTP Security: SSL

  • SMTP Port: 465

  • SMTP Username: a mailbox that is setup in the control panel – we recommend using a specific mailbox for this purpose such as outbound@example.com .

  • SMTP Password: the password that is used for that mailbox

  • SMTP Host: mail.example.com mail.u2-web.com – where example.com is your domain name or where mail.u2-web.com is our actual server name that you can get from us



Drupal

Download the SMTP authentication module - https://www.drupal.org/project/smtp .

Install:

  1. Download module

  2. Expand the archive that you downloaded

  3. Upload the smtp folder to your drupal install at sites/all/modules

  4. Login to Drupal admin and go to Modules and enable SMTP Authentication Support .

Drupal SMTP Authentication Module Settings:

  • SMTP Server: mail.example.com mail.u2-web.com – where example.com is your domain name or where mail.u2-web.com is our actual server name that you can get from us

  • SMTP backup server: leave blank

  • SMTP Port: 465

  • Use Encrypted Protocol: Yes / SSL

  • Username: a mailbox that is setup in the control panel – we recommend using a specific mailbox for this purpose such as outbound@example.com .

  • Password: the password that is used for that mailbox



The above is most popular scripts on our systems. If you think a script should be added to the above, please let us know and we will add them. Most other scripts will have SMTP information in their documents.


For general Information, scripts should use the following SMTP authentication info:

  • From Email: the email that you want the email to be seen as sent from – it should be on the same domain as the user you'll be using

  • From Name: this will be what is shown as the name that sent the email and can be anything you want

  • SMTP Host / server: mail.example.com mail.u2-web.com – where example.com is your domain name or where mail.u2-web.com is our actual server name that you can get from us

  • SMTP Port: 465

  • Encryption: Use SSL encryption

  • Authentication: Use SMTP Authentication

  • Username: a mailbox that is setup in the control panel – we recommend using a specific mailbox for this purpose such as outbound@example.com .

  • Password: the password that is used for that mailbox

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Increase PHP memory limit

If you need PHP's memory limit to be increased, please do the following: Create a file called...

Domain aliases - pointing one domain to another

In the hsphere control panel (Account Portal), do the following: Login to the control panel...

Renewing a Domain With Us

Domains need to be renewed with the registrar system or they will be marked as expired and then...

Force https via htaccess

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

Register or transfer a domain with us

The first step to your Internet / web site is to register a domain with the Internet. ...