| View previous topic :: View next topic |
| Author |
Message |
brianru
Joined: 06 Aug 2006 Posts: 3
|
Posted: Sun Aug 06, 2006 12:52 am Post subject: qmail with php mail function |
|
|
| I have a piece of software that utilizes php's mail function. However I recently switched to a new dedicated server which has qmail installed and I can no longer send emails using the mail function. How do I get php to work with qmail? |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Mon Aug 14, 2006 6:42 pm Post subject: |
|
|
Are you using SMTP or mail() to send mail from PHP script ?
If it is PHP mail() function, you need to check php.in file and see if sendmail path is set correctly.
If you use SMTP, you may need to check if relay for your server is allowd in qmail. |
|
| Back to top |
|
 |
brianru
Joined: 06 Aug 2006 Posts: 3
|
Posted: Mon Aug 14, 2006 6:57 pm Post subject: |
|
|
i'm using the mail() function and I've tried setting the path to both /var/qmail/bin/sendmail and /var/qmail/bin/qmail-inject
however neither worked, and I checked if those paths are correct, and the files are there |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Wed Aug 16, 2006 5:15 pm Post subject: |
|
|
What is the sendmail_path in phpinfo ?
try using "-t -i" parameter with sendmail. |
|
| Back to top |
|
 |
brianru
Joined: 06 Aug 2006 Posts: 3
|
Posted: Wed Aug 16, 2006 5:37 pm Post subject: |
|
|
I tried using -t -i with the path, and that didn't work.
Where can I find phpinfo? |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Thu Aug 17, 2006 7:15 pm Post subject: |
|
|
PHP Info, you can see it with function
<?php
phpinfo();
?>
Or through shell
# php -i |
|
| Back to top |
|
 |
|