For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > October 2005 > SMTP::new()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SMTP::new()
perl_programmer_sow

2005-10-11, 7:56 am

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
thanking u
perl_programmer_sow

Christian Winter

2005-10-11, 7:56 am

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
perl_programmer_sow

2005-10-13, 3:55 am

Hi chris ,
thank u very much.
>From the response i understand that u are uptodate with perl.So i guess

u should be well versed with blat also.
Please let me know this .
If blat is being used by an application for sending mail.That blat has
to perform some processing on the SMTP server.I am having problems when
the sender's domain name is too long.
Also let me know if there are issues with long domain names.And give me
some links for a solution to problem with too long domain names.
Thanking u
perl_programmer_sow

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com