Status: Open
Status: Answered
Status: Closed
Status: Duplicate

Accent marks in the description of an email

0
Posted Mar 05 by Mike Gibson.

I have the following email address  "Mónica Jones" <-removed->

 

The following line of code produces an index outside of array bounds error where that address is set in MailCC or MailTo

 

Mstm.SendEmail(MailTo,MailCC,"",MailSubject,MailBody,"",MailFrom);

 

If I run the code with a email that does not contain an accent mark in the name it works fine. It was my understanding that the description portion should be treated as text since it is enclosed in the "".

Has anyone else seen this?

-–
Note: Some information in this post has been hidden to protect privacy.

4 Answers

0
BEST ANSWER: As chosen by the author.

Hi,

 

to add the user friendly name in your emails to, cc, bcc addresses you would need to write your own implementation of the SendMail activity. In the Metastorm To, CC, BCC fields you can only use the pure email addresses.

 

In the .net framework the MailAddress class has two constructors which allows you to add a friendly name for the email addresses you are using.


0
BEST ANSWER: As chosen by the author.

Metastorm provided the .NET SendMail suggesting to use instead %EMail in V7.  "Friendly names" worked in both %EMail and your .NET SendMail.

 

I don't recall seeing anything in the V9 documentation saying you couldn't / shouldn't have "friendly names" using the built-in V9 mail functions.  Seems like another step backwards from previous technology.

 

Now we have to build our own library since its lost functionality ….


0
BEST ANSWER: As chosen by the author.

Non-ASCII Characters need to be iso-8859-1 encoded and that fails at the moment.

 

If you build you own C# activity as a workaround to send emails it is possible to build something like this:

 

mail.To = new MailAddress("-removed-", "Mónica Jones", Encoding.GetEncoding( "iso-8859-1"));

 

-–
Note: Some information in this post has been hidden to protect privacy.


0
BEST ANSWER: As chosen by the author.

Hi,

 

this has now been ackknowlegded as a defect. The defect number is DEF19836.

 

This should be fixed in the next hotfixes or SRs


 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.

Statistics

Related categories

Your answer

To leave an answer, please sign in.