mikechabot / smtp-email-spoofer-py

Python 3.x based email spoofer
GNU General Public License v3.0
231 stars 51 forks source link

How to add "reply-to" option ? #10

Open kaipullas3c opened 3 years ago

kaipullas3c commented 3 years ago

Hello devs, I tried to include some code to implement reply-to in the code . Every thing is okay . But the mail not sent . It shows below error : Traceback (most recent call last): File "/root/tools/smtp-email-spoofer-py/spoofer/models/smtpconnection.py", line 100, in send_mail
self.server.sendmail(self.sender, self.recipients, self.reply, message.as_string())
File "/usr/lib/python3.9/smtplib.py", line 871, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (501, b'customer+reply@example.com size=20 M I M E - V e r s i o n : 1 . 0: malformed address: size=20 M I M E - V e r s i o n may not follow customer+reply@example.com', 'customer+reply@example.com')

I don't have any idea about this error . Could any one help me to solve this ?

mikechabot commented 3 years ago

Do you want to submit a PR with the reply_to option enabled, and I can take a look. I think this would be a good feature to add.

nokapzxackx commented 2 years ago

is it added?