aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/mail.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/mail.php b/mod/mail.php
index 23d1f5224..2fbd96fdb 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -97,7 +97,10 @@ function mail_post(&$a) {
$ret = send_message(0, $recipient, $body, $subject, $replyto, $expires);
- if(! $ret['success']) {
+ if($ret['success']) {
+ build_sync_packet(0,array('conv' => array($ret['conv']),'mail' => array(encode_mail($ret['mail'],true))));
+ }
+ else {
notice($ret['message']);
}