Sympa::Message::Template(3Sympa)
โจ NAME โจ
Sympa::Message::Template โ mail message generated from template ๐
Okay bestie, this is the module in the Sympa::Message::Template manpage, and it's literally the thing that cooks up a whole mail message out of a template. It's giving "mail glow-up factory." ๐
๐ธ SYNOPSIS ๐ธ
use Sympa::Message::Template;
my $message = Sympa::Message::Template->new(
context => $list, template => "name", rcpt => [$email], data => {});
That's the whole vibe right there. Load it, build it, slay. ๐
๐ DESCRIPTION ๐
๐ง Methods
new ( context => $that, template => $filename, rcpt => $rcpt, [ data => $data ], [ options... ] )
Constructor energy! โจ It creates a Sympa::Message object out of a template. No cap.
Parameters:
context => $thatโ What it is: aSympa::List, a robot, or'*'. ๐ซถtemplate => $filenameโ The template filename (without extension, ok? just the name, the extension is not the moment).rcpt => $rcptโ Scalar or arrayref representing the SMTP"RCPT TO:"field. ๐ฎ
If it's a scalar, it tries to retrieve information of the user (see also Sympa::User).
data => $dataโ A hashref used to parse the template, with keys like:return_pathโ The SMTP"MAIL FROM:"field if it's sent by SMTP (seeSympa::Mailer), or the"Return-Path:"field if it's sent by spool.
Note: this parameter was OBSOLETED. Currently, the {envelope_sender} attribute of the object is taken from the context. ๐
toโ The"To:"header field.langโ The language tag used for parsing the template. See alsoSympa::Language. ๐fromโ The"From:"field, if it's not a full msg.
Note: this parameter was OBSOLETED. The"From:"field will be filled in by the"sympa"address if it isn't found. ๐ซ
subjectโ The"Subject:"field, if it's not a full msg.replytoโ The"Reply-To:"field, if it's not a full msg.bodyโ The body message if$filenameis''.
Note: this feature has been deprecated. ๐
headersโ Additional headers; it's a hashref whose keys are field names.
Below are optional parameters. (yes, the fun ones ๐)
date => $timeโ Delivery time of the message. By default, the current time will be used. โฐenvelope_sender => $emailโ Forces setting the envelope sender.'<>'may be used for a null envelope sender.priority => $priorityโ Forces setting priority if specified. ๐ฅtracking => $featureโ Forces tracking if specified.
Returns:
A new Sympa::Message instance โ or undef if something went wrong. ๐ญ (and bestie, if you get undef, that's your sign, fr fr)
๐ฆ SEE ALSO ๐ฆ
Sympa::MessageSympa::Template
๐ HISTORY ๐
"new_from_template"inSympa::Messageappeared on Sympa 6.2.- It was renamed to
"new"inSympa::Message::Templateon Sympa 6.2.13. glow-up era โจ
And that's the whole page, periodt. ๐
This lil legend was served up by sympa 6.2.80, dated 2026-10-19, under the name Sympa::Message::Template(3Sympa) โ tysm for reading, ily, go send some beautiful mail ๐ซถ๐๐
๐ฆ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 ยท GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 ยท GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms