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

Domain aliases - pointing one domain to another

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

How to upload / create your site.

Creating your site How you create your site depends on what you want to do with it.  You...

Aliasing Domains with Proper SEO (domains and Search Engines)

Aliasing a domain to a primary domain is a great way to simplify domain hosting as only one main...

Email Provider Message Sizes

Most mail servers limit the message size -- the size of the entire message including all...

How can I find my IP?

How can I find my IP address? You can find your IP address by going to...