I want to have 2 $message['body'] sections in my email. The problem is that the second one overwrites the first one. If I take the second one out the first one writes perfectly but I if I leave the second one only the second will send.
Thanks,
Dan
Code: Select all
case 'application':
$confirm = MakeApplicantMessage($params['fname'], $params['title']);
$message['headers']['Content-Type'] = $params['content-type'];
$message['subject'] = t('!subject', array('!subject' => $params['subject']),$language->language);
$message['body']['Message'] = t('!message', array('!message' => $confirm), $language->language); //1st $message['body'] for email message
$message['body']['Content'] .= t('!content', array('!content' => $params['content']), $language->language); //2nd $message['body'] for attachments