]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update template for multipart/alternative
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Nov 2007 23:12:13 +0000 (23:12 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Nov 2007 23:12:13 +0000 (23:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6422 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/voicemail.tpl
src/switch_utils.c

index 8061f0b1e32c122c62efebbfea213da35f41ff3f..de753eb5bdbb4baa480789205327dc0e764d9ab3 100644 (file)
@@ -4,8 +4,23 @@ Subject: ${voicemail_message_len} sec Voicemail from ${voicemail_caller_id_name}
 X-Priority: ${voicemail_priority}
 X-Mailer: FreeSWITCH
 
+Content-Type: multipart/alternative; 
+       boundary=000XXX000
+
+--000XXX000
+Content-Type: text/plain; charset=ISO-8859-1; Format=Flowed
+Content-Disposition: attachment
+Content-Transfer-Encoding: 7bit
+
 At ${voicemail_time} you were left a ${voicemail_message_len} second message from ${voicemail_caller_id_name} ${voicemail_caller_id_number}
 to your account ${voicemail_account}@${voicemail_domain}
 
+--000XXX000
+Content-Type: text/html; charset=ISO-8859-1
+Content-Disposition: attachment
+Content-Transfer-Encoding: 7bit
 
+At ${voicemail_time} you were left a ${voicemail_message_len} second message from ${voicemail_caller_id_name} ${voicemail_caller_id_number}
+to your account ${voicemail_account} @ ${voicemail_domain} <a href=tel:${voicemail_caller_id_number}>Click to call</a>
 
+--000XXX000--
index 69bf362e6797b41b9319cc40efe88608b4013384..ca1ae36d91dc43a56f4d93cdd14dac88c6da655e 100644 (file)
@@ -205,6 +205,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to, const char *fr
 
                        snprintf(buf, B64BUFFLEN,
                                         "\n\n--%s\nContent-Type: %s; name=\"%s\"\n"
+                                        "Content-ID: <ATTACHED@freeswitch.org>\n"
                                         "Content-Transfer-Encoding: base64\n"
                                         "Content-Description: Sound attachment.\n"
                                         "Content-Disposition: attachment; filename=\"%s\"\n\n",