django-helpdesk icon indicating copy to clipboard operation
django-helpdesk copied to clipboard

Multiple smtp accounts for each Queue

Open dominicfollett opened this issue 10 years ago • 6 comments
trafficstars

Are different smtp accounts able to be added to a queue, such that queue_1 has smtp_1, queue_2 has smtp_2 etc? If not, I'll look into doing this for my needs - would you be interested in a pull request once I'm done?

dominicfollett avatar Jul 13 '15 06:07 dominicfollett

How would this fit with the email backend? What if you aren't sending by SMTP but you're using a backend such as Mandrill to send email? At the risk of over-complicating, should this perhaps allow definition of a different email backend for each queue, each with it's own settings, rather than assuming SMTP?

rossp avatar Jul 13 '15 22:07 rossp

I rather like the sound of that - but would those be custom integrations with backends like Mandrill and others? If it means writing code for each API, that'd be a lot of work. Perhaps just support for the most used services then? So far I've written code that opens and closes a separate connection to an smtp server if some settings are filled in the queue admin options. If it fails it uses the default email backend smtp connection.

dominicfollett avatar Jul 14 '15 12:07 dominicfollett

Django already includes multiple email backends, and has third party support for custom backends.

I suggest that a queue should have a 'backend' option. If left blank the Django default is used, otherwise the provided value is used. That backend might just be a different 3rd party backend (ie djrill) or it might be a custom backend that provides a new set of SMTP settings.

No point reinventing the wheel here.

rossp avatar Jul 14 '15 22:07 rossp

Ah forgive my ignorance, I see what you mean then, yes a backend option per queue would be better than what I've written.

dominicfollett avatar Jul 15 '15 06:07 dominicfollett

@dominicfollett I noticed your fork implementing this, and have ideas in mind on how to implement as per @rossp's design guidelines above. We've got several other items already in the queue, so I'm not offering any immediate action on it, but I thought I'd let you know it's now an item we'll be considering for action upon in the short-to-medium term depending on how it coincides with other requested email enhancements. Thanks for putting it on the map! 😄

reduxionist avatar Dec 11 '16 00:12 reduxionist

Per #577 making a note about a similar request for each queue having SMTP access:

Unless i'm seriously missing something, the queue email settings are only for incoming, Outgoing email (ie sending the submitter Ticket opened) uses the from_email of the queue settings and the other credentials (host, password, port, etc) from the default django settings. This is wrong as queue point out to [email protected] and my "default" email is [email protected]. So, Adding outgoing mail settings to the queue fields.

gwasser avatar Dec 20 '17 22:12 gwasser