Launching web mail account to send email

I’ve been able to set up HTML code on a web page to launch a new browser window and open the selected web mail account. I want to replicate this in Servoy. The problem is that even though the “Using Your Gmail Account” is highlighted as a clickable item, nothing happens. What am I missing here? Is it even possible from within Servoy to launch a web browser with specific requirements like this?

<html>
<body>
<ul>
<li>
<a href="https://mail.google.com/mail/?view=cm&fs=1&to=info@eyecor.com&su=From Account# %%current_tenant.phone%%"  target="_blank">Using Your Gmail Account</a>
</ul>
</body>
</html>

Thanks,
Bob

Hi Bob,

Works for me…I used an html area set to non-editable.

So how do you display this?

Thanks Marc,

I had this in a label with html code to display to text.

Bob

Hi Bob,

Label does also work.
Just to make sure: are we talking web client here?

smart client needs a different approach, you need to use ‘application.showURL’ here…

Marc -

I was just about to post another comment here looking for help on just that. When I run the program through developer the email works like a charm. When I run it stand alone as the smart client I get nothing, but through the web client everything works fine… now after playing around a bit I need some more detailed help…

This is what I have so far:
I have set a variable as the dataProvider as

var gmail = '<html><a href="https://mail.google.com/mail/?view=cm&fs=1&to=info@xyz.com&su=From Account "  target="_blank">Using Your Gmail Account</a></html>'

This works great in developer and as a web client so now onto the smart client…

This is what I have for the smart client

function openGmail(event) {
	if(application.getApplicationType()==APPLICATION_TYPES.SMART_CLIENT){
		application.showURL('https://mail.google.com/mail/?view=cm&fs=1&to=info@xyz.com&su=From Account );
		}
}

still no response in the smart client.

Thanks for all your help
Bob

:oops:

Figured it out… I needed to put in the target “_blank” to open the browser.