OK I have changed the php config file and this is what php info() shows.
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail /usr/sbin/sendmail
Also this is what the config file shows.
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
sendmail_path = /usr/sbin/sendmail
From what I have read I just need to change the send_mail path? Is this correct?
I've tried executing a mail script and nothing is ever sent. Any tips?
:?:
Results 1 to 7 of 7
Thread: mail() function
-
10-15-2004, 10:50 AM #1Junior Member
- Join Date
- Aug 2004
- Location
- Idaho, USA
- Posts
- 8
mail() function
-
10-15-2004, 04:39 PM #2
Why did you change it from the default of "/bin/sendmail -t -i" That has always worked for my php scripts.
Are you useing this format?
mail($to, $subject, $message, $extra_headers);
That is the call to mail() used int he scripts I have that work.Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
10-15-2004, 04:41 PM #3
mail() works for me and I have never edited the php.ini file. Here is what I have:
There are 2 things you should check:sendmail_path = /bin/sendmail -t -i
1) Your mailq. Log in via SSH and type mailq and press enter. Make sure it is empty.
2) If you are trying to send mail to an e-mail address within your WestHost account, make sure that this e-mail address is set up as an e-mail/FTP account (via your Site Manager) and has been assigned a home directory. If this is not the case, do this and try again. I'm not sure if this bug still exists or not, but it is worth a shot.Fayez Zaheer
-
10-16-2004, 03:05 PM #4Junior Member
- Join Date
- Aug 2004
- Location
- Idaho, USA
- Posts
- 8
Thanks for the help. I got it working!
-
10-16-2004, 03:09 PM #5
What fixed it for you?
Fayez Zaheer
-
11-23-2004, 01:43 PM #6Junior Member
- Join Date
- Sep 2004
- Location
- Austria
- Posts
- 4
Hello FZ,
Originally Posted by FZ
I encountered a similar problem and found the solution in your above posting:
Thanks very much for sharing your knowledge and experience!2) If you are trying to send mail to an e-mail address within your WestHost account, make sure that this e-mail address is set up as an e-mail/FTP account (via your Site Manager) and has been assigned a home directory. If this is not the case, do this and try again. I'm not sure if this bug still exists or not, but it is worth a shot.
Best,
Hike
-
11-23-2004, 03:43 PM #7
Hike, I'm glad it helped.
Fayez Zaheer
Similar Threads
-
problem setting from & reply-to fields in php mail() function
By ryan.shaw in forum PHP / MySQLReplies: 1Last Post: 11-22-2006, 01:56 PM -
Mail queue backlog suggestions - best practices?
By ajparker in forum E-mail / FTP ManagementReplies: 6Last Post: 04-01-2005, 12:40 AM -
BCC Issue with PHP mail() function...
By danguru in forum PHP / MySQLReplies: 4Last Post: 09-23-2004, 01:00 PM -
changing main mx record and php mail() function
By gnossos in forum Domain names & DNSReplies: 0Last Post: 03-06-2004, 06:57 AM -
Login Errors
By foeggy in forum PHP / MySQLReplies: 3Last Post: 01-14-2004, 03:00 PM
Reply With Quote