mailMsg.BodyFormat
-
Hi Experts, In my applicaition User will be receiving mail through the applicaiton to Outlook and Lotus Notes. Now the problem is the applications sents the mail with the formatted text to the plain mail or to the Lotus Notes. Now my requirement is if it is sending to the Outlook then it must be a HTML and if it is sending to the Lotus Notes then it must be a plain text. Any idea is much appreciated.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Hi Experts, In my applicaition User will be receiving mail through the applicaiton to Outlook and Lotus Notes. Now the problem is the applications sents the mail with the formatted text to the plain mail or to the Lotus Notes. Now my requirement is if it is sending to the Outlook then it must be a HTML and if it is sending to the Lotus Notes then it must be a plain text. Any idea is much appreciated.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
And what if the Outlook user has set it to read email in plain text format? You cannot control how users will read their email, nor even determine what method they use to do so. You need to send your emails in multi-part form - an HTML part and a plain text part - and let the email client determine which to use. See here[^] for guidance.
-
And what if the Outlook user has set it to read email in plain text format? You cannot control how users will read their email, nor even determine what method they use to do so. You need to send your emails in multi-part form - an HTML part and a plain text part - and let the email client determine which to use. See here[^] for guidance.
Thanks for you help! I have used the link which is provided by you and sent a mail to both Outlook and Lotus Notes, both are same mail with no chages. //if Lotus Notes AlternateView plainView = AlternateView.CreateAlternateViewFromString("This is my plain text content, viewable by those clients that don't support html", null, "text/plain"); //if Outlook AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<b>this is bold text, and viewable by those mail clients that support html</b>", null, "text/html"); This is not happening. I am getting only the HTML message on both the cases
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Thanks for you help! I have used the link which is provided by you and sent a mail to both Outlook and Lotus Notes, both are same mail with no chages. //if Lotus Notes AlternateView plainView = AlternateView.CreateAlternateViewFromString("This is my plain text content, viewable by those clients that don't support html", null, "text/plain"); //if Outlook AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<b>this is bold text, and viewable by those mail clients that support html</b>", null, "text/html"); This is not happening. I am getting only the HTML message on both the cases
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
I am not sure exactly what you are doing, but you need to send both "views" (HTML and plain text) as part of the same email - if you have done that and you are seeing the HTML view in Lotus Notes then I can only assume that is because that instance of Lotus Notes is set up to read HTML emails. You cannot force it to read the plain text view in your code.