django send email using EmailMultiAlternatives Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Sending email in .NET through GmailHow to validate an email address in JavaScript?How to validate an email address using a regular expression?What is the maximum length of a valid email address?Send email using the GMail SMTP server from a PHP pageDoes Django scale?How to send email via Django?Send Email IntentDjango & Amazon SES SMTP. Cannot send emailUsing third party Email system for Django Password Reset

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

How to not starve gigantic beasts

Multiple fireplaces in an apartment building?

Protagonist's race is hidden - should I reveal it?

Where did Arya get these scars?

Can you stand up from being prone using Skirmisher outside of your turn?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Is accepting an invalid credit card number a security issue?

Why isn't everyone flabbergasted about Bran's "gift"?

Will I lose my paid in full property

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Are all CP/M-80 implementations binary compatible?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

How to get even lighting when using flash for group photos near wall?

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Does Mathematica have an implementation of the Poisson binomial distribution?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Rolling Stones Sway guitar solo chord function

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Married in secret, can marital status in passport be changed at a later date?

How do I check if a string is entirely made of the same substring?

Is it OK if I do not take the receipt in Germany?

What's parked in Mil Moscow helicopter plant?



django send email using EmailMultiAlternatives



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Sending email in .NET through GmailHow to validate an email address in JavaScript?How to validate an email address using a regular expression?What is the maximum length of a valid email address?Send email using the GMail SMTP server from a PHP pageDoes Django scale?How to send email via Django?Send Email IntentDjango & Amazon SES SMTP. Cannot send emailUsing third party Email system for Django Password Reset



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have a need for sending an email using django EmailMultiAlternatives, and after long hours of research I found a way to customize the host, port, user and password, but, when execute my code there is a really weird error 'EmailBackend' object is not iterable



Here is my Settings



ACCOUNT_EMAIL = os.environ['ACCOUNT_EMAIL']
ACCOUNT_PASSWORD = os.environ['ACCOUNT_PASSWORD']
EMAIL_PROVIDER = 'krishna.hosting-mexico.net'
EMAIL_SERVER_PORT = 465
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'


Extra variables



EMAIL = settings.ACCOUNT_EMAIL
PASSWORD = settings.ACCOUNT_PASSWORD
EMAIL_PROVIDER = settings.EMAIL_PROVIDER
EMAIL_SERVER_PORT = settings.EMAIL_SERVER_PORT
EMAIL_BACKEND = settings.EMAIL_BACKEND

connection = get_connection(host=EMAIL_PROVIDER,
port=EMAIL_SERVER_PORT,
username=EMAIL,
password=PASSWORD,
use_tls=True)


And here my function



def send_driver_welcome_email(user_email):
from_email_address = EMAIL
from_email_address_password = PASSWORD

htmly = get_template('driver_welcome_email.html')

html_content = htmly.render(None)

msg = EmailMultiAlternatives('Bienvenido a TAXI 2.0',
html_content,
from_email_address,
[user_email],
connection)
msg.attach_alternative(html_content, "text/html")
msg.send()


I have tried to not specify the EMAIL_BACKED, but the error still shows up, also this it's the closer that had get to send a custom "site" as an email, it has some images and two different stylesheets and I dind't find any other way, if you have one, then your suggestion will be welcome.










