Solved

Get status of an unreacheable mail server from sendmail module

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Easy CSR creation in Exchange 2007,2010 and 2013
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create an Accepted Domain 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 >> Ac…

839 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