I want to send a email to a group of user in django app.
I am using django post office as I will be sending email asynchronously.
So I got to know about the send many function of it but that also create separate email object for different recipient.
Is sending email using bcc field is possible with post_office.
After downloading and reviewing the source from GitHub, it does not look like django-post_office supports bcc out of the box. The good news is that the Email model (models.py) creates the email message using Django's EmailMultiAlternatives, which supports bcc. So with some minor tweaking of the source on your part, it can be quickly supported.
Related
I kept it simple with images and added my tracking links. I did not use the coding version. It's very basic but still shows differently in my outlook vs gmail.
I have tried using code in certain modules vs images but the result is the same. View gendgrid preview, outlook & gmail
The email that SendGrid sends to Outlook is the same as the email that SendGrid sends to Gmail.
However, every email client renders email differently. What's allowed and supported in one inbox provider isn't the same as the others.
Make sure to test your emails in multiple inboxes and fix any inconsistencies, before sending it out to real customers.
Besides that, I can't answer your question without more information. Can you share your template and add screenshots of the email in gmail vs outlook?
So I'm working on this django web app and I want to create a contact me form for my client. My client wants the users of his website to be able to send him emails directly from the form available on the platform. But my client uses a free yahoo email address.
I'm kind of confused of where to begin. But here is my suggested approach see if you can give me an advice:
1- create a form in the forms.py with the different fields of the form.
2 - link the form to the template.
3- create the view for the contact form.
4- add the path in the url pattern.
I read an article that says I need to go through an email service like SendGrid to actually send an email. But it said that I need a professional account to be able to do it.
I really appreciate your attention.
Your way to go looks good.
You do not need any sending service, as long as you have a proper SMTP account to use for sending.
Just add the SMTP credentials to your settings.py and you can use the django core functions to send email messages.
https://docs.djangoproject.com/en/4.0/topics/email/#send-mail
https://docs.djangoproject.com/en/4.0/topics/email/#smtp-backend
Does Django CMS have a contact form plugin which when submitted will send an e-mail to both my e-mail and the submitter's e-mail?
I plan to have a form where the field only contains the submitter's name and e-mail then the submitter will receive an e-mail with an attached pdf
There are plugins available, I've personally created my own in the past as every site had different requirements (form fields, captcha mechanism etc). There were some that offered captcha.
Here's one created recently, I haven't tested this personally: https://github.com/juliarizza/djangocms_contact_form
Another plugin last updated 2 years ago:
https://github.com/maccesch/cmsplugin-contact
Perhaps the only feature-complete version would be aldryn-forms. Its UX is rather poor though, eg the email notifications for the admin should be enabled on the Form plugin, but the email notification for the user should be configured on the Email field plugin.
There's also a generic project template which utilizes this plugin along with its recaptcha v3 and bootstrap4 packages - https://gitlab.com/what-digital/djangocms-template
I am working on event management tool, There is I need log all sending mail and also save in the table for the show in back-end(Admin Site) for the capturing all of the mail being sent.
Please suggest me If any gem for this.
Thanks.
You can do this but this is not a question to ask here
Create a Model Email and then necessary fields to save email
Make user mailer using tutorial here
Make a def and form for email.
Then when you create email send them and save as #email.save as you do when saving other post or data
I am developing a Django-based system. It is kind of client-tracking tool.
Some users can work with different client accounts.
I would like to track the emails among users and clients within the application.
The company uses MS Outlook Server as a mail server and users are sending emails from their workstations.
The goal is to have the list of emails to/from users/client on the web page.
I see some possible ways how to do this.
Make the email form on the web page and send all emails from this page. Thus we can store the email sent.
While sending the email - manually add a CC field with the address of robot who will have access to this mail thread and can fetch messages from the inbox sorting them by the sender/recipients.
Automatically fetch messages from user mailboxes (don't want to store their passwords though)
Probably use some mail filter on the mail server to forward messages from/to specified address (don't know how to do this)
But maybe someone can give some advices? Any ideas, guys?
I had done something similar a couple years ago (with Postfix, however, not with MS Exchange).
The best approach IMO is to setup a mailserver to blind-copy each email to your script. In Postfix this called a "custom transport". This way your clients will be able to send emails using any program, not necessary through a web form. AFAIK, nearly all production email archiving solutions work that way.
Sounds like you are looking for something like the journaling feature in microsoft exchange-server. It allows you to define a special mailbox that will recieve a copy of all mails. You can find more information about this here, here and here
Once all the messages are in one mailbox you can access it from your application.