Send email: Difference between revisions

Content added Content deleted
m (→‎{{header|TXR}}: Remove spurious second copy of hash bang header.)
No edit summary
Line 1,247: Line 1,247:
"very important subject",
"very important subject",
"Body text\n");</lang>
"Body text\n");</lang>

=={{header|Perl 6}}==
<lang perl6># Reference: https://github.com/retupmoca/p6-Email-Simple
use Email::Simple;

my $eml = Email::Simple.new($raw-mail-text);
say $eml.body;

my $new = Email::Simple.create(header => [['To', 'mail@example.com'],
['From', 'me@example.com'],
['Subject', 'test']],
body => 'This is a test.');
say ~$new;</lang>


=={{header|PHP}}==
=={{header|PHP}}==