I think the email_example in the Examples project demonstrates this, but I'm not sure.
http://drupal.org/project/examples
-Randy
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 our 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@example.com>
- User <user@example.com>, Another User <anotheruser@example.com> "
I was followed the following guide.
http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7
http://api.drupal.org/api/drupal/includes--mail.inc/function/drupal_mail/7
--
Sandaruwan
http://openmindsl.wordpress.com