Nerdtrix / EZMAIL

EZMAIL is a lightweight package created with PHP using the official MIME documentation to send emails using the latest SMTP configuration. By using this package you will be able to send encrypted emails to anyone with a valid email address.
MIT License
6 stars 2 forks source link

Rejected due to high probability of spam #5

Open jerryurenaa opened 1 year ago

jerryurenaa commented 1 year ago

Rejected due to high probability of spam (in reply to end of DATA command)

LOG

Forcing SSL on port 465 Connected to smtp server SMTPRECV:220 PrivateEmail.com prod Mail Node SMTPSEND:EHLO mail.privateemail.com SMTPRECV:250-mta-07.privateemail.com SMTPRECV:250-PIPELINING SMTPRECV:250-SIZE 81788928 SMTPRECV:250-ETRN SMTPRECV:250-AUTH PLAIN LOGIN SMTPRECV:250-ENHANCEDSTATUSCODES SMTPRECV:250-8BITMIME SMTPRECV:250 CHUNKING Skipping STARTTLS on SSL connection Doing standard auth SMTPSEND:AUTH LOGIN SMTPRECV:334 VXNlcm5hbWU6 SMTPSEND:aW5mb0BjbGljay10b29sLnBybw== SMTPRECV:334 UGFzc3dvcmQ6 SMTPSEND:Q2xpY2tYdHJlbWVAMTIzNA== SMTPRECV:235 2.7.0 Authentication successful SMTPSEND:MAIL FROM: SMTPRECV:250 2.1.0 Ok SMTPSEND:RCPT TO: SMTPRECV:250 2.1.5 Ok SMTPSEND:DATA SMTPRECV:354 End data with . Ready to send mail data SMTPSEND:MIME-Version: 1.0 SMTPSEND:X-Mailer: name SMTPSEND:Date: Tue, 07 Mar 2023 17:55:42 -0500 SMTPSEND:Priority: 3 SMTPSEND:Subject: =?utf-8?B?WW91ciBvbmUtdGltZSB2ZXJpZmljYXRpb24gY29kZQ==?= SMTPSEND:Return-Path: SMTPSEND:From: SMTPSEND:Message-ID: NXhxhzqAtkEUzp267RpbQgHH3AuFKfdoXgW9JkMc4UJ8XPqP6WlCGC88Os9hgZRR@localhost SMTPSEND:To: mastersoft15 SMTPSEND:Reply-To: SMTPSEND:Content-Type: multipart/alternative; boundary="boundaryNXhxhzqAtkEUzp267RpbQgHH3AuFKfdoXgW9JkMc4UJ8XPqP6WlCGC88Os9hgZRR@localhost" SMTPSEND: SMTPSEND:--boundaryNXhxhzqAtkEUzp267RpbQgHH3AuFKfdoXgW9JkMc4UJ8XPqP6WlCGC88Os9hgZRR@localhost SMTPSEND:Content-Type: text/html; charset="UTF-8" SMTPSEND:Content-Transfer-Encoding: base64 SMTPSEND: SMTPSEND:. SMTPRECV:250 2.0.0 Ok: queued as A83DE18000A8 Mail data sent SMTPSEND:QUIT Disconnected from smtp server

jerryurenaa commented 1 year ago

This issue occurs while sending base64_encode subjects. It seems that some servers do not support encoding subjects. To fix this send the subject unencoded. eg: "Subject: " . $subject and not "Subject: =?utf-8?B? . base64_encode($subject) . ?="