Hello all,
I'm fairly new to Pyramid and have set up a basic application that has
a contact form. Upon submitting the contact form, I would like to send an
email to my gmail account(just as a test for now) using pyramid_mailer. I
followed the documentation line by line and am having trouble sending out
the email. When I call the <pre>mailer.send(message)</pre> statement I get
the following error:
<pre>ConnectionRefusedError: [WinError 10061] No connection could be made
because the target machine actively refused it</pre>
In my development.ini file I have the following configuration:
<pre>
[app:myproj]
mail.host = smtp.gmail.com
mail.port = 587
mail.username = [email protected]
mail.password = PASSWORD
mail.tls = True
</pre>
In my project's __init__.py file I have:
<pre>
from pyramid_mailer.mailer import Mailer
mailer = Mailer()
config = Configurator(settings=settings)
config.registry['mailer'] = Mailer.from_settings(settings)
</pre>
I had to resort to using SMTPLib, which doesn't bother me, but I would like
to use pyramid_mailer since it is a
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pylons-discuss/672d1b3e-1cf0-4cbb-8149-9fa16b696429%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.