0
誰能幫助我使用Drupal mimemail用於連接我使用下文提到的代碼以發送特定的電子郵件附件的文件,但不知何故,它不工作,kinldy幫我在此先感謝Drupal的6 Mimemail與附件
$body = "test body with attachments";
$subject = "My test message";
$attachments[]=array(
'filepath' => file_directory_path().'/document.pdf',
'filename' => 'wonderful.pdf',
'filemime' => 'application/pdf',
);
mimemail("[email protected]", "[email protected]", $subject, $body, NULL, array(), NULL, $attachments,'');