[NTLUG:Discuss] Qmail and php questions
Jack Snodgrass
jack+ntlug at mylinuxguy.net
Thu Feb 13 17:54:23 CST 2003
On Thu, 2003-02-13 at 16:55, m m wrote:
> > > I want php invoke the qmail, how do I do?
> >
> >What do you mean by 'invoke'?
> >
> I should say I want call mail() function on php page.
>
you use the php.ini file to say if you want to
1) Call the sendmail prorgram directly. You have to tell where
you have the sendmail executable located.
2) use a remote SMTP Server. If you go this route, then
you tell it the ip address of the remote server.
I think that you want to do #2.
Then on your .php page, you set up a form that when
run will do someting like:
$rc = mail($to_user, $subject, $msg_body, $mailheaders);
if($rc)
$mail_message_confirmation = "E-mail has been sent.";
else
$mail_message_confirmation = "E-mail send <b>FAILED</b>.";
you use the form to get the $to_user, $subject, $msg_body, etc
info.
jack
More information about the Discuss
mailing list