DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN v.9.10.02 (0) sending emails in txt format not HTML.

Sort:
You are not authorized to post a reply.





New Around Here





    We have a couple of websites setup with DNN and are using online forms to send emails to our paperless office product. It appears that the emails being sent from the new DNN v.9.10.02 (0) platform are being sent as a txt file. Our development site is running on version v.9.10.01 (0) and the forms are sent correctly and appear correctly in the paperless office product. 

    Production screenshot notice filename - body.txt

    Development site screenshot notice filename - body.html

    The only diffence between the two sites is the DNN versions. 
    I'm looking for a solution for our production site to make the emails be sent in HTML format not TXT format. 

    Thanks






    Veteran Member





      please check your web.config file for seciton DNN > Mail.
      Which default provider are you using in your DNN 9.10.x installation?





      New Around Here





        Hope this is the info you asked for. 

        Production email info from web.config not working site. 

            <mail defaultProvider="CoreMailProvider">
              <providers>
                <clear />
                <add name="CoreMailProvider" type="DotNetNuke.Services.Mail.CoreMailProvider, DotNetNuke" hideCoreSettings="False" />
                <add name="MailKitMailProvider" type="DotNetNuke.Services.Mail.MailKitMailProvider, DotNetNuke" hideCoreSettings="False" />
              </providers>
            </mail>

        Develpment site that works web.config 

            <mail defaultProvider="CoreMailProvider">
              <providers>
                <clear />
                <add name="CoreMailProvider" type="DotNetNuke.Services.Mail.CoreMailProvider, DotNetNuke" hideCoreSettings="False" />
                <add name="MailKitMailProvider" type="DotNetNuke.Services.Mail.MailKitMailProvider, DotNetNuke" hideCoreSettings="False" />
              </providers>
            </mail>






        New Around Here





          I noticed that the headers on the emails we received are different I am adding the information here. See the Content-Type: in the working site identifies it as text/html. And on the site that doesn't work it doesn't have a Content-Type section or Content-Transfer-Encoding. 
           

          Email header info from develpment working

          MIME-Version: 1.0
          Content-Type: text/html; charset=utf-8
          Content-Transfer-Encoding: base64
          X-Virus-Status: Scanned by VirusSMART (c)
          X-PolicySMART: 15625892, 19897442, 25800812, 25818542
          X-SPAM-Status: NO, ALLOW [email protected]:CAU
          Message-ID: <[email protected]>
          Return-Path: [email protected]
          X-MS-Exchange-Organization-Network-Message-Id: 86e9e170-2b60-4d7c-95e2-08d9ed857dd7
          X-C2ProcessedOrg: 19a0f48d-a0b0-410f-ba4f-19af35d3d3d3
          X-MS-Exchange-Organization-AuthSource: ****.****
          X-MS-Exchange-Organization-AuthAs: Anonymous
          X-MS-Exchange-Transport-EndToEndLatency: 00:00:00.2215529
          X-MS-Exchange-Processed-By-BccFoldering: 15.01.2242.012

          Email header info from production not working

          MIME-Version: 1.0
          Content-Type: multipart/alternative; boundary=--boundary_47_af9e04a6-38f8-43e9-90b2-0d83ed097bd3
                                           
          X-Virus-Status: Scanned by VirusSMART (c)
          X-PolicySMART: 15625892, 19897442, 25800812, 25818542
          X-SPAM-Status: NO, ALLOW [email protected]:CAU
          Message-ID: <[email protected]>
          Return-Path: [email protected]
          X-MS-Exchange-Organization-Network-Message-Id: b2b2baf6-e372-4dad-7f16-08d9ed838a86
                                                                
          X-MS-Exchange-Organization-AuthSource: ***.*****
          X-MS-Exchange-Organization-AuthAs: Anonymous






          Veteran Member





            the DNN mail component has been improved by introducing a new provider model.
            There might have been underlying changes.
            Another option might be a different ail template - DNN used to check the content of the mail for presence of HTML tag, when deciding to send as mime instead of plain text.





            New Around Here





              Where can I get information on changing the mail template?

               

               






              Veteran Member





                you may edit mail templates in Site Settings > Languages, using the last, not interpretable icon (asterisk+A).
                Switch to Site or Host mode in top right corner before editing.
                email templates are contained in Global > GlobalResources file (select from tree on the left)
                HTH
                You are not authorized to post a reply.

                These Forums are dedicated to the discussion of DNN Platform.

                For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                5. No Flaming or Trolling.
                6. No Profanity, Racism, or Prejudice.
                7. Site Moderators have the final word on approving / removing a thread or post or comment.
                8. English language posting only, please.

                Would you like to help us?

                Awesome! Simply post in the forums using the link below and we'll get you started.

                Get Involved