I am having a problem that I hope has an easy answer although I've
looked high and low for an answer. I am using app engine with
appenginepatch, including Django 1.x. When I attempt to send an email
I get an 'herror" Exception with Exception Value "(1, uknown host)".
>From the error output, line 111 is what seems to be raising the
Exception is below:


 104. possibly existing aliases. In case no FQDN is available,
hostname
 105. from gethostname() is returned.
 106. """
 107. name = name.strip()
 108. if not name or name == '0.0.0.0':
 109. name = gethostname()
 110. try:

 111. hostname, aliases, ipaddrs = gethostbyaddr(name) ...

 112. except error:
 113. pass
 114. else:
 115. aliases.insert(0, hostname)
 116. for name in aliases:
 117. if '.' in name:

▼ Local vars
Variable        Value
name
'imac.local'

The syntax for my mail call is:

profile is an object in my models where I have defined:

        def email_user(self, subject, message, from_email=None):
                "Sends an e-mail to this User."
                from django.core.mail import send_mail
                send_mail(subject, message, from_email, [self.email])

and then in my view I call it:

profile.email_user('Congrats','you are now live',
'[email protected]'django )

I have also tried to change this over to use app engines mail api,
using from google.appengine.api import mail and then modifying the
code appropriately but end up with the same Exception.

Any help is GREATLY appreciated!

Thanks,

Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to