I'm trying to send custom email via rules php but they are sent with the default email and with no object.

I use this code:
drupal_mail($module, $key, $to, $language, $params, $from, $send);

The $params array is this:
$params = array(
'subject' => 'My Custom Object'
);

The $from variable is "myemail@address.com"

How can I alter the default mail sender and subject?

Comments

smurfxx created an issue. See original summary.

bluegeek9’s picture

Status: Active » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!

Unfortunatly, Drupal 7 is End of Life and no longer supported. We strondly encourage you to upgrade to a supported version of Drupal.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.