Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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