tag:blogger.com,1999:blog-13513711.post8609258605500256538..comments2023-10-15T05:03:26.730-04:00Comments on Alan Tan: Perl ERROR: Can't call method "mail" on an undefined value at smtp.pl line 10.Alan Tanhttp://www.blogger.com/profile/09443773579322724519noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-13513711.post-23603815642321305382009-04-10T05:17:00.000-04:002009-04-10T05:17:00.000-04:00Thanks for this post. When enabling debug, I found...Thanks for this post. When enabling debug, I found out I had made a mistake while defining my mailhost (' instead of "). This post saved me further head-ache!Unknownhttps://www.blogger.com/profile/10105739173018451298noreply@blogger.comtag:blogger.com,1999:blog-13513711.post-72865481572025471552009-04-06T09:30:00.000-04:002009-04-06T09:30:00.000-04:00ERROR creating SMTP obj: Connection timed outERROR creating SMTP obj: Connection timed outAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13513711.post-54958047356061932442008-07-21T09:22:00.000-04:002008-07-21T09:22:00.000-04:00hi Pauline, You may have a problem more than SMTP....hi Pauline, <BR/>You may have a problem more than SMTP. <BR/>If your Perl gave you error "can't call method mail on an undefined value at smtp.pl line 10", but not showing anything for my test, you'd better check your perl run time. <BR/>The test script may not have been run at all, or output may be redirected to some where. <BR/>check perl's return code and check logs. <BR/><BR/>You may want to do perl -d to debug the testing script.Alan Tanhttps://www.blogger.com/profile/09443773579322724519noreply@blogger.comtag:blogger.com,1999:blog-13513711.post-45969221982820148672008-07-18T08:59:00.000-04:002008-07-18T08:59:00.000-04:00Thanks for the explanation! Although I do not real...Thanks for the explanation! Although I do not really understand why it is not working. I try your test, but I get nothing...neither an ERROR nor an obj created.<BR/>Do you know what that could mean?Aaronhttps://www.blogger.com/profile/06303287905067055314noreply@blogger.comtag:blogger.com,1999:blog-13513711.post-57617924728314674992008-05-13T13:34:00.000-04:002008-05-13T13:34:00.000-04:00Thanks! This was exaclty my problem. I was getti...Thanks! This was exaclty my problem. I was getting a "Connection refused" from the SMTP server I had designated in the object creation.Unknownhttps://www.blogger.com/profile/13364280446292184667noreply@blogger.comtag:blogger.com,1999:blog-13513711.post-11464367429684512842008-01-17T14:51:00.000-05:002008-01-17T14:51:00.000-05:00In my case, McAfee was blocking outbound tcp/25 fr...In my case, McAfee was blocking outbound tcp/25 from my server.<BR/><BR/>A simple 'telnet mailhost 25' showed me the issue.Anonymousnoreply@blogger.com