Hi, After having a lot of failed attempts in configuring elgg smtp for amazon ses, i thought of connecting to SES via smtp.
For elgg 2.3 branch, I am able to extract the message details like from, to, body, subect etc using the 'email', 'system' hook.
But in 3.X branch, how to retrieve this information? I tried listening to "transport", "system:email" hook, but its not working. Any idea on how to use this hook properly to retrieve the above informations?
I want to push mails through SES via phpmailer library.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Sarath@sarathsince85

Sarath - 0 likes
elgg_register_plugin_hook_handler('transport', 'system:email', 'phpmailer_hook'); function phpmailer_hook($hook, $type, $return, $params) { $email = $params['email']; $from = $email->getFrom(); $to = $email->getTo(); $subject = $email->getSubject(); $body = $email->getBody(); // ..... }
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
You must log in to post replies.Following is my code. I am able to retrieve subject and body, but I am not getting the from and to address.
The email parameter should be an instance of \Elgg\Email.
Learn docs.