Use sendmail command for email function


Posted by Support , Nov 24,1999,02:21 Post Reply      Main Forum
The easiest and most compatible way is to use a SMTP server. SMTP server runs at port 25 by default. For example, for netbula.com,
$smtp_server="netbula.com";

If you telnet netbula.com 25, you will see the server is running.

If using SMTP server, Anyboard opens a TCP connection to the server, and start a session using low level protocol message exchange.


some hosting service may not provide SMTP server, but you can use an external program to send mail. In this case, Anyboard runs the external program, and feed it the mail message. Anyboard supports using the sendmail command (or equivalent). Here is how:

set
$sendmail_cmd = "/usr/bin/sendmail -t"; and also set
$smtp_server ="/usr/bin/sendmail -t";

when anyboard sees these two are equal, it will use the sendmail command. The -t flag is a MUST, this flag means sendmail will use the To: Cc: arguments in the mail messages for recipients, instead of getting the receipients from the command line.

It is reported that qmail also works
("qmail-inject -t")


Current pageAuthor Profile