Last post Jun 29, 2018 07:28 PM by Sumitz89
Jun 28, 2018 05:36 AM|Sumitz89|LINK
I have a web form with 3 fields - Email, Internal OOF, External OOF. CS code runs fine to stamp OOF on the mailbox. Issue is if i input OOF message as below in webform,
I am OOF
The OOF reply stamped is "HI I Am OOF Thanks!". It skips the enter, how to resolve this ? fields in webform are all textbox, do i have to change anything there or in the code ? An HTML output will work as OOF reply will convert it into user readable/HTML
format for email.
Jun 28, 2018 05:47 AM|vahid bakkhi|LINK
the only thing that will create a break is a <br /> tag. So you need to find and replace whatever is saved in the database:
Label1.Text = someDatabaseText.Replace("\r\n", "<br />");
Jun 28, 2018 06:55 AM|Sumitz89|LINK
Thanks for the insight, let me give it a try.
Jun 28, 2018 08:21 AM|mudassarkhan|LINK
You can use a MultiLine TextBox.
<asp:TextBox ID = "txtMessage" runat = "server" ReadOnly = "true" TextMode = "MultiLine"/>
Jun 28, 2018 07:02 PM|Sumitz89|LINK
Readonly will not allow me to enter OOF reply.
Thank you so much vahid, it worked.
Jun 28, 2018 07:29 PM|mudassarkhan|LINK
OOF Reply means?
Jun 29, 2018 07:28 PM|Sumitz89|LINK
Out of office reply.