Untested:
exten => _XXXX,1,System(/bin/mail -s \"Happy Message: ${EXTEN}\"
[EMAIL PROTECTED])
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?
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users