Re: Can not send mail

2023-08-06 Thread Kerem Üllenoğlu
Hey, I changed `EMAIL_PASSWORD` to `EMAIL_HOST_PASSWORD` and added the `DEFAULT_FROM_EMAIL`, now it works. See my Stack Overflow question <https://stackoverflow.com/questions/76829177/django-can-not-send-mail-but-smtplib-can>. I don't understand why the server said "We do not

Can not send mail

2023-08-04 Thread Kerem Üllenoğlu
Hi. I was trying to use Django's accounts system and configured some templates. When I tried to do password reset, it said "SMTPRecipientsRefused at /accounts/password_reset/". But it works when I send an email with smtplib. In Django settin

Re: send mail

2020-12-29 Thread Kasper Laudrup
me kind of mail transport mechanism and it seems like you have a local SMTP server available when using your local host. That is most likely not the case on your hosting provider, so you need to figure out how to configure Django to send mail in a way your hosting provider supports. W

send mail

2020-12-28 Thread Masum Billah
I am new at django. I am facing some problems. sen_mail function works at local host but i when i upload it to c-panel it does not work . it shows error . -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Send mail bug needs password passed as bytearray

2017-02-01 Thread elliot
Thanks for getting back to me. I guess I have gotten myself confused. Im using 1.10.5 and have been looking at the master version on github. My work around has the emails working so I'll just leave it and get with the times and work with python 3 in the future. On Thursday, February 2, 2017 a

Re: Send mail bug needs password passed as bytearray

2017-02-01 Thread Tim Graham
Following the Django 1.11 alpha release, the stable/1.11.x branch was created and master became Django 2.0 pre-alpha. You can read more details about how that works at https://docs.djangoproject.com/en/dev/internals/release-process/#release-process On Tuesday, January 31, 2017 at 9:24:13 PM UTC

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
Really? I should look at moving to python 3 but my understanding was that python 2.7 would be supported until Django 2.0 according to the docs On Wednesday, February 1, 2017 at 1:21:21 PM UTC+13, Tim Graham wrote: > > Oh, I see, you're using

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread Tim Graham
Oh, I see, you're using bytearray to try to workaround the issue. Well, Django master no longer supports Python 2.7, that's why force_str() was removed. Is there a problem with Django master and Python 3? On Tuesday, January 31, 2017 at 7:16:41 PM UTC-5, ell...@makecollective.co.nz wrote: > > N

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
Neither. I haven't seen anything with webfaction and I have used webfaction in the past on several projects and not had any trouble. On Wednesday, February 1, 2017 at 12:12:56 PM UTC+13, Tim Graham wrote: > > I've never seen a password as a bytearray. Is there webfaction > documentation about t

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread Tim Graham
I've never seen a password as a bytearray. Is there webfaction documentation about this? On Tuesday, January 31, 2017 at 6:06:04 PM UTC-5, ell...@makecollective.co.nz wrote: > > myMail = EmailMessage('subject', 'message', 'some...@address.com > ', ['mye...@address.com ']) > myMail.send() > > Th

Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
myMail = EmailMessage('subject', 'message', 'someem...@address.com', ['myem...@address.com']) myMail.send() The error I'm getting: File "/Users/Elliot/.virtualenvs/allright/lib/python2.7/site-packages/django/core/mail/message.py" , line 342, in send return self.get_connection(fail_silent

Re: Send mail after x hours

2016-08-17 Thread Asad Jibran Ahmed
>> *From: *Kishan Mehta >> *Sent: *Wednesday, August 17, 2016 4:35 PM >> *To: *django...@googlegroups.com >> *Subject: *Send mail after x hours >> >> >> >> Hi guys, >> >> >> >> I am using django 1.9. I am working on requirem

Re: Send mail after x hours

2016-08-17 Thread Kishan Mehta
esday, August 17, 2016 4:35 PM > *To: *django-users@googlegroups.com > *Subject: *Send mail after x hours > > > > Hi guys, > > > > I am using django 1.9. I am working on requirement where we need to send > users reminder to activate their account by email after x hours h/she has

RE: Send mail after x hours

