Readers: 13
SMTP Failed to connect to mail server: Connection timed out
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!usr/bin/perl -w use strict; use MIME::Lite; use POSIX; my $mailfrom = 'mymail@gmx.com'; my $mailto = 'mymail@gmx.com'; # $mail_empfaenger; my $subject = "test"; my $mailtext = "TESTE"; my $msg = MIME::Lite->new( From => $mailfrom, To => $mailto, Subject => $subject, Type => "multipart/related" ); $msg->attach( Type => "text/html", Data => $mailtext, ); $msg->send("smtp", "XXX.XX.208.11", Timeout=>10, Debug=>1, Port=>25); exit;