Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smtp authentication

Status
Not open for further replies.

clarkmurray

IS-IT--Management
Nov 9, 2002
35
US
My smtp server now requires authentication. I have an existing mail script but I have no idea how to add the authentication.

var $mailprog="/usr/sbin/sendmail -t";
...
$sm=popen("$CFG->mailprog","w");
fputs($sm,"To: $email\n");
fputs($sm,"From: $CFG->admin_email\n");
fputs($sm,"Reply-to: $CFG->admin_email\n");
fputs($sm,"Subject: $CFG->welcome_letter_subject_line\n");
fputs($sm,"Content-type: text/plain;\n\n");
fputs($sm,"$welcome_letter_text\n\n");
fputs($sm,".");
pclose($sm);

Can anyone help?
 
You're not using SMTP to send your email. You're directly invoking the sendmail application.

sendmail may need to send some kind of SMTP authentication to the next SMTP server in the delivery chain, but how to set that up is a sendmail question, not a PHP question.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top