aboutsummaryrefslogtreecommitdiffstats
path: root/include/message.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-04-26 14:19:54 +0200
committerGitHub <noreply@github.com>2017-04-26 14:19:54 +0200
commitc39a6800968f7ac017d215306b55d5b6bb39ded6 (patch)
tree10db25e4ce7ca6b62eae087214e6869a17a37b2c /include/message.php
parente8ddee284cbc82782aef0fc51a2079bf3f6a7327 (diff)
parent7d5ee81628a08dd560f7fdaa5b4d5a3f5ce3fb95 (diff)
downloadvolse-hubzilla-c39a6800968f7ac017d215306b55d5b6bb39ded6.tar.gz
volse-hubzilla-c39a6800968f7ac017d215306b55d5b6bb39ded6.tar.bz2
volse-hubzilla-c39a6800968f7ac017d215306b55d5b6bb39ded6.zip
Merge pull request #733 from zotlabs/etwoeemail
Etwoeemail
Diffstat (limited to 'include/message.php')
-rw-r--r--include/message.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/message.php b/include/message.php
index da3514184..e7db98d7e 100644
--- a/include/message.php
+++ b/include/message.php
@@ -188,9 +188,10 @@ function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $rep
$body = str_rot47(base64url_encode($body));
$sig = ''; // placeholder
+ $mimetype = ''; //placeholder
- $r = q("INSERT INTO mail ( account_id, conv_guid, mail_obscured, channel_id, from_xchan, to_xchan, title, body, sig, attach, mid, parent_mid, created, expires, mail_isreply )
- VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
+ $r = q("INSERT INTO mail ( account_id, conv_guid, mail_obscured, channel_id, from_xchan, to_xchan, mail_mimetype, title, body, sig, attach, mid, parent_mid, created, expires, mail_isreply )
+ VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
intval($channel['channel_account_id']),
dbesc($conv_guid),
intval(1),
@@ -198,6 +199,7 @@ function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $rep
dbesc($channel['channel_hash']),
dbesc($recipient),
dbesc($subject),
+ dbesc(($mimetype)? $mimetype : 'text/bbcode'),
dbesc($body),
dbesc($sig),
dbesc($jattach),