Get mail body before send mail
-
I’m trying to get the e-mail content before sending it, but with the tags already replaced, and haven’t much luck with that.
I’ve checked all the files and classes of the plugin, and only after making 2 small adjustments could get this data:
1. includes/mail.php > line 10:
public static function send( $template, $name = ” ){
public static function send( $template, $name = ”, $send = true ){2. includes/mail.php > line 17:
return $instance->compose();
return $instance->compose( $send );Might be introduced a function that allows us to take this information directly or could these settings be add to the relevant file in the core plugin?
If already exists a feature that allows catch this content, I would be happy to remove the settings and use the function.
- The topic ‘Get mail body before send mail’ is closed to new replies.