You are here

function pet_parse_mails in Previewable email templates 7

Same name and namespace in other branches
  1. 8.4 pet.module \pet_parse_mails()
  2. 8 pet.module \pet_parse_mails()
  3. 6 pet.module \pet_parse_mails()

Helper function to parse emails into an array.

4 calls to pet_parse_mails()
pet_action_send_pet in ./pet.rules.inc
Callback for eponymous rules action.
pet_send_mail in ./pet.module
Send tokenized email to a list of recipients.
pet_validate_emails in includes/pet.admin.inc
Parse a list of emails and return errors if any.
pet_validate_recipients in includes/pet.admin.inc
Validate existence of a non-empty recipient list free of email errors.

File

./pet.module, line 274
Previewable Email Template module.

Code

function pet_parse_mails($mail_text) {
  return preg_split('/[\\n\\r, ]/', $mail_text, -1, PREG_SPLIT_NO_EMPTY);
}