Action: Email

PLEASE READ the /phpMyDomo/www/inc/doc/howto/actions.md for more informations

Description

This action send an email

Requirements

The email Action requires that you have an email server setuped on the phpMyDomo host, and that it works.
You can chek this from the terminal, by trying to send you an email using: mail my_email@address.com
(then enter a subject, then enter a content, then type a DOT then enter to send the mail).
If you receive the mail, it will work, else you have to insatll a mail server, ie Postfix or Exim.

Fields

  • 'type' => (mandatory) 'email'
  • 'from' => (required) The "From" email, formated as : "Name <email@server.com>" or "email@server.com".
  • 'to' => (required) The "To " email, formated as : "Name <email@server.com>" or "email@server.com".
  • 'subject' => (required) Email subject
  • 'content' => (required) Email Content
  • 'custom' => (optionnal) replaces "{custom}" in the email content

URLs examples

/action?type=email&amp;preset=door_ring  
/action?type=email&amp;preset=door_ring&amp;custom=portal  
/action?type=email&amp;preset=door_ring&amp;to=anotheremail@server.com  
/action?type=email&amp;subject=This+is_an+example&amp;content=testing+a+custom+email