[asterisk-users] Sending Email From A Dial Plan

Eric "ManxPower" Wieling eric at fnords.org
Thu Aug 17 18:41:18 MST 2006


Untested:

exten => _XXXX,1,System(/bin/mail -s \"Happy Message: ${EXTEN}\" 
nimda at happyplace.com)

This assumes you can send mail outside of Asterisk from that host.

Damien Gabrielson wrote:
> I'm looking for a simple way to send email from a dial plan. I have 
> searched around quite a bit looking for a solution for this and I'm 
> surprised that I haven't found anything useful yet other than using 
> the System() application. I would like to be able to change the 
> subject dynamically based on ${EXTEN} and the body is not important. I 
> was hoping to have a one line command from the System() application 
> without having to write a script or any other dependency. Has anyone 
> implemented anything like this?




More information about the asterisk-users mailing list