no smtp auth failures for you

pull/1/head
Andromeda Yelton 2013-06-24 15:42:51 -04:00
parent aa7e5bfe5e
commit bcec6d4914
2 changed files with 3 additions and 3 deletions

View File

@ -36,12 +36,12 @@
<p>You already have a Kindle email on file with Unglue.it: {{ kindle_email }} .</p> <p>You already have a Kindle email on file with Unglue.it: {{ kindle_email }} .</p>
<p>You can change it below.</p> <p>You can change it below.</p>
<p> <p>
If you emailed yourself an Unglue.it ebook and got a message from Amazon that the sender is not in your approved email list, add <b>kindle@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings. If you emailed yourself an Unglue.it ebook and got a message from Amazon that the sender is not in your approved email list, add <b>notices@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings.
</p> </p>
{% endif %} {% endif %}
{% else %} {% else %}
<p> <p>
Before your device or app can receive emails from Unglue.it, you'll have to add <b>kindle@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings. Before your device or app can receive emails from Unglue.it, you'll have to add <b>notices@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings.
</p> </p>
<p>Then, enter your Kindle email address below:</p> <p>Then, enter your Kindle email address below:</p>
{% endif %} {% endif %}

View File

@ -2600,7 +2600,7 @@ def send_to_kindle(request, kindle_ebook_id, javascript='0'):
return local_response(request, javascript, 0) return local_response(request, javascript, 0)
try: try:
email = EmailMessage(from_email='kindle@gluejar.com', email = EmailMessage(from_email='notices@gluejar.com',
to=[kindle_email]) to=[kindle_email])
email.attach(title + '.' + ebook.format, filehandle.read()) email.attach(title + '.' + ebook.format, filehandle.read())
email.send() email.send()