clarkmurray
IS-IT--Management
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?
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?