[Freeswitch-users] vm to email

John freeswitch at earthspike.net
Fri Feb 17 19:06:00 MSK 2012


Akash,

That's quite an old version of python (2.4) and I suspect it is not 
liking the IP address as the hostname.  Have you a hostname for your 
mail server?  Or can you upgrade python?  Or could you install ssmtp or 
nullmailer instead?

John

On 17/02/12 15:52, Aakash wrote:
> John,i followed the steps now i am getting as below.
>
> [root at agschtd05-srv09 usr]# cat email.txt |
> /usr/local/freeswitch/scripts/sendemail.py -i -d -f freeswitch at agshealth.com
> aakash.viswam at agshealth.com
> Traceback (most recent call last):
>    File "/usr/local/freeswitch/scripts/sendemail.py", line 191, in ?
>      send(fromAddress,to,message,verbose)
>    File "/usr/local/freeswitch/scripts/sendemail.py", line 68, in send
>      smtp = smtplib.SMTP(SERVER, PORT)
>    File "/usr/lib/python2.4/smtplib.py", line 258, in __init__
>      addr = socket.gethostbyname(socket.gethostname())
> socket.gaierror: (-2, 'Name or service not known')
>
>
> -----
> Regards,
> Aakash



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list