I want to sent mail using drupal mail api. i can send mail using sender mail as site mail , no problem it is working.
<< $site_mail = variable_get('site_mail', ini_get('sendmail_from'));
$from = $site_mail;
drupal_mail($module, $key, $to, $language, $params, $from, TRUE); >>
But I want to send mail using sender mail as different one (custom mail address), at this point mail did not send
<< $site_mail = "sjrooms@olsen.tdcadsl.dk";
$from = $site_mail;
drupal_mail($module, $key, $to, $language, $params, $from, TRUE); >>
I cant understand this problem. what can I do for this?.
I have another problem, is mail server block send mail to multiple revisers because i cant same send mail to 2 revisers.
<< $site_mail = variable_get('site_mail', ini_get('sendmail_from'));
$user_mail = $form['contact_form']["email"]['#value'];
$to = $user_mail.",".$site_mail;
drupal_mail($module, $key, $to, $language, $params, $from, TRUE); >>
"I was try as :
$to The e-mail address or addresses where the message will be sent to. The formatting of this string must comply with RFC 2822. Some examples are:
* user@example.com
* user@example.com, anotheruser@example.com
* User
* User , Another User "