LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how ssmtp email client can receive email delivery (https://www.linuxquestions.org/questions/linux-general-1/how-ssmtp-email-client-can-receive-email-delivery-879434/)

golden_boy615 05-08-2011 01:14 AM

how ssmtp email client can receive email delivery
 
hello
I am using ssmtp email client for sending email and it works fine but I want to know how can I check if it sends email correctly or not for example if it can not send email return an error(for example in $? ENV Var) for taking an action. as you can see when I send email to a fake receiver ssmtp returns 0 again the same as when it sends to an existing email:
Quote:

ssmtp icfgdgfdkasdgfsdfsd@gmadfgdfil.com < /root/ssmtptest.txt
echo $?
0
ssmtp mymail@gmail.com < /root/ssmtptest.txt
echo $?
0


All times are GMT -5. The time now is 04:59 AM.