LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sendmail (https://www.linuxquestions.org/questions/slackware-14/sendmail-345010/)

jcombs_31 07-20-2005 10:23 AM

sendmail
 
How can I check mail that has been sent using PHP on Apache from a website?

keefaz 07-20-2005 10:29 AM

PHP Code:

$test mail 'jcomb_31@darkstar'
                      
'Test Message',
                      
'This is a test message');

if(!
$test) {
    echo 
'Mail was not sent :(';
} else {
    echo 
'Mail was sent :)';


Note from php.net :
Quote:

mail() Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.

jcombs_31 07-20-2005 10:51 AM

Quote:

Originally posted by keefaz
PHP Code:

$test mail 'jcomb_31@darkstar'
                      
'Test Message',
                      
'This is a test message');

if(!
$test) {
    echo 
'Mail was not sent :(';
} else {
    echo 
'Mail was sent :)';


Note from php.net :

That's not what I want, I want to actually see if the message was returned or not. isn't there a mailbox that should show your outgoing messages?

keefaz 07-20-2005 11:00 AM

sorry for the smileys ;)

The mail boxes management is not the job of sendmail,
maybe look for an IMAP solution then.
http://www.php.net/manual/en/ref.imap.php


All times are GMT -5. The time now is 03:32 AM.