'some email address', 'returnreceipt' => 1 ); */ /** Standardized v2 template rewrite * * Format for individual emails sent by e107 (not bulk emails for now) - a work in progress - bulk could be ported later. * @see e107Email::sendEmail(); * Aim: to make email templates follow the same spec. as other templates while remaining as intuitive as other v2 templates in e107. * Note: giving a template a 'name' value will make it available in the admin->mailout area. */ // Default - test email and when no template specified. $EMAIL_TEMPLATE = []; $EMAIL_TEMPLATE['default']['name'] = 'Default'; $EMAIL_TEMPLATE['default']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['default']['header'] = "
"; $EMAIL_TEMPLATE['default']['body'] = "{BODY}
{MEDIA1}{MEDIA2}{MEDIA3}{MEDIA4}{MEDIA5}"; $EMAIL_TEMPLATE['default']['footer'] = "

{SITEBUTTON: type=email&h=60}

{SITENAME=link}

{SITEURL}
"; // ------------------------------- /** * Signup Template. * @example developer tests * signup.php?preview * signup.php?test * signup.php?preview.aftersignup */ $EMAIL_TEMPLATE['signup']['name'] = 'Signup'; $EMAIL_TEMPLATE['signup']['subject'] = '{SITENAME}: '. LAN_SIGNUP_98; $EMAIL_TEMPLATE['signup']['header'] = $EMAIL_TEMPLATE['default']['header']; $EMAIL_TEMPLATE['signup']['body'] = "
".LAN_EMAIL_01." {USERNAME},

". LAN_SIGNUP_97." {SITENAME}
".LAN_SIGNUP_21."

{ACTIVATION_LINK}

".LAN_SIGNUP_59."

".LAN_SIGNUP_18."

".LAN_LOGIN.": {LOGINNAME}
".LAN_PASSWORD.": {PASSWORD}

".LAN_EMAIL_04."
".LAN_EMAIL_05."

".LAN_EMAIL_06."


{SITEBUTTON: type=email&h=60}

{SITENAME=link}

{SITEURL}
"; $EMAIL_TEMPLATE['signup']['footer'] = " "; $EMAIL_TEMPLATE['signup']['cc'] = ""; $EMAIL_TEMPLATE['signup']['bcc'] = ""; $EMAIL_TEMPLATE['signup']['attachments'] = ""; // ----------------------------- /* * QUICK ADD USER EMAIL TEMPLATE - BODY. * This is the email that is sent when an admin creates a user account in admin. "Quick Add User" USRLAN_185 = A user account has been created for you at {SITEURL} with the following login:
Login Name: {LOGIN}
Password: {PASSWORD}

USRLAN_186 = Please go to the site as soon as possible and log in, then change your password using the \'Settings\' option.

You can also change other settings at the same time.

Note that your password cannot be recovered if you lose it. */ $EMAIL_TEMPLATE['quickadduser']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['quickadduser']['header'] = $EMAIL_TEMPLATE['default']['header']; // will use default header above. $EMAIL_TEMPLATE['quickadduser']['body'] = USRLAN_185.USRLAN_186; $EMAIL_TEMPLATE['quickadduser']['footer'] = $EMAIL_TEMPLATE['default']['footer']; // will use default footer above. // ------- Notify (@see admin-> notify) //$EMAIL_WRAPPER['notify']['SUBJECT'] = "*** {---} ***"; $EMAIL_TEMPLATE['notify']['name'] = 'Notify'; $EMAIL_TEMPLATE['notify']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['notify']['header'] = "
"; $EMAIL_TEMPLATE['notify']['body'] = "

{SITEBUTTON: type=email&h=30} {SITENAME=link} {DATE_LONG}

{MEDIA1}{BODY}
"; $EMAIL_TEMPLATE['notify']['footer'] = "

{UNSUBSCRIBE_MESSAGE}
"; // ------ User-Specific Templates $EMAIL_TEMPLATE['monthly']['name'] = 'Monthly Update'; $EMAIL_TEMPLATE['monthly']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['monthly']['header'] = $EMAIL_TEMPLATE['default']['header']; // will use default header above. $EMAIL_TEMPLATE['monthly']['body'] = "Hi {USERNAME},

Just to keep you up to date, here's a reminder of what's changed in the past month.
{BODY}{MEDIA1}{MEDIA2}{MEDIA3}{MEDIA4}{MEDIA5}To find out more, simply click on the links!"; $EMAIL_TEMPLATE['monthly']['footer'] = $EMAIL_TEMPLATE['default']['footer']; $EMAIL_TEMPLATE['whatsnew']['name'] = "What's New"; $EMAIL_TEMPLATE['whatsnew']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['whatsnew']['header'] = $EMAIL_TEMPLATE['default']['header']; // will use default header above. $EMAIL_TEMPLATE['whatsnew']['body'] = "Hi {USERNAME},
{BODY}"; $EMAIL_TEMPLATE['whatsnew']['footer'] = $EMAIL_TEMPLATE['default']['footer']; // ------ A Dummy Example for theme developers. $EMAIL_TEMPLATE['example']['subject'] = '{SITENAME}: {SUBJECT} '; $EMAIL_TEMPLATE['example']['header'] = $EMAIL_TEMPLATE['default']['header']; // will use default header above. $EMAIL_TEMPLATE['example']['body'] = $EMAIL_TEMPLATE['default']['body']; // will use default header above. $EMAIL_TEMPLATE['example']['footer'] = "

{SITENAME} "; // Overrides any data sent from script. $EMAIL_TEMPLATE['example']['cc'] = "example@example.com"; $EMAIL_TEMPLATE['example']['bcc'] = "example@example.com"; $EMAIL_TEMPLATE['example']['attachment'] = "{e_PLUGIN}myplugin/myattachment.zip"; $EMAIL_TEMPLATE['example']['priority'] = 3; // (1 = High, 3 = Normal, 5 = low).