Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Customize email Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tuttonetwork
Newbie
Newbie


Joined: 18 September 2006
Online Status: Offline
Posts: 1
Posted: 18 September 2006 at 9:56am | IP Logged Quote tuttonetwork

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 View tuttonetwork's Profile Search for other posts by tuttonetwork
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 September 2006 at 10:38am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide