Outbound Email

From Sit
Jump to: navigation, search

Unlike Inbound Email SiT requires no special configuration to be able to send email messages. SiT uses the PHP mail function to send email, so your PHP must be configured to allow sending of email before this will work.


Configuring the Outbound mailserver

Outbound mail is handled through the postfix mailserver on the system. To configure it you can run "sitproduction" or run the postfix mailserver configuration;

sudo dpkg-reconfigure postfix

You can read more on configuring postfix on ubuntu here

Configuring PHP to Send Email

On GNU/Linux and *BSD platforms sending email from PHP usually works "out of the box" but Windows requires a little extra configuration:

You will need to edit your php.ini file and look for the section that begins [mail function]

Here's an example configuration:

[mail function]
; For Win32 only.
SMTP = myisp.example.net ; for Win32 only
smtp_port = 25

You should change myisp.example.net to your own corporate or ISP SMTP mail server.

See http://www.php.net/manual/en/mail.configuration.php for more help configuring PHP email settings.

Setting the default 'From' address

Most email templates use the {supportemail} variable to set the 'From' address of emails, the replacement value for this variable can be configured:

Via the GUI

Warning.png The information in this article (or section) relates to SiT! v3.50 and later. Earlier versions may not have this functionality.
  1. Navigate to SiT! | Control Panel | Configuration and to Email | Outbound
  2. Set From address for support emails to the email address you want to use

Via the config file

Warning.png The information in this article (or section) relates to SiT! v3.45 and earlier. Later versions may have improved or replaced this functionality.
  1. Set $CONFIG['support_email'] variable in your config file.

Alternatively you can edit the email template(s) to use a different from address.

Info.png Tip: Remember to restart the webserver after making changes to php.ini

See Also

Personal tools