Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: new message - pre-populate email text? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MWaldorf
Newbie
Newbie


Joined: 31 March 2017
Online Status: Offline
Posts: 9
Posted: 31 March 2017 at 3:18pm | IP Logged Quote MWaldorf

When integrating AfterLogic in a website, is it possible to pre-populate email text? I.e., click from a link elsewhere in the site and open the AfterLogic new message page in a frame with the subject and body filled in?

Back to Top View MWaldorf's Profile Search for other posts by MWaldorf
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 April 2017 at 2:51am | IP Logged Quote Igor

Yes that's possible, you would need to use this kind of URL structure:

https://webmail.yourdomain.com/#single-compose/to/mailto:someone@example.com?subject=This%20is%20the%20subject&cc=someoneelse@example.com&body=This%20is%20the%20body

Keep in mind that all the data used in URLs need to be URL-encoded.

And of course, it will only work if user is logged into WebMail; if that's not the case, you need to log them in, first.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
MWaldorf
Newbie
Newbie


Joined: 31 March 2017
Online Status: Offline
Posts: 9
Posted: 03 April 2017 at 12:20pm | IP Logged Quote MWaldorf

Igor,
I've tried this and it's not working - I'm using the .Net version if that makes a difference. As I'm evaluating this on my local machine, here's the url I'm using:

http://localhost/webmail/#single-compose/to/mailto:someone@example.com?subject=This%20is%20the%20subject&cc=someoneelse@example.com&body=This%20is%20the%20body

It punts me to the login screen and then to the default webmail.aspx view. Am I missing something obvious?

Thanks, Mel
Back to Top View MWaldorf's Profile Search for other posts by MWaldorf
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 April 2017 at 12:27am | IP Logged Quote Igor

This approach was implemented for PHP version only.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
MWaldorf
Newbie
Newbie


Joined: 31 March 2017
Online Status: Offline
Posts: 9
Posted: 04 April 2017 at 3:48pm | IP Logged Quote MWaldorf

Thanks Igor - I switched to the php version and it's working.
Back to Top View MWaldorf's Profile Search for other posts by MWaldorf
 

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