Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Future of email sending in FoxPro
Message
From
08/09/2022 11:12:02
 
 
To
07/09/2022 04:18:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01682615
Message ID:
01684947
Views:
66
Here's an example using Chilkat: https://www.example-code.com/foxpro/outlook_send_email.asp

>Hi!
>
>>The class uses CDO 2000 which has nothing to do (besides been named similarly) with com based CDO 1.2.1
>
>How to use your class with Office 365 e-mail server?
>
>Attempt 1:
>
>Tried to use 587 port but it does not work. According to https://stackoverflow.com/questions/45009481/error-sending-email-using-cdo-on-port-587-tls 587 port is not supported and 465 port is not suppored by Office 365.
>
>Attempt 2:
>
>I tried to use 25 port eposti server smtp.office365.com according to
>
>https://docs.microsoft.com/et-ee/Exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365
>
>but on some computers office mail server throws error "bare line feed not supported". I changed your class to encode attacments in base 64:
>
>
>result = .AddAttachment(lcAttachment)
>result .ContentTransferEncoding = "base64"
>
>
>but this error still occurs.
>I saved message to eml file and verified that it does not contain bare line feeds.
>
>Error details:
>
>Your message contains invalid characters (bare line feed characters) which the email servers at geopipes.ee don't support.
>
>Bare line feeds unsupported
>
>How to Fix It
>
>It appears that your email program added invalid characters (bare line feed characters) into your message when you sent it. Try using a different email program to send your message. If the problem continues send this non-delivery report (NDR) message to your email admin for assistance.
>
>More Info for Email Admins
>
>Status code: 550 5.6.11
>
>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.
>
>Another option is for the email admin at the recipient's domain to upgrade their email servers to servers that support the SMTP protocol BDAT command. Most modern email servers support BDAT; however, some free and older email servers don't support it.
>
>For more information see Fix email delivery issues for error code 5.6.11 in Office 365.
>
>Posted also in https://stackoverflow.com/questions/73632179/how-to-use-windows-cdo-or-something-other-to-send-emails-with-office-365-e-mail
Previous
Reply
Map
View

Click here to load this message in the networking platform