NeilFawcett
Programmer
Here's a script I've written:-
Obviously I change the "mydomain" and "my@emailaddress", but no email arrives.
I've checked and my server company states the smtp path is "mail.domain.com"...
Code:
#!/usr/bin/perl
use Net::SMTP;
print "Content-type: text/html\n\nMail Test<BR>";
$smtp = Net::SMTP->new('mail.mydomain.com');
$smtp->mail("test\@mydomain.com");
$smtp->to("my\@emailaddress.com");
$smtp->data();
$smtp->datasend("Hello!\n\n");
$smtp->dataend();
$smtp->quit();
print 'done';
exit;
Obviously I change the "mydomain" and "my@emailaddress", but no email arrives.
I've checked and my server company states the smtp path is "mail.domain.com"...