adrianv Posted April 25, 2006 Share Posted April 25, 2006 I'm adding this two lines to my CDOSYS object code in order to send emails in hebrew: msg.BodyPart.Charset = "windows-1255"msg.HTMLBodyPart.charset = "Windows-1255" the thing is that i get this error: The requested body part was not found in this message.in line:msg.HTMLBodyPart.charset = "Windows-1255" when i drop this line the email is sent , subject is in hebrew, body in gibrish...any ideas? Link to comment Share on other sites More sharing options...
adrianv Posted April 25, 2006 Author Share Posted April 25, 2006 I moved the line: msg.HTMLBodyPart.charset = "Windows-1255"to after the line msg.HTMLBody = strEmailBodyMessageit resolved the error message but i still get gibrish in the body messageany thoughts? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 25, 2006 Share Posted April 25, 2006 In your first example you have "Charset" and "charset". Try changing the capitalization. Link to comment Share on other sites More sharing options...
adrianv Posted April 26, 2006 Author Share Posted April 26, 2006 i have changed the "charset" to "Charset" , still no go.... In your first example you have "Charset" and "charset". Try changing the capitalization.<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Matar Posted April 26, 2006 Share Posted April 26, 2006 hi i think the charest of english language is 1256 not 1255 try 1256 Link to comment Share on other sites More sharing options...
adrianv Posted April 26, 2006 Author Share Posted April 26, 2006 hi i think the charest of english language is 1256 not 1255 try 1256 <{POST_SNAPBACK}> ----->I'm adding this two lines to my CDOSYS object code in order to send emails in hebrew: Link to comment Share on other sites More sharing options...
justsomeguy Posted April 26, 2006 Share Posted April 26, 2006 Try changing BodyPart to TextBodyPart, so that you have TextBodyPart and HTMLBodyPart. (ref) Link to comment Share on other sites More sharing options...
adrianv Posted April 30, 2006 Author Share Posted April 30, 2006 ok, found the problem, i sometimes used HTML formated emails and sometimes plain text formate emails.the line: msg.HTMLBodyPart.charset = "Windows-1255"must be writen only when using HTML formated emails.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now