It sounds like you want the user to click a button and have a form appear where the user can compose an email. The simplest implementation might be to make that button a link (<a>) to a page like /email/compose that renders the form. No javascript needed there. Gmail uses javascript to render their form on top of the inbox because they don't want you to have to leave the inbox page. You probably don't have that requirement.
Let me know if that works for you.
Cheers,
Joel
On Monday, March 22, 2021 at 8:11:48 AM UTC-4 Smiley wrote:
Hello,Correct me if I'm wrong. I understand that creating the template is possible with django but I have one question.Is it possible to create that email template with the click of a button? For example, in Gmail there's a button "compose". When you click that button it creates an email template with to, CV, text area to write text to and other stuff.Right now my implementation is via javascript where it creates that email template dynamically on button click hut I myself wanted to know if it's possible to do this with Django.Let me know if you have any questions.Kind regardOn Mon, Mar 22, 2021, 12:32 AM Sebastian Jung <sebasti...@gmail.com> wrote:Hello,This is dir Django a relativ easy Task. You create a Form with fields Like to,CC,BCC,subject,Text message, HTML Message and Render These Form. Then User enter all Data and when it submit you get the Post Data And submit IT with djangos Sendmail https://docs.djangoproject.com/en/3.1/topics/email/I Hope that i can Help you.--Smiley <ungurk...@gmail.com> schrieb am So., 21. März 2021, 21:30:Hello,I am new to Django and recently finished the Polls app tutorial in Django site. After that, I read what to do next and Django is a big fan of learning by doing so I went online and looked for beginner projects to do to learn web development.I am planning to create a site to automate or manually send out emails with a lot more customizations to learn both front-end and back-end. After starting to do it I realized that a lot of work has to be done on client-side so here's the question.Do I have to use Javascript to create an email template when user clicks the button create email or can this be done in Python / Django?My github repository for this project: https://github.com/SmileyBoy321/Django-Email-SenderThe progress is slow as I am learning and also working full-time on non-dev job. I am sacrificing some fragments of my life to make time for coding.Please advise, thank you.Kind regards,Kristen--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e7043c96-9976-4354-aaa9-b1edd29172f6n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKGT9mzkdXQVLs09TfsPf7ojKA1pUn10CTmhkcHx1ikkqkhszQ%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c87d73a1-bcb8-4b57-9e3f-fe37a34ed76bn%40googlegroups.com.
No comments:
Post a Comment