LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   is it possible to check if a mail has been sent via sendmail? (https://www.linuxquestions.org/questions/programming-9/is-it-possible-to-check-if-a-mail-has-been-sent-via-sendmail-375405/)

Thinking 10-21-2005 08:28 AM

is it possible to check if a mail has been sent via sendmail?
 
hiho@ll

i just want to know if a mail has been sent, or there was an error, if i use sendmail to send a mail

for example

/usr/sbin/sendmail
from: ...
...

then the mail is in the queue

is there a method to receive something like the queue ID from sendmail and to get the status of the mail?

thx@ll

MensaWater 10-21-2005 09:05 AM

You can look at mail queues that are pending in /var/spool/mqueue.

You can do a test send via sendmail command line with:

sendmail -v
Type in "subject: <subject>"
Then type in "<body>
Then hit Ctrl-D to make it send.

This will show you a verbose output of the send.


All times are GMT -5. The time now is 03:44 PM.