Third Party Contributions > API Based Plugins

How to get message from Mail_mime message object

(1/1)

iBem:
Hi

There is a hook called message_before send
https://github.com/roundcube/roundcubemail/wiki/Plugin-Hooks#message_before_send

I can echo the email sender and email receiver to the console with echo $args['from'] and $args['mailto'] but when I try to echo $args['message'] I will get some POST internal server error in the console.

How should this be done ?

JohnDoh:
try:

--- Code: ---$headers = $args['message']->headers();
$subject = $headers['Subject'];

--- End code ---

Navigation

[0] Message Index

Go to full version