web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Problems with sending SMTP messages with local chars

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

Just to proactively inform you about an issue that is currently reported by several of our Dynamics NAV / Dynamics 365 Business Central customers. At this time of writing, four Dynamics NAV partners already reached to Microsoft support (or CSS) related to an issue that primarily runs in countries that do use special chars like the Danish ones, Slovenian ones and maybe the German ones as well. 

Easy reproduction scenario as a proof of concept:

Within Dynamics 365 BC or Dynamics NAV (any release that does have the SMTP Server component included):
1. Configure SMTP to run against an Office 365 tenant.
2. Create a new sales order and send the order confirmation via mail
3. In the Subject line replace Cronus company name with Crønus
4. Ensure Edit in Outlook is unchecked.

Result:
Mail is sent with incorrect subject line
Recipient does receive an email with the following subject line:
CRØNUS
This is not correct.
For the sake of testing the same problem occurs within the attachment file name. As you cannot change the attachment name easily in the “mail pop-up window” you can change the “No. Series” for the sales order to add the ø sign.
E.g. adjust number series:
Customer No.Series – S-ORD and add a ø in the numbers.
 
1. Create a new sales order and send it again via SMTP  mail.

Result:
You will see Sales Order 10Ø0001.pdf

This should have been:
Instead of Sales Order 10 ø 0001.pdf 

We identified the issue to be happening as well outside Dynamics NAV. As a proof of concept:
https://stackoverflow.microsoft.com/questions/126122/encoding-issues-with-smtpclient-and-smtp-office365-com


There is currently no solution yet as we rely on Office 365 development. As a workaround, you need to make sure that three or more of these special chars are included in the subject line. Then the scenario does work correctly. 

E.g.:
Change subject line to:
Bogførte salgsfaktura: Crønus - Order 10ø0001

Then the recipient will receive a mail with a Posted Sales Invoice in PDF format with a correctly encoded subject line.

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans