Syntax::Mail(3pm)
π NAME
okay so bestie, gather round β Embperl::Syntax::Mail is a tag library for sending mail. that's it, that's the whole vibe. a taglib that sends emails. iconic behavior fr fr π
β¨ SYNOPSIS β¨
here's the whole thing in action, look at her go:
[$ syntax + Mail $]
<mail:send to="richter@ecos.de" subject="Testmail">
Hi,
this is a test for a new mail tag
it is send at [+ scalar(localtime) +]
from Embperl's Mail taglib.
</mail:send>
[$ if $? $]
<h2>Sorry, there was an error, your mail couldn't be send</h2>
[$else$]
<h2>Your mail was successfully delivered</h2>
[$endif$]
so you pull in the syntax, you wrap your lil message in <mail:send> tags, and then you check $? like the responsible main character you are to find out if it actually went through. no cap. π
πΈ DESCRIPTION πΈ
okay so the way this works: this module provides a mail:send tag, and its whole job is sending text via email. it uses the Embperl::Mail module for actually doing the sending β this one's just the cute tag wrapper π
here's the thing though: the mail body is enclosed between the mail:send tags. so whatever you put between them? that's the message, bestie. that's what lands in somebody's inbox.
and if you wanna know what all the attributes mean, go read Embperl::Mail for a description of them, because this page is just listing them. here's the roster:
fromtoccbccsubjectreply-tomailhostmailhelomaildebugcontent-type
π«Ά on success it sets$?to zero, otherwise to a value other than zero. so like, check$?. always. every time. your future self will thank you.
π Author π
Gerald Richter <richter at embperl dot org> β the legend who made this possible, we stan π
π¦ See Also π¦
- Embperl::Syntax
- Embperl::Syntax::HTML
and that's the whole page, bestie!! this one's from perl v5.34.0, dated 2022-02-06, and it's filed under the manual name Syntax::Mail(3pm) β go forth and send some mail, you've got this πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms