Author |
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 17 February 2009 at 9:33pm | IP Logged
|
|
|
I am running Windows server 2008 and installed AfterLogic XMail Server (ASP.NET 3.5). I am attempting to integrate it to my site and followed the instructions on the FAQ page. What this gave me was essentially the same page as you produced just bypassing the login screen. I was wondering if you had some instructions or modifications that I could put in that I could keep my masterpage and have all your content displayed in one of my asp:contentholders. I dont want to change anything with your program just add it to mine.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 February 2009 at 4:36am | IP Logged
|
|
|
The recommended way to achieve this is to place WebMail Pro into IFRAME container located on your application's webpage. Any other way would require significant code modifications due to complicated layout of WebMail Pro interface.
Regards,
Igor
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 5:25am | IP Logged
|
|
|
I dont understand, So create a folder called IFRAME and place the WebMail folder in it?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 February 2009 at 5:56am | IP Logged
|
|
|
No, this means placing WebMail Pro inside an existing webpage using IFRAME HTML tag. Once this is done, WebMail Pro interface will look like part of your web application. Please note that WebMail Pro integration scripts should reside in the same IFRAME container.
Regards,
Igor
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 6:20am | IP Logged
|
|
|
I am sorry I think I need to back up here. I placed the IFRAME in my page with the source for integration inside the IFRAME on a page load event. It is displaying the page exactly as it was before (i.e. not in my masterpage) I think that this is due to the fact that right now my site is on port 81 and webmail is on port 80. Do I need to reinstall it inside my site or something. I downloaded and installed for windows via the exe. So when the integration ask for WebMail root I place the local ip in there but I place port 80 to get to the root, thus it takes me off my port 81 site.
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 6:39am | IP Logged
|
|
|
Yeah that did it, Thanks a lot, sorry I am a little slow ;)
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 7:16am | IP Logged
|
|
|
OK what its doing now is when I have to sign in it works perfect, the login screen is integrated into my site. However when I sign in or when my script signs in for me, it takes me out of my site and into a full version of yours, is there a way to keep it in my site?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 February 2009 at 7:30am | IP Logged
|
|
|
Make sure the script which uses integration API is running in the same IFRAME you put WebMail Pro into, and not in the webpage which hosts the IFRAME.
Regards,
Igor.
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 7:42am | IP Logged
|
|
|
wait I am confused, I put IFRAME into my Email.aspx, so basically I have:
src="WebMail"
integration script
In the main contentplace holder of my email page, thats it.
What am I missing
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 18 February 2009 at 1:26pm | IP Logged
|
|
|
if I take out the integration script from my IFRAME (Below), it works great. I just need to figure out a way so that I can add the parameter and have the site act the same.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim integr As Integration = New Integration("http://192.168.1.101/AfterLogic XMail Server Pro/WEBMAIL/WEB/")
Try
integr.UserLoginByEmail("xxx", "xxx", "xxx", WMStartPage.Mailbox)
Catch ex As WebMailException
Response.Write(ex.Message)
End Try
End Sub
</script>
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 February 2009 at 3:52am | IP Logged
|
|
|
In order to integrate WebMail Pro in your web application, the web page of your application should hold an IFRAME container:
Code:
<iframe src="your WebMail Pro integration script URL"></iframe> |
|
|
The code you provided should be placed inside the script which resides in IFRAME.
Regards,
Igor
|
Back to Top |
|
|
cartaysm Groupie
Joined: 17 February 2009
Online Status: Offline Posts: 53
|
Posted: 19 February 2009 at 3:03pm | IP Logged
|
|
|
Thanks got it working finally
|
Back to Top |
|
|