Re: Sending email as a separate service

2013-03-19 Thread Jonathan Vanasco
reading your question... are you using a commandline interface/script for the nightly task ? http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/commandline.html after initiating the bootstrap, it would be just a few lines of logic to handle your work -- and it all would

Re: Sending email as a separate service

2013-03-19 Thread Vincent Catalano
I am not using a commandline interface. I ended up creating a new APScheduler instance from within the applications main() function. That way, the scheduled service will run only when the server is running. It is in the applications main() function that I create a pyramid_mailer instance and pass

Re: Sending email as a separate service

2013-03-19 Thread Jonathan Vanasco
On Tuesday, March 19, 2013 2:31:09 PM UTC-4, Vincent Catalano wrote: I am not using a commandline interface. I ended up creating a new APScheduler instance from within the applications main() function. That way, the scheduled service will run only when the server is running. It is in the

Re: Sending email as a separate service

2013-03-18 Thread Vincent Catalano
Thanks for the reply, Eric. I think I figured out a solution, albeit my question was a bit confusing. I have an e-commerce website that integrates with a payment gateway in order to manage paid subscriptions for users. Sometimes these subscription payments fail - either from expired cards or

Sending email as a separate service

2013-03-16 Thread Vincent Catalano
I'm attempting to setup pyramid_mailer with a website I'm developing. The current documentation ( http://docs.pylonsproject.org/projects/pyramid_mailer/en/latest/) recommends creating a single instance of the Mailer and adding it to the configuration setup. However, I want to configure numerous

Re: Sending email as a separate service

2013-03-16 Thread Eric Rasmussen
I may be misunderstanding the question because I am not too familiar with APScheduler, but it sounds like you want to use mailer.send_to_queue(message) instead of mailer.send(message). As long as you're sending it to the queue for later processing there shouldn't be any need to have multiple

Re: sending email

2007-05-02 Thread voltron
Thanks Shannon On May 2, 1:24 am, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 5/1/07, voltron [EMAIL PROTECTED] wrote: Hi, Is there a specific way or helpers for sending mail in a controllers in Pylons, or do I just import the smtp lib for python and use that? I just use smtplib.

sending email

2007-05-01 Thread voltron
Hi, Is there a specific way or helpers for sending mail in a controller in Pylons, or do I just import the smtp lib for python and use that? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Re: sending email

2007-05-01 Thread Shannon -jj Behrens
On 5/1/07, voltron [EMAIL PROTECTED] wrote: Hi, Is there a specific way or helpers for sending mail in a controllers in Pylons, or do I just import the smtp lib for python and use that? I just use smtplib. Best Regards, -jj -- http://jjinux.blogspot.com/