I want to sent mail using drupal mail api. i can send mail using
sender mail as site mail , no problem it is working.<br>
<< $site_mail = variable_get('site_mail',
ini_get('sendmail_from'));<br>
$from = $site_mail;<br>
drupal_mail($module, $key, $to, $language, $params, $from,
TRUE); >><br>
<br>
<font color="#ff0000">But I want to send mail using sender mail as
different one (custom mail address), at this point mail did not
send<br>
<< $site_mail = <a class="moz-txt-link-rfc2396E" href="mailto:sjrooms@olsen.tdcadsl.dk">"sjrooms@olsen.tdcadsl.dk"</a>;</font><br>
$from = $site_mail;<br>
drupal_mail($module, $key, $to, $language, $params, $from,
TRUE); >><br>
<br>
I cant understand this problem. what can I do for this?.<br>
<br>
<br>
I have another problem, is our mail server block send mail to
multiple revisers because i cant same send mail to 2 revisers.<br>
<< $site_mail = variable_get('site_mail',
ini_get('sendmail_from'));<br>
$user_mail = $form['contact_form']["email"]['#value']; <br>
$to = $user_mail.",".$site_mail;<br>
drupal_mail($module, $key, $to, $language, $params, $from,
TRUE); >><br>
<br>
"I was try as :<br>
$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:
<ul><li><a href="mailto:user@example.com">user@example.com</a>
</li><li><a href="mailto:user@example.com">user@example.com</a>, <a href="mailto:anotheruser@example.com">anotheruser@example.com</a>
</li><li>User <a class="moz-txt-link-rfc2396E" href="mailto:user@example.com"><user@example.com></a>
</li><li>User <a class="moz-txt-link-rfc2396E" href="mailto:user@example.com"><user@example.com></a>, Another User
<a class="moz-txt-link-rfc2396E" href="mailto:anotheruser@example.com"><anotheruser@example.com></a> "
</li></ul>
<br>
<b>I was followed the following guide</b>. <br>
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7">http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7</a><br>
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/drupal/includes--mail.inc/function/drupal_mail/7">http://api.drupal.org/api/drupal/includes--mail.inc/function/drupal_mail/7</a>
<br clear="all"><br>-- <br>Sandaruwan<br><a href="http://openmindsl.wordpress.com">http://openmindsl.wordpress.com</a> <br>