water

_InetSmtpMail and special characters (Umlaut)

7 posts in this topic

I use _InetSmtpMail to send a message incuding some special characters (german "umlaut" like öäü) in the body from a Windows 2008 R2 SP1 (english) server to a Windows 7 (german) PC running Outlook 2010.

Unfortunately all special characters are displayed as "?" (question mark).

When I run MsgBox with Umlauts they are displayed correctly on the server. So I think it looks like a problem with _INetSmtpMail, Exchange, Outlook.

Is there anything I can do about it?

Thanks in advance!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites



Purely out of curiosity, to narrow the issue, what happens when you try the same thing from the Win7 machine?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Unfortunately I can't test because our security policy doesn't allow to send mails from my Windows 7 machine (only allowed program is Outlook).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
On 20/4/2012 at 9:15 PM, water said:

Unfortunately I can't test because our security policy doesn't allow to send mails from my Windows 7 machine (only allowed program is Outlook).

Hi all,

I have the same problem, I can see the symbol "€", always I get "?".

I have tried to use the character € and chr(128) but it's always the same result.

I use windows 10 and gmail account.

Is there someone who has got the solution?

 

Best regards.

Share this post


Link to post
Share on other sites
On 20/4/2012 at 9:31 AM, water said:

I use _InetSmtpMail to send a message incuding some special characters (german "umlaut" like öäü) in the body from a Windows 2008 R2 SP1 (english) server to a Windows 7 (german) PC running Outlook 2010.

Unfortunately all special characters are displayed as "?" (question mark).

When I run MsgBox with Umlauts they are displayed correctly on the server. So I think it looks like a problem with _INetSmtpMail, Exchange, Outlook.

 

Is there anything I can do about it?

Thanks in advance!

Hi all,

I have the same problem, I can see the symbol "€", always I get "?".

I have tried to use the character € and chr(128) but it's always the same result.

I use windows 10 and gmail account.

Is there someone who has got the solution?

 

Best regards.

Share this post


Link to post
Share on other sites

Converting the text (and/or setting the mail program) to UTF8 should cure the issue.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Hi All,

 I have solved the problem:

Just add before to send the mail:

$objEmail.BodyPart.Charset = "iso-8859-15"   ; You need to add this line if you want to use the € symbol
$objEmail.Fields.Update
;Sent the Message
$objEmail.Send

 

I used the funtion  _INetSmtpMailCom mentioned here:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now