[asterisk-users] sendmail when no response

2013-06-05 Thread Salaheddine Elharit
hello list,

i need  your help please regarding send mail i use astreisk 1.4;

i try to send mail when no response like below


exten = 5xx,1,Dial(SIP/223, 10)
exten = 5xx,n,system(echo test ${DNIS} Email| mail -s 'Call failed'
myadresseem...@gmail.com)

when i launch the CLI i found :

You have new mail in /var/spool/mail/root

i check the root and i found :

Return-Path: root
Received: (from root@localhost)
by localhost.localdomain (8.13.1/8.13.1/Submit) id r55B3Deh023821;
Wed, 5 Jun 2013 11:03:13 GMT
Date: Wed, 5 Jun 2013 11:03:13 GMT
From: root root
Message-Id: 201306051103.r55B3Deh023821@localhost.localdomain
To: failed, myadresseem...@gmail.com
Subject: Call

test Email

--r55B3Dei023821.1370430193/localhost.localdomain--

could you please tell me how to do in order to send email to my address
gmail for example

thanks and regards
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] sendmail when no response

2013-06-05 Thread jg
Your problem looks more like an MTA configuration problem. You need at 
least a valid relay host.


jg

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users