Brent R. Matzelle on Tue, 2 May 2000 10:20:34 -0400 (EDT) |
Yes, the client web site that I am developing is on a web host that has informed me that they do not support that function. Instead I have to utilized the PHP 'exec' function. The program should work fine except for some reason PHP causes anything within the greater-than / less-than (< >) to disappear. For example: To: Jim Fakeemail <$Jims_mail> From: His Friend <$His_friends_email> Subject: Hello Jim! Message body PHP erases all text within those signs: To: Jim Fakeemail <> From: His Friend <> Subject: Hello Jim! Message body and so /usr/sbin/sendmail -t < $message_with_the_above_headers obviously doesn't work. I'm not sure if it's a problem with PHP but there seems to be that possibility. Brent On Mon, 01 May 2000, you wrote: > Brent, > > Is here any reason why you do not want to use the build-in php mail command? > > For example > > mail("e-mail-address@somewhere.com","Mail Subject",$string_with_message); > > Garth Nielsen > > On 01-May-2000 Brent R. Matzelle wrote: > > Hello, > > > > I'm trying to figure out how to use that tricky little /usr/sbin/sendmail > > program to send a message with PHP. > > > > I've tried the command: > > > > exec("/usr/sbin/sendmail < $message_with_headers"); > > > > and many others but to no effect. I've tried a bunch of different formats > > for > > the mail file too. > > > > e.g. > > MAIL FROM: user@email.com > > RCPT TO: otheruser@otheremail.com > > DATA > > Subject: Subject header > > Message > > .. > > You get the idea... > > > > The man page is quite confusing. Is anyone familiar with the syntax and > > could give me an example or two of how to make it work? > > > > Brent > > > > -- > > http://www.matzelle.net > > > > ______________________________________________________________________ > > Philadelphia Linux Users Group - http://plug.nothinbut.net > > Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce > > General Discussion - http://lists.nothinbut.net/mail/listinfo/plug > > ---------------------------------- > E-Mail: multiman1@home.com > Date: 01-May-2000 > Time: 20:46:07 > > This message was sent by XFMail > ---------------------------------- > > > ______________________________________________________________________ > Philadelphia Linux Users Group - http://plug.nothinbut.net > Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce > General Discussion - http://lists.nothinbut.net/mail/listinfo/plug -- http://www.matzelle.net ______________________________________________________________________ Philadelphia Linux Users Group - http://plug.nothinbut.net Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|