471,330 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

SMTPlib Sender Refused?

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
1 4932
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.

Similar topics

1 post views Thread by David Hughes | last post: by
3 posts views Thread by yazzoo | last post: by
8 posts views Thread by Josh Close | last post: by
8 posts views Thread by dccarson | last post: by
7 posts views Thread by 3KWA | last post: by
reply views Thread by gillespie.amanda | last post: by
reply views Thread by 7stud | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.