Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Simple CPAN distribution.

Report information
The Basics
Id: 87333
Status: rejected
Priority: 0/
Queue: Email-Simple

People
Owner: Nobody in particular
Requestors: bmoran [...] onehub.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: body method cannot handle blank lines
Date: Thu, 25 Jul 2013 17:10:22 -0700
To: bug-Email-Simple [...] rt.cpan.org
From: Brian Moran <bmoran [...] onehub.com>
Perl version v5.12.3 (on Windows) Summary: if a body is provided via create, and it has a blank line, the message will be truncated after that line. Example: $body => "Summary:\n\nHere are some data that won't make it into the email" Perhaps it's an interaction with Email::Sender, as I recall invoking mail, and typing a message into it, a message is terminated when given an empty line. Work Around: split the message on \n, join array of lines on "\n ", then pass to body. -- e: bmoran@onehub.com p: +1 206 390 4376 Onehub, Inc. www.onehub.com
I cannot reproduce any lack of trailing newline: use lib 'lib'; use Email::Simple; my $email = Email::Simple->create( header => [ Foo => 1 ], body => "Summary: \nfoo", ); print $email->as_string; $email->body_set("Summary: \nbar"); print $email->as_string; -- rjbs