You are here

public function mime_mail::build_multipart in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.email.inc \mime_mail::build_multipart()
  2. 8.3 includes/destinations.email.inc \mime_mail::build_multipart()
  3. 6.3 includes/destinations.email.inc \mime_mail::build_multipart()
  4. 6.2 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 149
Functions to handle the email backup destination.

Class

mime_mail

Code

public function build_multipart($boundary) {
  $multipart = "This is a MIME encoded message.\r\n\r\n--{$boundary}";
  for ($i = count($this->parts) - 1; $i >= 0; $i--) {
    $multipart .= "\r\n" . $this
      ->build_message($this->parts[$i]) . "--{$boundary}";
  }
  return $multipart . "--\r\n";
}