Django-template-mail

DjangoÀÇ ÅÛÇø´ ½Ã½ºÅÛÀ» »ç¿ëÇÏ¿© ÀüÀÚ ¸ÞÀÏÀ» º¸³»´Â Django ÀÀ¿ë ÇÁ·Î±×·¥
Áö±Ý ´Ù¿î·Îµå

Django-template-mail ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Benoit Bar
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/benoitbar/

Django-template-mail ű×


Django-template-mail ¼³¸í

Django-template-mailÀº DjangoÀÇ ÅÛÇø´ ½Ã½ºÅÛÀ» »ç¿ëÇÏ¿© ÀüÀÚ ¸ÞÀÏÀ» º¸³»´Â Django ¾ÛÀÔ´Ï´Ù. Django-template-mailingÀ» »ç¿ëÇÏ¿© Django-template-mailconfigure¸¦ ½ÃÀÛÇÏ´Â Django (https://docs.djangoproject.com/ en / dev / ÁÖÁ¦ / À̸ÞÀÏ / # À̸ÞÀÏ ¹é¿£µå). ** django.core.mail ** by ** ** templatemail ** :: email_backend = 'templatemail.backends.smtp.emailbackends.smtp.emailbackend'convert html plain textby ±âº»°ª ÀÎ django-template-backend htmlÀ» º¯È¯ÇÏ´Â ¹Ì´Ï¸Ö¸®½ºÆ® ÇÁ·Î¼¼½º¸¦ »ç¿ëÇÏ¿© ÀÏ¹Ý ÅؽºÆ®. ** html2text ** (https://github.com/aaronsw/html2text) :: email_html2text = 'html2text.html2text'you´Â ÀÚ½ÅÀÇ ¸Þ¼Òµå¸¦ ÀÛ¼ºÇÏ°í ´ÙÀ½À» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù .: email_html2text ='your.module »ç¿ë °¡´É .Yourhtml2TextMethod'Sending EmailSto Django-template-mailÀÌÀÖ´Â À̸ÞÀÏ Àü¼Û Django ¹®¼­ (https://docs.djangoproject.com/en/docs.djangoproject.com/en/dev/topics/email/)¿¡¼­ ¼³¸íÇÑ ¸Þ¼Òµå¸¦ »ç¿ëÇÏ°í ** ¸Þ½ÃÁö¸¦ ´ëüÇؾßÇÕ´Ï´Ù. ** Æ©Çà ** ( 'directory_template / template.html', { 'Å°': 'value'}, context_instance) ** :: django.core.mail import send_mail send_mail ( 'ȯ¿µ', ( '¸ÞÀÏ' /welcome.html ', {'username ': request.user.username,'full_name ': request.user.get_full_name (),'signup_date ': request.user.date_joined}),'from@example.com ', [ 'to@example.com', fail_silly = false) Django-template-mail django ÅÛÇø®Æ® µð·ºÅ丮 / ·Î´õ ::

hi {{full_name}},

´ÙÀ½À» »ç¿ëÇÏ¿© °¡ÀÔÇÕ´Ï´Ù.

  • username : {{username}}
  • °áÇÕ ³¯Â¥ : {{signup_date }}
    • °¨»çÇÕ´Ï´Ù!

      Á¦Ç°ÀÇ È¨ÆäÀÌÁö


      Django-template-mail °ü·Ã ¼ÒÇÁÆ®¿þ¾î