Fúlvio wrote:
>
> I am trying to send an email using the following code:
>
> use Net::SMTP;
>
> $smtp = Net::SMTP->new("smtp.yahoo.com");
> $smtp->mail('fulviocg');
>
> but the error below is happening:
>
> Can't call method "mail" on an undefined value at ....
>
> Can someone help me?
The documentation for Net::SMTP says this
> This documentation assumes that you are familiar with the concepts of the
> SMTP protocol described in RFC821
and it is important to understand that what you are trying to do isn't trivial.
If, however, you are au fait with SMTP then I suggest you will get better
results using the correct SMTP address 'smtp.mail.yahoo.com'.
HTH,
Rob
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/