Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Compose window via Javascript or PHP Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smalldeath
Newbie
Newbie
Avatar

Joined: 02 April 2016
Location: Mexico
Online Status: Offline
Posts: 3
Posted: 02 April 2016 at 1:43am | IP Logged Quote smalldeath


Hi!

Is there a way to create for example, a direct link to a new compose window with preloaded destination and/or subject?

I'm trying to add "special" links to my webapp, and I want to create direct-link, passed trough GET vars, ie: domain.com/emailafterlogic/compose?to=hello@world.com&subject=Info%20about%20service

I haven't problems with E-mail login integration.

I hope somebody can help me, please

Thanks
Back to Top View smalldeath's Profile Search for other posts by smalldeath
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 04 April 2016 at 2:46am | IP Logged Quote Alex

Hi,

You can compose the desirable link in the following way:

WEBMAIL_URL/#single-compose/to/mailto:test-to@test.com?subject=test-subject&cc=test-cc@test.com&body=test-body

Everything beyond 'mailto' in this link must be URL-encoded (this also concerns all the special characters like ':','?','&'), so the resulting link will be like the following one:

WEBMAIL_URL/#single-compose/to/mailto%3Atest-to%40test.com%3Fsubject%3Dtest-subject%26cc%3Dtest-cc%40test.com%26body%3Dtest-body

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
smalldeath
Newbie
Newbie
Avatar

Joined: 02 April 2016
Location: Mexico
Online Status: Offline
Posts: 3
Posted: 05 April 2016 at 8:51pm | IP Logged Quote smalldeath

It works! thanks :)
Alex wrote:
Hi,

You can compose the desirable link in the following way:

WEBMAIL_URL/#single-compose/to/mailto:test-to@test.com?subject=test-subject&cc=test-cc@test.com&body=test-body

Everything beyond 'mailto' in this link must be URL-encoded (this also concerns all the special characters like ':','?','&'), so the resulting link will be like the following one:

WEBMAIL_URL/#single-compose/to/mailto%3Atest-to%40test.com%3Fsubject%3Dtest-subject%26cc%3Dtest-cc%40test.com%26body%3Dtest-body

Regards,
Alex
Back to Top View smalldeath's Profile Search for other posts by smalldeath
 

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