Send Email from diaplan

Hi there,

I’m using ssmtp to send my voicemail message. Now I would like to send email from the dialplan. Is there an application or modules or agi that I could use to do that.

If not, anyone know how to send a email with ssmtp in commande line from the prompt


i used System() and bash command mail, works good. example
exten => s,6,System(mail -s “from asterisk dialplan” < file.txt)

Where did I need to setup my smtp and thos config ?