Courriel

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN


Returns the [Courriel::Headers](https://metacpan.org/pod/Courriel%3A%3AHeaders) object for this email.

## $email->stream\_to( output => $output )

This method will send the stringified email to the specified output. The output
can be a subroutine reference, a filehandle, or an object with a `print()`
method. The output may be sent as a single string, as a list of strings, or via
multiple calls to the output.

For large emails, streaming can be much more memory efficient than generating a
single string in memory.

## $email->as\_string()

Returns the email as a string, along with its headers. Lines will be terminated
with "\\r\\n".

# ROBUSTNESS PRINCIPLE

Courriel aims to respect the common Internet robustness principle (aka Postel's

lib/Courriel.pm  view on Meta::CPAN


Returns the L<Courriel::Headers> object for this email.

=head2 $email->stream_to( output => $output )

This method will send the stringified email to the specified output. The output
can be a subroutine reference, a filehandle, or an object with a C<print()>
method. The output may be sent as a single string, as a list of strings, or via
multiple calls to the output.

For large emails, streaming can be much more memory efficient than generating a
single string in memory.

=head2 $email->as_string()

Returns the email as a string, along with its headers. Lines will be terminated
with "\r\n".

=head1 ROBUSTNESS PRINCIPLE

Courriel aims to respect the common Internet robustness principle (aka Postel's



( run in 0.235 second using v1.01-cache-2.11-cpan-4d50c553e7e )