Error in code send Email

Kalyan Chakravarthy kalyanchakravarthy at hyit.com
Fri May 22 04:50:21 EDT 2009


*Google App Engine doesn't allow to use sockets directly *Then what could be
the solution for this ?

can any one Reply me


Regards
Kalyan

On Fri, May 22, 2009 at 1:05 PM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar>wrote:

> En Thu, 21 May 2009 02:31:02 -0300, Kalyan Chakravarthy <
> kalyanchakravarthy at hyit.com> escribió:
>
>  I am using above  code to send an Email, for this i am not installed any
>> SMTP setup my local , I just given import smtplib
>> and I am getting following error
>>
>> **Traceback (most recent call last):
>>  File "C:\Program
>> Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py",
>> line 500, in __call__
>>    handler.post(*groups)
>>  File "C:\Documents and Settings\desk\Desktop\apps\temp\main.py",
>> line 129, in post
>>    smtp_server = smtplib.SMTP( 'mail.%s' % mail.split( '@' )[-1] )
>>  File "C:\Python26\lib\smtplib.py", line 239, in __init__
>>    (code, msg) = self.connect(host, port)
>>  File "C:\Python26\lib\smtplib.py", line 295, in connect
>>    self.sock = self._get_socket(host, port, self.timeout)
>>  File "C:\Python26\lib\smtplib.py", line 273, in _get_socket
>>    return socket.create_connection((port, host), timeout)
>> AttributeError: 'module' object has no attribute 'create_connection'
>>
>
> *I think Google App Engine doesn't allow to use sockets directly.*
>
> --
> *Gabriel Genellina*
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Regards
Kalyan
Mobile no: +91 9985351220
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090522/a378d994/attachment.html>


More information about the Python-list mailing list