?
Solved

Get status of an unreacheable mail server from sendmail module

Posted on 2009-04-15
3
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In this video we show how to create a User 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 >> Mailb…
Suggested Courses

765 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