我正在嘗試發送指定發件人的電子郵件。相反,我得到[email protected]即使指定了'from',Drupal 6郵件發送者也被設置爲'Nobody'
$test='example body'.$random_String;
$message3 = array(
'to' => '[email protected]',
'from' => '[email protected]',
//'from' => variable_get('site_mail', '[email protected]'), //alternative doesn't work either
'subject' => t('Example subject'),
'body' => $test,
'headers' => array(),
);
drupal_mail_send($message3);