[asterisk-users] Asterisk to Email

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Dec 6 01:40:23 CST 2009


On Sat, Dec 05, 2009 at 08:25:33PM -0500, Thomas Perron wrote:

> And, then send an email to the party.  Example....
> 
> 3035551212 at tmobile.net
> 
> Summary
> 1.  Capture the CID number.
> 2.  Prepend his number to his service provider SMTP address
> 3.  Email it to his phone


System(echo body of message | mail -s "subject line" ${the_caller_id}@tmobile.net)

Note the usage of '|' here. IIRC it needs to be escaped on Asterisk
1.4.x and below.

> 
> I assume I need to install SendMail and play around with CID stuff.

Sendmail, postfix, exim, qmail - any program that provides a local
sendmail interface.

I personally prefer postfix.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list