[xmail] Re: Using XMail with php
Hi, Include the following line in the begining of apache startup script (and after #/bin/sh, of course), than restart apache: export MAIL_ROOT=/var/MailRoot Perhaps you will also have to suid root sendmail binary that comes with XMail. Another "perhaps" now for xmail developers, sendmail binary could defaults to /var/MailRoot when that environment variable is not defined. Helio Em Quarta 08 Março 2006 01:05, Jeffrey Laramie escreveu: > Hello Folks- > > I'm running XMail and Apache2 on a SuSE 9.2 box. Both servers have been up > and running normally for months. I'm creating a web page that uses the php > mail() function to send the data from a form. The php scripts work as > expected except for the mail() function which fails. > > My question: > If I run XMail in debug mode will I see an entry for any attempt to access > the sendmail module, or will I only see an error if the connection is > successful but the data is formatted wrong? > > I would expect that any attempt to connect would be displayed, but for some > reason I'm not seeing anything at all. I've even tried connecting directly > using: > > $fd = popen("/usr/sbin/sendmail","w"); > fputs($fd, .. > > Nothing. Yet I can log on and send mail from the command line using mail > without problems. Any tips on getting the php mail() function to work with > XMail? I'm running low on ideas here. > > Jeff > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] -- Helio Cavichiolo Jr Altecnet Informatica Ltda www.altecnet.com.br +55 (19) 8137-6822 - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Using XMail with php
On Wednesday 08 March 2006 00:03, Shiloh Jennings wrote: > We have clients that use the mail() command, but I would not recommend it. > You should use the PHPMailer class instead of the native mail() command. > Many of the popular PHP applications already do this. > http://phpmailer.sourceforge.net/ Thanks. That worked great. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Using XMail with php
We have clients that use the mail() command, but I would not recommend it. You should use the PHPMailer class instead of the native mail() command. Many of the popular PHP applications already do this. http://phpmailer.sourceforge.net/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Laramie Sent: Tuesday, March 07, 2006 10:05 PM To: xmail@xmailserver.org Subject: [xmail] Using XMail with php Hello Folks- I'm running XMail and Apache2 on a SuSE 9.2 box. Both servers have been up and running normally for months. I'm creating a web page that uses the php mail() function to send the data from a form. The php scripts work as expected except for the mail() function which fails. My question: If I run XMail in debug mode will I see an entry for any attempt to access the sendmail module, or will I only see an error if the connection is successful but the data is formatted wrong? I would expect that any attempt to connect would be displayed, but for some reason I'm not seeing anything at all. I've even tried connecting directly using: $fd = popen("/usr/sbin/sendmail","w"); fputs($fd, .. Nothing. Yet I can log on and send mail from the command line using mail without problems. Any tips on getting the php mail() function to work with XMail? I'm running low on ideas here. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]