function mime_mail::build_multipart in Backup and Migrate 7.2
Same name and namespace in other branches
- 8.2 includes/destinations.email.inc \mime_mail::build_multipart()
- 8.3 includes/destinations.email.inc \mime_mail::build_multipart()
- 6.3 includes/destinations.email.inc \mime_mail::build_multipart()
- 6.2 includes/destinations.email.inc \mime_mail::build_multipart()
- 7.3 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
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";
}