Get status of an unreacheable mail server from sendmail module

Hi,

I use perl sendmail module to send emails.
Is there a way to know if the mail server that  i am trying to reach is available or not ?
Similarly can i get to know if a mail has been sent by the mail server ?

 
spectrumsofttechAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Adam314Connect With a Mentor Commented:
Using Mail::Sendmail, the sendmail function will not return true if it can't connect.  You can use something like:
     sendmail(%mail) or die $Mail::Sendmail::error;

Using Mail::Sender, you will not get a Mail::Sender object if it can't connect.
0
 
Adam314Commented:
Which sendmail module are you using?
0
 
spectrumsofttechAuthor Commented:
Hi,

I use Mail::Sendmail, Mail::Sender.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.