J
John
Hi
I am looking at Net:SMTP and keyed in the following code as a test:
use Net::SMTP;
my $smtp=Net::SMTP->new
("www.example.com",Hello=>'www.example.com',TimeOut=>60,Debug=>1);
$smtp->mail("john\@example.com");
$smtp->recipient("one.two\@googlemail.com");
$smtp->auth('joe','soap');
$smtp->data;
$smtp->datasend("From: john\@example.com\n");
$smtp->datasend("To: one.two\@googlemail.com\n");
$smtp->datasend("Subject: This is a test\n");
$smtp->datasend("\n\n");
$smtp->datasend("and so to bed");
$smtp->dataend;
$smtp->quit;
print $smtp->domain; print "<br/>";
print $smtp->banner; print "<br/>";
replies:
www.example.com
www.example.com ESMTP Postfix
When I look at my goooglemail account it was entered into the spam box.
Any idea why this is happening?
Regards
John
I am looking at Net:SMTP and keyed in the following code as a test:
use Net::SMTP;
my $smtp=Net::SMTP->new
("www.example.com",Hello=>'www.example.com',TimeOut=>60,Debug=>1);
$smtp->mail("john\@example.com");
$smtp->recipient("one.two\@googlemail.com");
$smtp->auth('joe','soap');
$smtp->data;
$smtp->datasend("From: john\@example.com\n");
$smtp->datasend("To: one.two\@googlemail.com\n");
$smtp->datasend("Subject: This is a test\n");
$smtp->datasend("\n\n");
$smtp->datasend("and so to bed");
$smtp->dataend;
$smtp->quit;
print $smtp->domain; print "<br/>";
print $smtp->banner; print "<br/>";
replies:
www.example.com
www.example.com ESMTP Postfix
When I look at my goooglemail account it was entered into the spam box.
Any idea why this is happening?
Regards
John