Click here to get back home

Mail::SendEasy smtp error,

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Mail::SendEasy smtp error, Paul 07-21-2005
Posted by Paul on July 21, 2005, 1:56 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Net::SMTP error: Can't locate Mail/Sender.pm in @INC May 19, 2005, 10:33 am
patch for Mail::SendEasy March 14, 2007, 3:01 am
Mail::SendEasy defaulting to localhost? March 27, 2006, 4:41 am
Perl and SMTP mail problems June 23, 2005, 5:12 pm
How to send HTML mail via 'use Net::SMTP' May 16, 2006, 3:59 am
Partial e-mail body receiving by SMTP Server? May 26, 2008, 4:28 am
Net::SMTP module error September 28, 2006, 8:29 am
Error using SMTP object. November 30, 2007, 7:57 pm
Net::SMTP - "Bad File Number" error ? March 8, 2008, 2:49 am
The error log of Mail::Send January 5, 2006, 7:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap