Failed to connect to

D

da_sotong

Hi all,

I've a perl script that does the sending of email using MIME..however
i keep getting this error when i run the script: Failed to connect to
mail server: Unknown error.

Any one has any idea how i can solve this problem? Thanks in advance =)
 
B

Bob Walton

da_sotong wrote:

....
I've a perl script that does the sending of email using MIME..however
i keep getting this error when i run the script: Failed to connect to
mail server: Unknown error.

Any one has any idea how i can solve this problem? Thanks in advance =)

Nope. No idea at all. Maybe I could get an idea if you posted some
code -- like a small standalone portion of your program which
demonstrates your problem and that anyone can copy/paste/execute to
demonstrate said problem. Copy/paste your code, don't retype it.
 
R

Reto Hersiczky

Sounds like your host doesn't have the privilege to connect to
the related mail server. I suggest to make a

telnet mailhost.example.org 25

at your shell prompt on the machine where this problem occurs
and look if you see the remote mailserver's welcome message
or not.

You can use MIME::Lite in a fashion with Sendmail instead of smtp:

MIME::Lite->send("sendmail", "/usr/sbin/sendmail -t -oi -oem");

(Check the path: "which sendmail" as root)
This will work if your Sendmail is configured correctly ;-)

HTH
--Reto

p.s.
I agree with Bob's posting:
Copy/paste your code!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top