Difference between revisions of "E-Mail settings"

From GeeklogWiki
Jump to: navigation, search
 
m (Example: Using GMail)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
;[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]]
+
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 <code>mail()</code> function.
 +
;Within <code>$_CONF['mail_settings']</code> you have the following options:
 +
 
 +
{| border=1 cellspacing=0
 +
!Variable
 +
!Default Value
 +
!Description
 +
|-
 +
|backend
 +
|mail
 +
|Used to select how to send email. Can be one of 'smtp', 'sendmail', or 'mail'.
 +
|-
 +
|sendmail_path
 +
|<tt>/usr/bin/sendmail</tt>
 +
|If you chose 'sendmail' for the backend setting, this specifies the complete path to the sendmail binary.
 +
|-
 +
|sendmail_args
 +
|<tt>''</tt> <i>(empty)</i>
 +
| 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 <code>true</code> if your SMTP server requires authorization, and <code>false</code> 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]]
 +
 
 +
[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]]

Latest revision as of 20:44, 1 January 2008

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