[asterisk-users] Custom Voicemail Notification Email
RR
ranjtech at gmail.com
Wed Nov 29 02:52:28 MST 2006
On 11/29/06, Marnus van Niekerk <m at mjvn.net> wrote:
>
> You could of course edit app_voicemail.c to pass more info...
>
> Round about line 2329:
> if (!ast_strlen_zero(externnotify)) {
> if (messagecount(ext_context, &newvoicemails,
> &oldvoicemails)) {
> ast_log(LOG_ERROR, "Problem in calculating number
> of voicemail messages available for extension %s\n", extension);
> } else {
> snprintf(arguments, sizeof(arguments), "%s %s %s
> %d&", externnotify, context, extension, newvoicemails);
> ast_log(LOG_DEBUG, "Executing %s\n", arguments);
> ast_safe_system(arguments);
> }
> }
>
> M
Right, I was looking at the sending email part to instead of sending
out the email, write a file with the relevant info and then I use
externnotify to pick up that file stick it into a template and send it
out.
Also, note changing the "Content Type: text/html" and recompiling has
allowed me to send and display emails as HTMLS. I'll just frigging
create an entire HTML page as one LONG string with pics and stuff and
give that a GO :)
More information about the asterisk-users
mailing list