librelist archives

« back to archive

Question regarding flask mail

Question regarding flask mail

From:
James Willson
Date:
2012-08-20 @ 12:14
Im using Flask mail to try and send email with an external mail server 
(Amazon SES) but im wondering if I need to install any additional software
on my server, like postfix for example, to get it to work.
Can Flask-Mail communicate directly with the Amazon Mail server without 
the need for any SMTP existing on my Flask server?
Thanks :) 		 	   		  

Re: [flask] Question regarding flask mail

From:
Simon Sapin
Date:
2012-08-20 @ 12:32
Le 20/08/2012 14:14, James Willson a écrit :
> Im using Flask mail to try and send email with an external mail server
> (Amazon SES) but im wondering if I need to install any additional
> software on my server, like postfix for example, to get it to work.
>
> Can Flask-Mail communicate directly with the Amazon Mail server without
> the need for any SMTP existing on my Flask server?
>
> Thanks :)

Hi,

I’ve never used either, but apparently both Amazon SES and Flask-Mail 
speak SMTP so there should be no problem. Just configure Flask-Mail 
appropriately:

http://packages.python.org/Flask-Mail/#configuring-flask-mail

In particular, do *not* leave MAIL_SERVER to its default 'localhost'. 
Use the configuration given by Amazon.

-- 
Simon Sapin