Difference between revisions of "Sendmail"

From TUTOS

m (Reverted edits by Iqelekosaba (Talk); changed back to last version by Gero)
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://enececufo.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://enececufo.co.cc CLICK HERE]=
 
----
 
</div>
 
 
TUTOS can handle outgoing mails in some different ways.
 
TUTOS can handle outgoing mails in some different ways.
  
Line 17: Line 9:
 
in [[config.php]]
 
in [[config.php]]
 
You also have to provide the correct path to the sendmail process on the server running your php scripts.
 
You also have to provide the correct path to the sendmail process on the server running your php scripts.
  $tutos[sendmail]  = &quot;/usr/lib/sendmail&quot;;
+
  $tutos[sendmail]  = "/usr/lib/sendmail";
  
  
Line 25: Line 17:
 
  $tutos[mailmode] = 2;
 
  $tutos[mailmode] = 2;
 
and a servername or IP adress like
 
and a servername or IP adress like
  $tutos[smtphost] = &quot;my.mailserver.com&quot;;
+
  $tutos[smtphost] = "my.mailserver.com";
 
in your [[config.php]]
 
in your [[config.php]]
  
 
You can alos enable POP-before-SMTP by adding something like this:
 
You can alos enable POP-before-SMTP by adding something like this:
 
  $tutos[popbeforesmtp] = 1;
 
  $tutos[popbeforesmtp] = 1;
  $tutos[popbeforesmtp_user] = &quot;someusername&quot;;
+
  $tutos[popbeforesmtp_user] = "someusername";
  $tutos[popbeforesmtp_pass] = &quot;somepassword&quot;;
+
  $tutos[popbeforesmtp_pass] = "somepassword";
  
 
This will make a POP3 connection to your mailserver. Such a connection is often used to autheticate you for a following SMTP connection.
 
This will make a POP3 connection to your mailserver. Such a connection is often used to autheticate you for a following SMTP connection.
Line 41: Line 33:
 
Enable this with:
 
Enable this with:
 
  $tutos[mailmode] = 4;
 
  $tutos[mailmode] = 4;
  $tutos[smtphost] = &quot;my.mailserver.com&quot;;
+
  $tutos[smtphost] = "my.mailserver.com";
  $tutos[smtp_username] = &quot;change this_to_a_smtp_username&quot;;
+
  $tutos[smtp_username] = "change this_to_a_smtp_username";
  $tutos[smtp_password] = &quot;change_this_to_a_smtp_password&quot;;
+
  $tutos[smtp_password] = "change_this_to_a_smtp_password";
  
  

Revision as of 19:53, 9 December 2010

TUTOS can handle outgoing mails in some different ways.

NOTE: As TUTOS is sending out mails in the name and with the address of different users you should ensure that the TUTOS server is allowed to do so by your mailserver or process.

sendmail

You can enable this with a line :

$tutos[mailmode] = 1;

in config.php You also have to provide the correct path to the sendmail process on the server running your php scripts.

$tutos[sendmail]  = "/usr/lib/sendmail";


SMTP server

To use this you must have a line

$tutos[mailmode] = 2;

and a servername or IP adress like

$tutos[smtphost] = "my.mailserver.com";

in your config.php

You can alos enable POP-before-SMTP by adding something like this:

$tutos[popbeforesmtp] = 1;
$tutos[popbeforesmtp_user] = "someusername";
$tutos[popbeforesmtp_pass] = "somepassword";

This will make a POP3 connection to your mailserver. Such a connection is often used to autheticate you for a following SMTP connection.

SMTP server with AUTH LOGIN

This will make a more sophisticated connection to your mailserver using some more SMTP features.

Enable this with:

$tutos[mailmode] = 4;
$tutos[smtphost] = "my.mailserver.com";
$tutos[smtp_username] = "change this_to_a_smtp_username";
$tutos[smtp_password] = "change_this_to_a_smtp_password";


No mail

Enable this with:

$tutos[mailmode] = 0;


Please do not asked about mailmode 3 this was never used.