Voicemail with custom attachment/e-mail body

Hello all,

is it possible to send the voicemail e-mails with custom attachment (file.txt, for example)?
Or, how can I set custom e-mail body to my voicemail? I mean not a fixed body, I would like to use a script, and the script gives back a value/text, and I would like to put that value/text to voicemail’s body.
Is there any chance to do that?

Thank you for your answer,
Bence Bodnar

Use an external script to send your voicemail, you set the command that asterisk runs in the mailcmd setting of voicemail.conf

You can use the emailsubject field to pass in data to your mailcmd.

Like the sendvm.php script here:

1 Like