By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,050 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,050 IT Pros & Developers. It's quick & easy.

SMTPlib Sender Refused?

P: n/a
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',
'm*@mydomain.com')

What is causing this?

Thanks!
Erik

Jun 2 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 2, 1:20 pm, erikcw <erikwickst...@gmail.comwrote:
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',
'...@mydomain.com')

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

Jun 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.