You are here

function mime_mail::build_multipart in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.email.inc \mime_mail::build_multipart()
  2. 6.3 includes/destinations.email.inc \mime_mail::build_multipart()
  3. 6.2 includes/destinations.email.inc \mime_mail::build_multipart()
  4. 7.3 includes/destinations.email.inc \mime_mail::build_multipart()
  5. 7.2 includes/destinations.email.inc \mime_mail::build_multipart()
1 call to mime_mail::build_multipart()
mime_mail::send in includes/destinations.email.inc

File

includes/destinations.email.inc, line 123
Functions to handle the email backup destination.

Class

mime_mail

Code

function build_multipart() {
  $boundary = "b" . md5(uniqid(time()));
  $multipart = "Content-Type: multipart/mixed; boundary = {$boundary}\n\nThis is a MIME encoded message.\n\n--{$boundary}";
  for ($i = sizeof($this->parts) - 1; $i >= 0; $i--) {
    $multipart .= "\n" . $this
      ->build_message($this->parts[$i]) . "--{$boundary}";
  }
  return $multipart .= "--\n";
}