2016-08-17 Thread Dheerendra Rathor
I’ll suggest you to use some background task runner. Celery will work great for you as it is developed for Python and work on multiple platform with multiple types of message queues. Sent from Mail for Windows 10 From: Kishan Mehta -- You received this message because you are subscribed to th

Send mail after x hours

2016-08-17 Thread Kishan Mehta
Hi guys, I am using django 1.9. I am working on requirement where we need to send users reminder to activate their account by email after x hours h/she has signed on our platform. I have send_mail task and I have configured https://github.com/ui/django-rq to send mails. One way I can think of is

Re: I can send mail with shell but can't sent mail via view

2015-01-09 Thread Hossein Rashnoo
nk the 'telnet' test would be a > good one to run before troubleshooting your code any further. Many ISP's > block port 25 going out to the Internet because that is the default port > used for SMTP communication between SMTP servers to relay mail. Spammers > use this por

Re: I can send mail with shell but can't sent mail via view

2015-01-08 Thread James Schneider
l. Spammers use this port to directly send mail to remote servers, hence the reason it is blocked. I would try 587 as an alternative, as it appears your mail provider offers it. You may still need to set EMAIL_USE_TLS to False for it to work though. If you run the 'telnet mail.pep.co.ir 25

Re: I can send mail with shell but can't sent mail via view

2015-01-08 Thread James Schneider
Thanks. I can see from the traceback that you have EMAIL_USE_TLS set to True, but you also have EMAIL_PORT set to 25. It doesn't appear that your email server supports TLS via port 25: $ openssl s_client -starttls smtp -connect mail.pep.co.ir:25 CONNECTED(0003) didn't found starttls in server

Re: I can send mail with shell but can't sent mail via view

2015-01-08 Thread Hossein Rashnoo
Thank you for your reply, it seems that every thing is ok: $ nslookup mail.pep.co.ir Server: 10.252.84.50 Address:10.252.84.50#53 Non-authoritative answer: Name: mail.pep.co.ir Address: 79.175.161.174 and: $ python manage.py shell >>> import socket >

Re: I can send mail with shell but can't sent mail via view

2015-01-08 Thread James Schneider
Can you send the whole traceback? Name resolution errors indicate an issue with DNS reachability, or a domain name incorrectly entered somewhere. I'm assuming that you are running the shell on the same server that is running your Django instance? You should be able to do the following on the serve

I can send mail with shell but can't sent mail via view

2015-01-08 Thread Hossein Rashnoo
Hi I use this settings to send email: settings.py EMAIL_HOST = "mail.xx.ir" EMAIL_PORT = "25" EMAIL_HOST_USER = "xx...@xxx.ir" EMAIL_HOST_PASSWORD = "" EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' DEFAULT_FROM_EMAIL = 'xx...@xxx.ir' and in python shell: from django.c

Re: Django Send Mail

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 13:36:42 Sudharshan wrote: > d that too... doesn't seem to be working > moreover i need to add that from the google searching that i did i > come to know that all cpanel accounts are smtp- authenticated! > but still i don't know what the problem is > not all are - I

Re: Django Send Mail

2010-06-10 Thread Sudharshan
i tried that too... doesn't seem to be working moreover i need to add that from the google searching that i did i come to know that all cpanel accounts are smtp- authenticated! but still i don't know what the problem is moreover i was getting proper debug tracebacks to my mail upto few months

Re: Django Send Mail

2010-06-09 Thread Roshan Mathews
On Thu, Jun 10, 2010 at 09:58, Sudharshan wrote: > SMTPDataError: (550, 'Please use SMTP authentication or check your > POP3 mail before attempting to\nsend mail.') > Given that error, maybe this will help, http://en.wikipedia.org/wiki/POP_before_SMTP -- http://roshan.mathews.in/ -- You receiv

Re: Django Send Mail

2010-06-09 Thread Kenneth Gonsalves
On Thursday 10 June 2010 09:58:52 Sudharshan wrote: > We have a server maintained by site5.com(have a cPanel > interface) and that we have installed django ! I remember send_mail > function working well last year and also the mail_admins() function > were working properly, but right now we

Django Send Mail

2010-06-09 Thread Sudharshan
Hello Ppl, We have a server maintained by site5.com(have a cPanel interface) and that we have installed django ! I remember send_mail function working well last year and also the mail_admins() function were working properly, but right now we get this error... SMTPDataError: (550, 'Please

Re: How to attach file with send mail

2008-09-17 Thread laspal
Which documentation are you talking about?? On Sep 17, 3:49 pm, Erik Allik <[EMAIL PROTECTED]> wrote: > A few months ago I had a similar need and I believe the documentation > helped me out. > > Erik > > On 17.09.2008, at 11:23, laspal wrote: > > > > > Hi, > > I wanted to know how I can attach a

Re: How to attach file with send mail

2008-09-17 Thread Erik Allik
A few months ago I had a similar need and I believe the documentation helped me out. Erik On 17.09.2008, at 11:23, laspal wrote: > > Hi, > I wanted to know how I can attach a file while sending mail to the > user. > Sending mail is working fine but now I have to send a file with a > mail. > W

How to attach file with send mail

2008-09-17 Thread laspal
Hi, I wanted to know how I can attach a file while sending mail to the user. Sending mail is working fine but now I have to send a file with a mail. What are the things I have to use?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Send mail with gmail smtp

2007-04-02 Thread peonleon
Aha, I applied the patch (#2897), and it works like a charrm! Thanks everybody! Leon On Apr 2, 5:30 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-04-02 at 12:19 +, [EMAIL PROTECTED] wrote: > > Hi, > > > Has anyone successfully used gmail's

Re: Send mail with gmail smtp

2007-04-02 Thread Chris Moffitt
> Has anyone successfully used gmail's smtp to send mail? I've been > trying, but so far no luck. I've added this to my settings.py: > > EMAIL_TLS = True > EMAIL_HOST = smtp.gmail.com > EMAIL_HOST_PASSWORD = mypassword > EMAIL_HOST_USER = myusername > EMAI

Re: Send mail with gmail smtp

2007-04-02 Thread Deryck Hodge
On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Has anyone successfully used gmail's smtp to send mail? I've been > trying, but so far no luck. I've added this to my settings.py: > > EMAIL_TLS = True > EMAIL_HOST = smtp

Re: Send mail with gmail smtp

2007-04-02 Thread Malcolm Tredinnick
On Mon, 2007-04-02 at 12:19 +, [EMAIL PROTECTED] wrote: > Hi, > > Has anyone successfully used gmail's smtp to send mail? I've been > trying, but so far no luck. I've added this to my settings.py: > > EMAIL_TLS = True > EMAIL_HOST = smtp.gmail.co

Send mail with gmail smtp

2007-04-02 Thread peonleon
Hi, Has anyone successfully used gmail's smtp to send mail? I've been trying, but so far no luck. I've added this to my settings.py: EMAIL_TLS = True EMAIL_HOST = smtp.gmail.com EMAIL_HOST_PASSWORD = mypassword EMAIL_HOST_USER = myusername EMAIL_PORT = 465 Is something incorrect

Re: Can't Send Mail.

2006-10-09 Thread shidan
Thanks, that was it, luckily I have cygwin installed which comes with a mail server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegrou

Re: Can't Send Mail.

2006-10-09 Thread Karen Tracey
James Bennett wrote: > In order for email to work, you do have to have a valid email server > to connect to, either running locally or on a remote server. And if it's remote, you need to set EMAIL_HOST to point to it in your settings file. --~--~-~--~~~---~--~~ Y

Re: Can't Send Mail.

2006-10-09 Thread James Bennett
On 10/9/06, shidan <[EMAIL PROTECTED]> wrote: > Im getting the following exception: > > Request Method: POST > Request URL:http://localhost:8000/signup/ > Exception Type: error > Exception Value:(10061, 'Connection refused') > Exception Location: C:\Python24\lib\smt

Can't Send Mail.

2006-10-09 Thread shidan
Hi, when I use the following: send_mail(email_subject, email_body, '[EMAIL PROTECTED]', [new_user.email],fail_silently=False,) Im getting the following exception: Request Method: POST Request URL:http:/