Skip to main content
New Participant
March 22, 2013
Question

about the charset in <cfmailparam>

  • March 22, 2013
  • 1 reply
  • 843 views

Hi Guys,

i have to add some <cfmailparam> in my mail like below:

<cfmail

    to="#variables.mailto#"

    from="#FORM.email#"

    subject="#FORM.subject#"

    type="text/plain">



......

<cfmailparam name = "X-IS-CUSTFIRSTNAME" value = "#FORM.first_name#">

</cfmail>

the content of FORM.first_name is in russian so i get this parameter in IBM Notes as "???"

i have tried to add the charset in the <cfmail> but it takes no effect.

is there a way to deal with this problem. i tried other character like chinese and janpanese both showing as "???"

but the same content which be displayed in the mail content is correct.

any information is appreciate.

Regards,

Julian

This topic has been closed for replies.

1 reply

Participating Frequently
March 22, 2013

You should change encoding of your file to UTF-8. You can do this process when you Save As file in Notepad.

I have tested russian, chinese and japanese language using charset="UTF8" . I got the mail in same format.

Below i have paste the code which i am using.

<cfmail server="#emailserver#"

    username="#emailusername#"

    password="#emailpassword#"

    port="#emailport#"

    useSSL="true"

    to="xxxx@xxxx.com"

    from="#emailfrom#"

    subject="test mail" type="html"  charset="UTF8">

    привет

    你好

こんにちは

    </cfmail>

I hope it will help for you.

thanks

New Participant
March 22, 2013

Hi,

for this part i don't have any problem too, but for the value in the <cfmailparam>.

thanks for reply.

Participating Frequently
March 25, 2013

hi,

any ideas about this <cfmailparam> tag, how could i deal with the language coding problem in this tag?

regards,


Hi,

I have no idea about language coding problem.

But you can prefer below links which explain <cfmailparam> tag.

http://www.paulsilver.co.uk/code/coldfusion_mail_priority_high.php

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_m-o_02.html

thanks