Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Automail's content has randomly "blank space"

Posted on by Microsoft Employee

Hello, i have a problem here when using auto mail from NAV using SMTP.appendbody

The content from the result mail has random unwanted blank space

automail.png

The result mail above is from the code that literrally appendbody character 'a' until 1005 character without any space, but there's a space in the result.

here's the code :

5482.code.png

Anyone here can help / have the same problem?

*This post is locked for comments

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Automail's content has randomly "blank space"

    did you find a solution? if yes, please share your results.

    if at least one of the answers were helpful, please verify.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automail's content has randomly "blank space"

    Dear Jonathan,

    Thank you very much for your efforts to try find out about this case,

    I will consult with my supervisor first to upgrade the dll or even navision itself to the newer version and see if has the same problem or not..

    I will keep this updated when already upgraded

    Best Regard,

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Automail's content has randomly "blank space"

    in nav 2009 the automation dll microsoft.navision.mail.dll is used for smtp/mailing (cu 400). i thought, that the bug comes from this dll. i ran many tests with the dll shipped with different nav 2009 r2 builds like 33319, etc. using a c# app except the release version 32012 (does not have this build). no result, all is ok.

    so. you could replace the dll in your nav classic directory with version from the setup directory. you could install one of the hotfixes to try with a higher build number. you could also reinstall nav 2009.

    but i would first install nav 2009 r2 build 32012 on a different (test) server with same OS to check, if you get the same error.

    also possible: problems with the used smtp server. so try a different.

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Automail's content has randomly "blank space"

    that can be. i will try to reproduce that case with that build version or a similar.

    there is a good chance, that this bevavior disappears, if you install a higher hotfix.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automail's content has randomly "blank space"

    Dear Jonathan,

    I'm using Microsoft Dynamics Nav 2009 R2

    Version W 1 6.0 R2 (6.00.32012)

    Do you think it is because my version that cause this?

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Automail's content has randomly "blank space"

    can you test with a second installation of nav 2013?

    what is the build version of your nav 2013 and the smtp dll (addins folder, subfolder smtp)?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automail's content has randomly "blank space"

    Hai jonathan,

    Already send it to Outlook, hotmail, and Yahoo. and each of them have the same randomly blank space,

    i've already tried use nbsp; and delete char(' ') before send mail, but that random space still appears and furthermore it can appear in the middle of  

    it's like :

    a a a a a&n bsp;a a a

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automail's content has randomly "blank space"

    Hai Suresh,

    thx for replying, i've already open the code in notepad++ but there's no hidden character or anything like that

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Automail's content has randomly "blank space"

    try to send to an other mail address.

    try a different mail client for receiving the mails. check the mail client settings (line breaks).

    check if there are differences in the result.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automail's content has randomly "blank space"

    Hi jonathan, thanks for replying

    but that won't do cuz it's just my dummy test to send char 'a'

    the real content will have a lot of 'space' that i need, and the randomly blank space will appear to

    so if i use DELCHR, it will remove all the blank space include my needed 'space'

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans