SMTPlib Sender Refused?

E

erikcw

Hi,

I'm trying to send an email message with python, and I'm getting this
error:

Traceback (most recent call last):
File "wa.py", line 430, in ?
main()
File "wa.py", line 425, in main
smtp.sendmail(fromaddr, to, msg.encode('utf-8'))
File "/usr/local/lib/python2.4/smtplib.py", line 680, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (503, 'sender already given',
'(e-mail address removed)')

What is causing this?

Thanks!
Erik
 
R

reed

Hi,

I'm trying to send an email message with python, and I'm getting this
error:

Traceback (most recent call last):
File "wa.py", line 430, in ?
main()
File "wa.py", line 425, in main
smtp.sendmail(fromaddr, to, msg.encode('utf-8'))
File "/usr/local/lib/python2.4/smtplib.py", line 680, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (503, 'sender already given',
'(e-mail address removed)')

What is causing this?

Thanks!
Erik

This error is given when the MAIL command has already been sent.

Usually this is indicative of some command failing (maybe invalid rcpt
to:??) and retrying without sending the RSET command.

Try connecting manually and see what you get.

~r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top