Hello everyone.
To develop a project, I need to make an embedded device with asterisk, to send email in some circumstances. I made the script, and now I need to send the output via email.
Unfortunately, I can not use “/bin/mail” directly cause I got an error (segmentation fault), but it is invoked by the voicemail application: I checked voicemail.conf, and I found mailcmd=/bin/mail).
Currently the device sends emails to users by Gmail account, so anything is fine about configuration.
So, I think the voicemail application, when a messages is recorder, store it and the information (e.g. user’s email, the email body as configured on voicemail.conf, etc.) in some folder. Then immediately, it invokes “/bin/mail” (maybe with some parameters) who sends the email, and finally delete it.
In that case, to send my information, it should be enough to store them in a folder, then invoke “/bin/mail”, but until now I failed.
I checked yes /var/spool/asterisk/voicemail/… but, except the recorded emails, I can not find more.
Does someone can help me?
Thank you!