|
Posted by Christian Winter on October 11, 2005, 1:34 pm
Please log in for more thread options
perl_programmer_sow wrote:
> Hi folks !
> new($smtp_server_name,hello=>$sender_domain
> Do you have any idea when new() truncates the sender_domain name when
> it is too long.
> Please someone give a solution for this
Just looked into Net/SMTP.pm v2.29 (which should be the up to date one)
and the value given to the "Hello" option isn't truncated at all.
However, you should be aware that options to the new() constructor
are case sensitiv, so your example should read
my $smthg = new($smtp_server_name, Hello => $sender_domain);
If you pass a lowercase "hello", then Net::SMTP will fill in the default
value of "localhost.localdomain".
HTH
-Chris
|