Fix sending non-ascii emails
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31346
Printed Date: 28 March 2026 at 9:01am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Fix sending non-ascii emails
Posted By: rune
Subject: Fix sending non-ascii emails
Date 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
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 16 March 2016 at 8:41am
Thank you for this will make sure it is added to the next release.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: rune
Date Posted: 08 August 2016 at 8:51pm
In the new version, this EncodeHeader has been added to JMail4.
I suggested it for AspEmail.
|
Posted By: WebWiz-Bruce
Date Posted: 09 August 2016 at 11:41am
Thanks rune, yes you are right this has been added to the latest release.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
|