Solved

Get status of an unreacheable mail server from sendmail module

Posted on 2009-04-15
3
206 Views
Last Modified: 2013-12-17
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 ?

 
0
Comment
Question by:spectrumsofttech
  • 2
3 Comments
 
LVL 39

Expert Comment

by:Adam314
ID: 24149933
Which sendmail module are you using?
0
 

Author Comment

by:spectrumsofttech
ID: 24154473
Hi,

I use Mail::Sendmail, Mail::Sender.
0
 
LVL 39

Accepted Solution

by:
Adam314 earned 250 total points
ID: 24283344
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Resolve DNS query failed errors for Exchange
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now