Kitura / Swift-SMTP

Swift SMTP client
Apache License 2.0
260 stars 60 forks source link

Bare Line Feed Kickback #128

Open willm132 opened 2 years ago

willm132 commented 2 years ago

Your message contains invalid characters (bare line feed characters) which the email servers don't support.

This error occurs when the email program or device used to create or send an email message adds bare line feed characters into the message. When bare line feed characters are included in a message, the SMTP protocol chunking feature is required to transmit the message between email servers. Chunking uses the SMTP protocol BDAT command, but the recipient's email server doesn't support the BDAT command.

To fix the issue, the sender should send the message using an email program or device that doesn't add bare line feed characters to messages. Most modern email programs don't add bare line feed characters.

If the sender is using a device like a fax machine, printer, or scanner, it's likely an older model that doesn't support the SMTP protocol BDAT command. To fix this error, you'll need to replace the device with a newer model that supports the BDAT command. The industry standard recommendation to support SMTP chunking was published in 1998 so most devices manufactured during the last decade support this feature.

willm132 commented 1 year ago

Can anyone help me with this?

willm132 commented 1 year ago

Is there a way to adjust LF to a CRLF when sending emails?

willm132 commented 1 year ago

@dannys42

willm132 commented 8 months ago

This is unusable for me since all emails are getting kicked back for bare line feed issue. Can someone fix this before I release my software? Or is there an alternative to SwiftSMTP that is working?