share|improve this question






























    0















    I have a need for sending an email using django EmailMultiAlternatives, and after long hours of research I found a way to customize the host, port, user and password, but, when execute my code there is a really weird error 'EmailBackend' object is not iterable



    Here is my Settings



    ACCOUNT_EMAIL = os.environ['ACCOUNT_EMAIL']
    ACCOUNT_PASSWORD = os.environ['ACCOUNT_PASSWORD']
    EMAIL_PROVIDER = 'krishna.hosting-mexico.net'
    EMAIL_SERVER_PORT = 465
    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'


    Extra variables



    EMAIL = settings.ACCOUNT_EMAIL
    PASSWORD = settings.ACCOUNT_PASSWORD
    EMAIL_PROVIDER = settings.EMAIL_PROVIDER
    EMAIL_SERVER_PORT = settings.EMAIL_SERVER_PORT
    EMAIL_BACKEND = settings.EMAIL_BACKEND

    connection = get_connection(host=EMAIL_PROVIDER,
    port=EMAIL_SERVER_PORT,
    username=EMAIL,
    password=PASSWORD,
    use_tls=True)


    And here my function



    def send_driver_welcome_email(user_email):
    from_email_address = EMAIL
    from_email_address_password = PASSWORD

    htmly = get_template('driver_welcome_email.html')

    html_content = htmly.render(None)

    msg = EmailMultiAlternatives('Bienvenido a TAXI 2.0',
    html_content,
    from_email_address,
    [user_email],
    connection)
    msg.attach_alternative(html_content, "text/html")
    msg.send()


    I have tried to not specify the EMAIL_BACKED, but the error still shows up, also this it's the closer that had get to send a custom "site" as an email, it has some images and two different stylesheets and I dind't find any other way, if you have one, then your suggestion will be welcome.










    share|improve this question


























      0












      0








      0








      I have a need for sending an email using django EmailMultiAlternatives, and after long hours of research I found a way to customize the host, port, user and password, but, when execute my code there is a really weird error 'EmailBackend' object is not iterable



      Here is my Settings



      ACCOUNT_EMAIL = os.environ['ACCOUNT_EMAIL']
      ACCOUNT_PASSWORD = os.environ['ACCOUNT_PASSWORD']
      EMAIL_PROVIDER = 'krishna.hosting-mexico.net'
      EMAIL_SERVER_PORT = 465
      EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'


      Extra variables



      EMAIL = settings.ACCOUNT_EMAIL
      PASSWORD = settings.ACCOUNT_PASSWORD
      EMAIL_PROVIDER = settings.EMAIL_PROVIDER
      EMAIL_SERVER_PORT = settings.EMAIL_SERVER_PORT
      EMAIL_BACKEND = settings.EMAIL_BACKEND

      connection = get_connection(host=EMAIL_PROVIDER,
      port=EMAIL_SERVER_PORT,
      username=EMAIL,
      password=PASSWORD,
      use_tls=True)


      And here my function



      def send_driver_welcome_email(user_email):
      from_email_address = EMAIL
      from_email_address_password = PASSWORD

      htmly = get_template('driver_welcome_email.html')

      html_content = htmly.render(None)

      msg = EmailMultiAlternatives('Bienvenido a TAXI 2.0',
      html_content,
      from_email_address,
      [user_email],
      connection)
      msg.attach_alternative(html_content, "text/html")
      msg.send()


      I have tried to not specify the EMAIL_BACKED, but the error still shows up, also this it's the closer that had get to send a custom "site" as an email, it has some images and two different stylesheets and I dind't find any other way, if you have one, then your suggestion will be welcome.










      share|improve this question
















      I have a need for sending an email using django EmailMultiAlternatives, and after long hours of research I found a way to customize the host, port, user and password, but, when execute my code there is a really weird error 'EmailBackend' object is not iterable



      Here is my Settings



      ACCOUNT_EMAIL = os.environ['ACCOUNT_EMAIL']
      ACCOUNT_PASSWORD = os.environ['ACCOUNT_PASSWORD']
      EMAIL_PROVIDER = 'krishna.hosting-mexico.net'
      EMAIL_SERVER_PORT = 465
      EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'


      Extra variables



      EMAIL = settings.ACCOUNT_EMAIL
      PASSWORD = settings.ACCOUNT_PASSWORD
      EMAIL_PROVIDER = settings.EMAIL_PROVIDER
      EMAIL_SERVER_PORT = settings.EMAIL_SERVER_PORT
      EMAIL_BACKEND = settings.EMAIL_BACKEND

      connection = get_connection(host=EMAIL_PROVIDER,
      port=EMAIL_SERVER_PORT,
      username=EMAIL,
      password=PASSWORD,
      use_tls=True)


      And here my function



      def send_driver_welcome_email(user_email):
      from_email_address = EMAIL
      from_email_address_password = PASSWORD

      htmly = get_template('driver_welcome_email.html')

      html_content = htmly.render(None)

      msg = EmailMultiAlternatives('Bienvenido a TAXI 2.0',
      html_content,
      from_email_address,
      [user_email],
      connection)
      msg.attach_alternative(html_content, "text/html")
      msg.send()


      I have tried to not specify the EMAIL_BACKED, but the error still shows up, also this it's the closer that had get to send a custom "site" as an email, it has some images and two different stylesheets and I dind't find any other way, if you have one, then your suggestion will be welcome.







      python django email smtp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 9 at 14:59







      Mauricio Andrés

















      asked Mar 9 at 6:32









      Mauricio AndrésMauricio Andrés

      3317




      3317






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074694%2fdjango-send-email-using-emailmultialternatives%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074694%2fdjango-send-email-using-emailmultialternatives%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved