Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: rgtech on June 21, 2012, 11:26:30 AM

Title: Windows default mail program
Post by: rgtech on June 21, 2012, 11:26:30 AM
Does anyone know how to get roundcubes to be set to the windows default mail program. We recently switched over to roundcube on our synology server. While testing I noticed that when we try to use 'mail to' options in programs or web page links we can't get roundcube to come up since it is not our windows default mailer. Most of our computers are running win XP. I did find that gmaildefaultmaker is a program that can use major webmailers (gmail, yahoo, aol, hotmail...) as default mailer. If there isn't a program is there a way to manaully set roundcube as the default mailer?
Thanks, Ron
Title: Re: Windows default mail program
Post by: SKaero on June 21, 2012, 11:55:02 AM
This is an option in RoundCube 0.8 however I believe that you can only use it with chrome.
Title: Re: Windows default mail program
Post by: rgtech on June 21, 2012, 12:19:02 PM
@ SKaero
I will have to check with our IT guy but I don't believe synology is installing 0.8 version yet. I can't seem to be able to tell what version is running from a user log in. Since we just got this set up I know we don't want to be doing any 'custom' installing on the synology server at this time to try and get a newer version.
Any idea on how 0.8 version is handling this? Is it putting a program on the users computer or changing the windows registry? If it is making registry entries any way of finding out what is being entered? We may be able to modify and then send a registry file to each user to create entries.
Thanks, Ron
Title: Re: Windows default mail program
Post by: SKaero on June 21, 2012, 12:46:02 PM
It may not be a great idea to switch to 0.8 yet since it is only a Release Candidate, you should be able to check the current version in the index.php file in the RoundCube directory. RoundCube is using the javascript window.navigator.registerProtocolHandler function which relies on the browser to make the connection, thats why its only supported by some browsers. It looks like its supported by Chrome, FireFox, and Opera.
Title: Re: Windows default mail program
Post by: rgtech on June 21, 2012, 04:49:27 PM
Thanks SKaero for the information. If I understand the java script fix this would fix mail to links in the browsers that support it which would cover most of the mail to problems. There is still the problem of none browser programs that have mail to links or options. For example a pdf or word processor file that mail to links. It seems synology is currently using 0.4 round cube so our best bet is to hope we can find another solution that works for all windows programs. Gmail has gmaildefaultmaker but it only has the mainstream web mailers to pick from a list. If we could something like that but with a fill in option to put whatever webmail set up we need.
Thanks again for all your help, Ron
Title: Re: Windows default mail program
Post by: SKaero on June 21, 2012, 05:22:22 PM
It relies on the browser because the browser is the application opening to compose the message but it should work across the whole system. Even though your not running the current version (or anything close to it) I don't think there is anything technically stoping you from using the JS technique. Try creating a .html file with the following and upload it to the RoundCube directory (It wont work locally) and replace example.com with your domain and path to RoundCube:
Code: [Select]
<script type="text/javascript">
var domain = 'http://example.com/';

window.navigator.registerProtocolHandler('mailto',  domain +'?_task=mail&_action=compose&_to=%s', 'RoundCube WebMail');
</script>

Then go to the file in the browser and see if it works. Let me know how it goes.
Title: Re: Windows default mail program
Post by: rgtech on June 25, 2012, 04:37:57 PM
Our IT guy got busy so I am still waiting to get proper access to try you suggestion SKaero.

I did find that gmaildefaultmaker.exe can be adjusted for other programs. The following link in the diccusion section for gmaildefaultmaker.exe says you can install it and then edit the link.txt text file.

http://gmaildefault.codeplex.com/discussions/233207

I did this and so far it is working. I did figure out roundcube uses 'subject=' and not 'su='.

If our IT guy gets things set up to test the html file I will let you know. I think since we have several computers to set up having a single html file to click would be easier than installing a program on each computer.
Thanks for all your help  and I hope to be posting results of html test later this week.
Ron
Title: Re: Windows default mail program
Post by: SKaero on June 25, 2012, 05:20:05 PM
Ok good to know, let me know if it works.
Title: Re: Windows default mail program
Post by: rgtech on July 09, 2012, 03:58:48 PM
We will not be able to test html file. Our IT guy found that the Synology server doesn't have direct access to the roundcube directory without using some plug-ins. Since he is just getting this set up and we don't even have everyone switched over we don't want to add any unsupported plug-ins to the system.
Sorry we couldn't test this.
Thanks for all you help, Ron
Title: Re: Windows default mail program
Post by: SKaero on July 09, 2012, 05:09:58 PM
I just like to point out that the html file isn't a plugin and affects none of the system functionality, the only reason why it needs to be in the same directory is because the browser checks to make the registerProtocol request is coming from the same place that the mailto link will be sending to.
Title: Re: Windows default mail program
Post by: rgtech on July 10, 2012, 10:23:05 AM
On the Synology server we need to use a plugin to get access to the directory. I don't completely understand how the Synology server works but when our IT guy went to test this he found there is not direct access to the "mail" directory. He would have to use plugins for the Synology server to be able to get to the proper directory.
Title: Re: Windows default mail program
Post by: SKaero on July 10, 2012, 06:36:26 PM
You maybe able to use it if you can put the html file on the same domain even if you can't access the mail folder.