3👍
✅
Almost all public mail servers allow only emails with actual author’s email in From
header. You are trying to send email with “From: some_user@email.com”, which is being rejected. Really, it’s much like your problem with Google, but Yahoo drops an error instead of silently messing with headers.
I’d put user’s email into message body here, and maybe tried to put it into ‘Reply-To’ header manually.
P.S. It’s usually better to use named keyword arguments for every possible function (in your case – send_mail
). It often help to avoid silly arguments order errors.
Source:stackexchange.com