[NTLUG:Discuss] Qmail and php questions

joseph beasley joe_beasley at yahoo.com
Fri Feb 14 09:02:26 CST 2003


You don't need a mail server running and accepting
email, you just need sendmail installed so that php
can use it.  Check the php.ini for the path to
sendmail.

--- m m <llliiilll at hotmail.com> wrote:
> 
> 
> 
> 
> 
> 
> 
> >From: Jack Snodgrass <jack+ntlug at mylinuxguy.net>
> > > >
> > > 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
> >
> 
> yes, I want to use #2, but look at the code, how
> does the php mail() knows 
> where get connect to mail/smtp server on Linux
> system?
> 
> a lot of document 'says' put the sandmail path in
> the php.ini file. ok, this 
> means you HAVE TO to have mail server runs in the
> SAME BOX. is it the same 
> as #1 soluation. I know it. but this is not want I
> am looking for.
> 
> Thanks Rob Apodaca's advice for my question 1.
> 
> 
> 
> 
> >
> >
> >
> >_______________________________________________
> >https://ntlug.org/mailman/listinfo/discuss
> 
> 
>
_________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2
> months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss


=====
Joe Beasley
CNE, CCNP, MCSE, CCNA, AEIOU....
PGP/GPG key --  http://home.attbi.com/~joe.beasley/joebeasley.txt
AOL Messenger            joebeasley3rd
Yahoo Messenger          joe_beasley
MSN Messenger            joebeasley3rd
ICQ                      13164242


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



More information about the Discuss mailing list