debugging php mail | | |
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at? | | | | re: debugging php mail
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote: Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail. | | | | re: debugging php mail
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote: Quote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
> Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
>
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file. | | | | re: debugging php mail
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote: Quote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
> Quote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
> Quote: Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
> Quote:
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
>
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc. | | | | re: debugging php mail
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote: Quote:
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
>
>
> Quote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
> Quote: Quote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
> Quote: Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
> Quote: Quote:
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
> Quote:
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
>
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.
Did more debugging on this. The issue was a combination of MX and the
use of \n in headers!!! | | | | re: debugging php mail
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote: Quote:
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
>
>
> Quote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
> Quote: Quote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
> Quote: Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
> Quote: Quote:
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
> Quote:
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
>
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.
Also:
If I use SMTP to use an external mail server - how do I pass in the
login info? | | | | re: debugging php mail
On Oct 9, 6:00 pm, nextpulse <rob...@nextpulse.comwrote: Quote:
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote:
>
>
>
>
> Quote:
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
> Quote: Quote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
> Quote: Quote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
> Quote: Quote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
> Quote: Quote:
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
> Quote: Quote:
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
> Quote:
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.
>
Also:
If I use SMTP to use an external mail server - how do I pass in the
login info?- Hide quoted text -
>
- Show quoted text -
I could be wrong about this...but I don't think you should need to
authenticate to use most external mail servers. If you can configure
the mail server, I would allow relaying from your php box on the mail
server. Otherwise, you might need to download an sasl module or
something. It would be easier to enable relaying for the particular
IP on the mail server side likely. |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,471 network members.
|