Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

qmail with php mail function

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Solutions
View previous topic :: View next topic  
Author Message
brianru



Joined: 06 Aug 2006
Posts: 3

PostPosted: Sun Aug 06, 2006 12:52 am    Post subject: qmail with php mail function Reply with quote

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
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Mon Aug 14, 2006 6:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
brianru



Joined: 06 Aug 2006
Posts: 3

PostPosted: Mon Aug 14, 2006 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Wed Aug 16, 2006 5:15 pm    Post subject: Reply with quote

What is the sendmail_path in phpinfo ?

try using "-t -i" parameter with sendmail.
Back to top
View user's profile Send private message Send e-mail
brianru



Joined: 06 Aug 2006
Posts: 3

PostPosted: Wed Aug 16, 2006 5:37 pm    Post subject: Reply with quote

I tried using -t -i with the path, and that didn't work.

Where can I find phpinfo?
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Aug 17, 2006 7:15 pm    Post subject: Reply with quote

PHP Info, you can see it with function

<?php

phpinfo();

?>

Or through shell

# php -i
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Solutions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!