Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBSendmail.dll - Changing the Charset

Status
Not open for further replies.

StuH

Programmer
Mar 25, 2001
53
0
0
AU
Hi all,

I can do amazing things with VBSendMail, but in all the instructions for it, I can't see how to change the charset of an email subject and body.

I'm localizing an app to Japanese (Shift-JIS - charset=128) and the app is coming along fine, but it needs to email in Japanese via vbSendMail, and the email is being received in Mojibake.

I've searched everywhere for the answer and I'm stuck. Any advice would be most appreciated. Thanks.
 
Thanks Glasgow. I did actually try contacting him, but no reply to date. But I'm happy say say I found the solution. It requires modifying the CLS module of the DLL itself. These lines required a change:

Private Const Q_CODE_HDR As String = "=?iso-2022-jp?Q?"
Private Const B_CODE_HDR As String = "=?iso-2022-jp?B?"
Private Const CODE_END As String = "?="
Private Const CHAR_SET As String = "iso-2022-jp"

Then when I compiled, the new vbSendMail.dll did the job properly!

Problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top