Syntax::Mail(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’Œ 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:

  • from
  • to
  • cc
  • bcc
  • subject
  • reply-to
  • mailhost
  • mailhelo
  • maildebug
  • content-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