You are here

function pet_parse_mails in Previewable email templates 6

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

Helper function to parse emails into an array.

3 calls to pet_parse_mails()
pet_send_mail in ./pet.module
Send tokenized email to each recipient. Called once form passes validation. Can also be called directly from code.
pet_validate_emails in ./pet.admin.inc
Parse a list of emails and return errors if any.
pet_validate_recipients in ./pet.admin.inc
Validate existence of a non-empty recipient list free of email errors.

File

./pet.module, line 465
Previewable E-mail Template module.

Code

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