Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Roundcube Community Forum
»
Third Party Contributions
»
API Based Plugins
»
How to get message from Mail_mime message object
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get message from Mail_mime message object (Read 2274 times)
iBem
Newbie
Posts: 4
How to get message from Mail_mime message object
«
on:
June 03, 2021, 08:57:06 AM »
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 ?
Logged
JohnDoh
Global Moderator
Hero Member
Posts: 2,763
Re: How to get message from Mail_mime message object
«
Reply #1 on:
June 05, 2021, 02:59:18 AM »
try:
Code:
[Select]
$headers = $args['message']->headers();
$subject = $headers['Subject'];
Logged
Roundcube Plugins
: Contextmenu, SpamAssassin Prefs, and moreā¦
Print
Pages: [
1
]
« previous
next »
Roundcube Community Forum
»
Third Party Contributions
»
API Based Plugins
»
How to get message from Mail_mime message object