Author |
|
tuttonetwork Newbie
Joined: 18 September 2006
Online Status: Offline Posts: 1
|
Posted: 18 September 2006 at 9:56am | IP Logged
|
|
|
How can I customize the emails that webmail sends? ... Messages from administrators on portal where is installed on mailbee webmail must have this feature.
I've tried to modify function_new_inc.asp at rows 472 (...) in that way:
Msg.BodyText = TmpHead & message & TmpFoot
where TmpMsg are strings that contains html code to create a header and a footer html code page (including table structure).
On a previous solution using CDO.Message from IIS 6.0 that cause no problem, but now the email was chuncked without html code added. In fact, the email received contain only the content of message variable (the text inserted by html editor of webmail).
There's a solution for that very hard problem?
Thanks in advance
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 September 2006 at 10:38am | IP Logged
|
|
|
You are on the right way. You may try the following code:
Code:
If switch_plain_html = 1 Then
Msg.BodyText = "<b>header</b>" & message & "<i>footer</i>"
Msg.BodyFormat = 1
Msg.MakeAltBody
Else
Msg.BodyText = "<b>header</b>" & message & "<i>footer</i>"
Msg.BodyFormat = 0
End If |
|
|
If this code works as expected, you may replace "<b>header</b>", "<i>footer</i>" with TmpHead, TmpFoot variables.
We tested the code above, it works fine.
Best regards,
Andrew
|
Back to Top |
|
|