Solved

Get status of an unreacheable mail server from sendmail module

Posted on 2009-04-15
3
204 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create an email address policy 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 Mail Flow…
To show how to generate a certificate request 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 Servers >> Certificates…

746 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

16 Experts available now in Live!

Get 1:1 Help Now