erp@erp-OptiPlex-330:~/Online-Shopping-master$ python manage.py shell
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.mail import send_mail
>>> send_mail('test email', 'hello world', to=['just2deepu@gmail.com'])
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: send_mail() got an unexpected keyword argument 'to'
>>> send_mail('test email', 'hello world', 'just2deepu@gmail.com', ['just2deepu@gmail.com'])
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: test email
From: just2deepu@gmail.com
To: just2deepu@gmail.com
Date: Mon, 10 Aug 2015 10:34:49 -0000
Message-ID: <20150810103449.6532.17868@erp-OptiPlex-330>
hello world
-------------------------------------------------------------------------------
1
>>>
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.mail import send_mail
>>> send_mail('test email', 'hello world', to=['just2deepu@gmail.com'])
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: send_mail() got an unexpected keyword argument 'to'
>>> send_mail('test email', 'hello world', 'just2deepu@gmail.com', ['just2deepu@gmail.com'])
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: test email
From: just2deepu@gmail.com
To: just2deepu@gmail.com
Date: Mon, 10 Aug 2015 10:34:49 -0000
Message-ID: <20150810103449.6532.17868@erp-OptiPlex-330>
hello world
-------------------------------------------------------------------------------
1
>>>
No comments:
Post a Comment