function _views_send_format_address in Views Send 6
Same name and namespace in other branches
- 8 views_send.module \_views_send_format_address()
- 7 views_send.module \_views_send_format_address()
Build a formatted e-mail address.
2 calls to _views_send_format_address()
- views_send_deliver in ./
views_send.cron.inc - Sending the message take from spool.
- _views_send_prepare_mail in ./
views_send.module - Perform all alteration and preparation before spooling.
File
- ./
views_send.module, line 721 - The Views Send module.
Code
function _views_send_format_address($mail, $name, $encode = TRUE) {
$name = trim($name);
// Do not format addres on Windows based PHP systems or when $name is empty.
return substr(PHP_OS, 0, 3) == 'WIN' || empty($name) ? $mail : '"' . ($encode ? mime_header_encode($name) : $name) . '" <' . $mail . '>';
}