Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a web site. where fckeditor is use to save text. my problem is the formatting tags that make formatting in fckeditor. when i use fckeditor for the content for send mail. in mail the tag is displayed as it is. like i write "This is a test mail" in fckeditor and send as mail to myemail id. in email i found this mail text <p> This is a test mail </p>. is there any way that when i am sending the mail these formatting tag not appear in the mail content when i see this mail in mailid.

Thanks


Regards

Rohit Sharma
Posted
Updated 26-Sep-10 19:44pm
Comments
Richard MacCutchan 26-Sep-10 15:17pm    
I don't see any formatting in either message; are you sure there is some?
rohit_189 27-Sep-10 1:43am    
actually i write the formatting tag is "

" for line change but the text appear with line break if you see there is a line gap between "is there" and this is test mail that is the formatting tag which is remove by the editor. but in my case the tag is shown as plain text..

I guess you are sending emails as plain text messages. This means that html tags are shown instead of interpreted at the client.

Try change:
Content-Type: text/plain

To:
Content-Type: text/html

Good luck!
 
Share this answer
 
v2
Comments
rohit_189 27-Sep-10 2:17am    
I done this in the master page as and on the page from where i send mail i do this <%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="sendemail.aspx.cs" Inherits="sendemail" Title="Astrotips : Admin Control Panel : Send Email" ContentType ="text/html" %>
rohit_189 27-Sep-10 2:18am    
<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="sendemail.aspx.cs" Inherits="sendemail" Title="Astrotips : Admin Control Panel : Send Email" ContentType ="text/html" %>
Use multi line TextBox instead of FckEditor
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900