CEF3: How to handle mailto links?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF3: How to handle mailto links?

Postby tomh » Wed Jan 09, 2013 5:57 am

Hi,

I would like mailto links to be handled in the 'deafault' way - ie to open the default mail client. How to go about this please?

regards,
TomH
tomh
Mentor
 
Posts: 88
Joined: Mon May 28, 2012 9:45 am

Re: CEF3: How to handle mailto links?

Postby magreenblatt » Wed Jan 09, 2013 7:29 pm

If you're using CEF3 you can implement CefRequestHandler::OnProtocolExecution and set |allow_os_execution| to true when called for mailto URLs. Some platforms may not provide default handling in which case you would need to implement this functionality yourself.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 211 guests