Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Modifying ASP.net webmail lite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 11 December 2006 at 9:40am | IP Logged Quote treadsafely

Hi,

I have installed the asp.net 2.0 webmail lite version for testing, and am happy with it so far. I use the non-ajax version (the normal one)

However, I want to make two changes - how would I do these?

1 - Removing or hiding the "From" field when writing an email so the user has no option to change it, and making this default to the user's email address when sent

2 - When the user broses for a file to attach, it attaches automatically without having to click the button "Attach".

Many thanks.

Mike
Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 12 December 2006 at 6:32am | IP Logged Quote Andrew

To remove the "From" field, please comment the following lines:

file message_form.ascx lines 14-19:
Code:

<tr>
    <td class="wm_new_message_data">From: </td>
    <td class="wm_message_value" colspan="2">
        <input type="text" size="93" name="from" value="<% Response.Write(HTMLEncode(strFrom)); %>" class="wm_input">
    </td>
</tr>


replace with:
Code:

<!--tr>
    <td class="wm_new_message_data">From: </td>
    <td class="wm_message_value" colspan="2">
        <input type="text" size="93" name="from" value="<% Response.Write(HTMLEncode(strFrom)); %>" class="wm_input">
    </td>
</tr-->


For uploading attachments automatically:

file message_form.ascx lines 53-54:
Code:

<input id="fileupload" type="file" runat="server" name="fileupload" class="wm_file" />  
<input type="button" name="button2" value="Attach" onClick="CheckNewForm(2)" class="wm_button" />


replace with:
Code:

<input id="fileupload" type="file" runat="server" name="fileupload" onpropertychange="CheckNewForm(2)"  class="wm_file" />  
<!--input type="button" name="button2" value="Attach" onClick="CheckNewForm(2)" class="wm_button" /-->


Now, you should recompile the project.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 12 December 2006 at 8:24am | IP Logged Quote treadsafely

Hi,

Thanks for the reply.

When we make the changes to comment out the table row to remove the from field, we get the following error message:

"No sender specified for the mail message."

Also, what do you mean by "recompile the project"?

Many thanks
Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 12 December 2006 at 9:30am | IP Logged Quote Andrew

We rechecked this in our WebMail Lite installation, messages are sent fine. Looks like you should recompile the project. I mean MailBee WebMail Lite .NET is shipped as MS VS 2003 project, and you should open the project in VS 2003 or 2005, make the changes and compile (build) it. We've sent you the compiled WebMail.dll via email.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 13 December 2006 at 5:47am | IP Logged Quote treadsafely

Hi Andrew,

Thanks for the reply.

I used the dll file you sent me, and now I get a compilation error:



Server Error in '/' Application.
------------------------------------------------------------ --------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'startError' does not exist in the class or namespace 'ASP.default_aspx'

Source Error:



Line 8:      <link rel="stylesheet" href="skins/<% Response.Write(Application.Contents["DefaultSkin">.ToString( )); %>/styles.css" type="text/css">
Line 9:      <script language="JavaScript" type="text/javascript">
Line 10:            var start_error = '<% Response.Write(startError); %>';
Line 11:            var ajax = <% if (Application.Contents["AllowAjax">.ToString() == "1")
Line 12:            { Response.Write("true"); }


Source File: C:\Home\w\e\webmail\www\Default.aspx     Line: 10



Many thanks,
Mike
Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 13 December 2006 at 6:36am | IP Logged Quote Andrew

Please download full version of MailBee WebMail Lite .NET which contains the fixes you need at:
http://afterlogic.com/files/instant-Q1923E/webmail_lite_net. zip

And replace all files in the web folder of your current WebMail Lite .NET installation with new ones. Please let us know how this works for you.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 13 December 2006 at 8:24am | IP Logged Quote treadsafely

Hi Andrew,

Many thanks for your prompt reply.

I copied over all your files in the zip file and the webmail now has the same problem as the first one - when I try and send a message, it says:


Error(s) detected
No sender specified for the mail message.

Do we need to restart IIS or anything similar? Seems strange that we do not get the same results as you with the same files.

Kind Regards,
Mike
Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 13 December 2006 at 10:59am | IP Logged Quote Andrew

We couldn't reproduce this problem in our installation of the WebMail version we provided you with. Could you please provide us with URL pointing to your WebMail Lite .NET installation and a test account on your mail server? Thus, we would be able to log into your WebMail installation, reproduce and investigate the issue. You can send this info to support@afterlogic.com.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 14 December 2006 at 3:37am | IP Logged Quote treadsafely

I've sent you an email with your account details to our webmail lite.

Everything is uploaded from the zip file you sent, with the exception of the skin which I modified with different colours/graphics.

Kind Regards,
Mike
Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 14 December 2006 at 4:13am | IP Logged Quote Andrew

Thank you for the test account you provided. We've reproduced the issue and found it appears only if "Hide Email Field" mode is enabled in WebMail Administration Console / Login Settings.

We've fixed this. Please download the updated version at:
http://afterlogic.com/files/instant-Q1923E/webmail_lite_net. zip

Please let us know how it works for you.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
treadsafely
Newbie
Newbie


Joined: 11 December 2006
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 14 December 2006 at 7:19am | IP Logged Quote treadsafely

Thanks Andrew, that's great - it works!

When does the ASP.net webmail pro 4 come out?
Is there a ASP.net webmail pro 3 version available now?
Is it asp.net 2.0 or 1.1?

I understand that there is a 30 day trial for the .NET objects - I would like to buy the webmail pro in asp.net before our trial runs out.

Please advise.

Many thanks,
Mike

Back to Top View treadsafely's Profile Search for other posts by treadsafely
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 14 December 2006 at 8:19am | IP Logged Quote Andrew

MailBee WebMail Pro .NET currently is in development and will be released in a few months. Although the release date isn't assigned yet, I think it'll be in Q1 2007.

There is no .NET version of WebMail Pro v3.

MailBee WebMail Pro .NET will be ASP.NET 1.1 and 2.0 compatible.

You can purchase license for MailBee.NET Objects now, and you'll be able to purchase WebMail Pro .NET just for the price difference between these two products.


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