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
Related
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
I've managed to create an email template and sending out email via the Mailgun API along with using the standard variables like the recipient details and the unsubscribe links.
But one thing we would like to offer to the user is the ability to view the email in their browser instead of in the email client. Does anyone know if this is possible out of the box? I've checked all the documentation and I cant see any way of achieving this.
Thanks in advance.
Is there any way I can call the "Zapier trigger" from my Django Code,
Basically, I am having a Django form where the user will enter several email-id and when the user clicks on send button then I want to send this form data to Zapier in order to do the next action like writing in google spreadsheet or sending email to everyone.
David here, from the Zapier Platform team. The easiest way to do this is to have the form submit against your server and use a library like requests to POST to Zapier. This way, you don't have to worry about CORS or revealing the hook url to your users.
Hope that makes sense. Let me know if you've got any other questions!
I am not sure from your question if this is related to how to make the call from Python (which #xavdid answered) or how to trigger a zap. If this is about triggering a Zap, here's the answer.
Setup a Zap by choosing the Webhooks by Zapier app as the trigger. Choose catch a raw hook, if you need more control. In the next step, you will receive a URL where you can POST your form-data.
Everytime you POST data the Zap will be triggered. You can use the data available from your request in the action step for Google Sheets or Emails.
Here are a few Zap Templates that you could start from.
Add info to Google Sheets from a Webhook POST
Send emails from a Webhook POST (Using Zapier's email app)
Send emails from a Webhook POST (using Gmail)
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.
What I am trying to do is this:
Send an invitation for an event via HTML eblast. I would like the users to be able to RSVP straight from the email (click Yes, No, Maybe) and by doing so, will send that info into a database for my client to view the responses.
They specifically do not want responses coming in as emails, they want to view it as a list, and does not want to use something like evite. I've looked everywhere but don't see how to do this. Any thoughts? Thanks in advance!
I believe you would need to dynamically generate an email message for each recipient.
You would alter the Yes/No/Maybe URLs for each recipient so it sends their information to a web page (php/aspx/whatever) that then adds their selection to your database.
So you would loop through your list of recipients, generate the email with a variable altering the url of your Yes/No/Maybe links to something like http://yoursite.com/rsvp.php?user=<TheUsersName>&selection=<YesNoOrMaybe>.
Then just have that rsvp.php page set up to pull the GET variables you passed with the link and add them to your database.