Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Fix sending non-ascii emails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Fix sending non-ascii emails

 Post Reply Post Reply
Author
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Topic: Fix sending non-ascii emails
    Posted: 15 March 2016 at 9:59pm
When sending with AspEmail, the subject is not encoded.  Most email clients still handle it fine, but e.g. Thunderbird won't show the non-ascii chars.

The fix is easy:

--- functions_send_mail.asp     2015-01-23 07:30:28.000000000 +0100
+++ /home/rune/Downloads/functions_send_mail.asp        2016-03-15 22:47:34.414789751 +0100
@@ -445,7 +445,7 @@
                                .Charset = strPageEncoding
 
                                'The subject of the e-mail
-                               .Subject = strSubject
+                               .Subject = .EncodeHeader(strSubject, strPageEncoding)
 
                                'Set the e-mail body format (BodyHTML=HTML Body=Text)
                                If blnHTML = True Then
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2016 at 8:41am
Thank you for this will make sure it is added to the next release.
Back to Top
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2016 at 8:51pm
In the new version, this EncodeHeader has been added to JMail4.

I suggested it for AspEmail.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2016 at 11:41am
Thanks rune, yes you are right this has been added to the latest release.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.