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@agschtd05-srv09 usr]# cat email.txt | /usr/local/freeswitch/scripts/sendemail.py -i -d -f freeswitch@agshealth.com aakash.viswam@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