I'm using smtplib to send email via AOL account, but after successful authentication it gets rejected with following error. Reply: '521 5.2.1: AOL will not accept delivery of this message.rn'reply: retcode (521); Msg: 5.2.1: AOL will not accept delivery of this message.data: (521, '5.2.1: AOL will not accept delivery of this message.' )Here's explanation for this error. The SMTP reply code 521 indicates an Internet mail host DOES NOT ACCEPTincoming mail. If you are receiving this error it indicates a configurationerror on the part of the recipient organisation, i.e. Inbound e-mail trafficis being routed through a mail server which has been explicitly configured(intentionally or not) to NOT ACCEPT incoming e-mail.Recipient mail (in my script) is valid (gmail) address and after this debug message mail gets rejected.
![]()
Send: 'Content-Type: text/plain; charset='us-ascii'rnMIME-Version: 1.0rnContent-Transfer-Encoding: 7bitrnSubject: My reportsrnFrom: [email protected]: [email protected] you have my reports?rn.rn'Here's short version of code: rmail = MIMEText('Do you have my reports?' )rmail'Subject' = 'My reports'rmail'From' = emailrmail'To' = '[email protected]'mail = smtplib.SMTP('smtp.aol.com', 587)mail.setdebuglevel(True)mail.ehlomail.starttlsmail.login(email, password)mail.sendmail(email, '[email protected]', rmail.asstring)Is this some kind of permission problem because I'm successfully sending same email with Yahoo account without any problems? Was running into 5.2.1: AOL will not accept delivery of this message. From the AOL SMTP relay myself. What I ended up needing was valid From and To headers in the MIME message body, as opposed to just the SMTP connection.In your particular case there could be any number of reasons for getting this 5.2.1 bounce. The postmaster.aol.com site has some helpful tools to diagnose, as well as some pretty vague documentation for this specific error message.
In my case I ended up packet sniffing the SMTP messages that my Thunderbird email client was sending vs. The Python script, and eventually spotted the difference.
What does AOL stand for? Your abbreviation search returned 24 meanings. Link/Page Citation Category Filters; All definitions (24) Information Technology (5) Military & Government (4) Science & Medicine (5) Organizations, Schools, etc. (5) Business & Finance (5) Slang, Chat & Pop culture (7) Sort results. What Does 'AOL' Stand For? AOL is the shortened form of America Online, which is the company's full name. As of 2009, the company rebranded themselves as 'Aol,' rather than using the capitalized form.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |