function pet_parse_mails in Previewable email templates 8
Same name and namespace in other branches
- 8.4 pet.module \pet_parse_mails()
- 6 pet.module \pet_parse_mails()
- 7 pet.module \pet_parse_mails()
Helper function to parse emails into an array.
2 calls to pet_parse_mails()
- PetPreviewForm::pet_validate_recipients in src/
Form/ PetPreviewForm.php - Validate existence of a non-empty recipient list free of email errors.
- pet_send_mail in ./
pet.module - Send tokenized email to a list of recipients.
File
- ./
pet.module, line 55 - Previewable Email Template module.
Code
function pet_parse_mails($mail_text) {
return preg_split('/[\\n\\r, ]/', $mail_text, -1, PREG_SPLIT_NO_EMPTY);
}