You are here

function _views_send_mime_header_encode in Views Send 7

Returns a mime-encoded string for strings that contain UTF-8.

Simplified and correct version of mime_header_decode.

2 calls to _views_send_mime_header_encode()
views_send_deliver in ./views_send.module
Sending a prepared message.
_views_send_format_address in ./views_send.module
Build a formatted e-mail address.

File

./views_send.module, line 1041
The Views Send module.

Code

function _views_send_mime_header_encode($string) {

  // Always encoding since some mailers have troubles with commas.
  // See issue 2638792.
  return '=?UTF-8?B?' . base64_encode($string) . '?=';
}