E-Mail settings

From GeeklogWiki
Revision as of 20:44, 1 January 2008 by Dirk (talk | contribs) (Example: Using GMail)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Starting with Geeklog 1.3.9, Geeklog uses the PEAR::Mail class to send all emails. You can then select whether emails should be sent through SMTP, sendmail, or PHP's mail() function.

Within $_CONF['mail_settings'] you have the following options
Variable Default Value Description
backend mail Used to select how to send email. Can be one of 'smtp', 'sendmail', or 'mail'.
sendmail_path /usr/bin/sendmail If you chose 'sendmail' for the backend setting, this specifies the complete path to the sendmail binary.
sendmail_args (empty) If you chose 'sendmail' for the backend setting, this variable can be used to pass additional parameters to the sendmail binary.
host smtp.example.com If you chose 'smtp' for the backend setting, this is the SMTP server to use.
port 25 If you chose 'smtp' for the backend setting, this is the port number to talk to on the SMTP server.
auth false If you chose 'smtp' for the backend setting, set this to true if your SMTP server requires authorization, and false if it doesn't.
username smtp-username If you chose 'smtp' for the backend setting, this is the name of your SMTP account.
password smtp-password If you chose 'smtp' for the backend setting, this is the password for your SMTP account.

Example: Mail Setup for GMail

Back to The Geeklog Configuration File