How to set mailto url to open in gmail only in url - gmail

I'm trying to create a mailto url which must be open only in gmail by all users.
The problem is someone will get outlook or any other mail platform. And I have replaced mailto with https://mail.google.com/mail . It works fine In desktop but is not opening in android gmail app instead, it just open in mobile browser itself which is older and ugly version and not supporting url custom parameters like to , cc, subject or body
Example 1:
mailto:hello#gmail.com/?subject=YRCN&body=Please%20fill%20the%20details
It doesn't open in gmail for everyone. Because some of them are using other mail platform for default.
Example 2
https://mail.google.com/mail/?to=yrcmadinicon#gmail.com&subject=YRCN&body=Please%20fill%20the%20details
It works fine In desktop. But doesn't open in gmail app in mobile phone.
I want the second example which will open gmail app with custome parameters.

Related

Mailto with subject not working

I am building a site in Squarespace. I am trying to add a mailto: link with a subject.
Here's the code I used: mailto:email#myemail.com?subject=Website.
In Firefox and IE, clicking it opens a totally blank new tab. In Chrome, it opens up a blank new tag with the mailto code in the browser window. But the desired behavior is of course to have it open a mail client.
I don't think you can control this. mailto: depends on the user's desktop configuration.
They may have it open in a mail client, gmail or whatever their configuration is. You can't control how the mailto: works.

Send email from windows phone 8.1 app(c#). Using any SMTP server , I am trying using gmail smtp

I am developing Windows phone application using VS 2013. In this I want to send email from some app pages like contact support page.
I have tried the c# working code from a windows console app. But 'Mailmessage' keyword is not supported in windows phone app development .
I have tried 'EmailManager.ShowComposeNewEmailAsync(mail);' code from Send email from windows phone 8.1.
That is result in opening mail messanger app available in the devices/emulator. I don't want the mail messenger app to open. Instead I want send to email through only code...
How can I achieve this?
Any help/suggestion would be appreciated
You cannot send email without showing the email application to the user. Also, the user might have many emails so he needs to decide from which the message should be sent.
What you can do is send whatever you want to send by email to a server (for example using HttpWebRequest) and from there send the email.
You can send the message without displaying a standard message box.
The user should monitor the sent message.
This is a safety feature for Windows Phone.
Only use ShowComposeNewEmailAsync.
To send mail using SMTP in Windows Phone you can make use of MailMessage for WP8 & WP7.
It's not a free package, but you can make you use of it's free version.
It's free license never expires, but opens a popup message and add a sponsor string to both object and body.
Refer here for more : Nuget
First, I work with Xamarin.Forms.
As the (other) question to Xamarin.Forms is marked as "duplicate" of this question, I post my answer here.
I also think, it's not possible (and also would not be nice), if Emails would be set in the background (without user interaction).
Therefore, I let the users send EMail's over the device-object in my app:
Device.OpenUri(new Uri("mailto:" + oFreizeitDetails.cPAB_Mailadresse));
where "oFreizeitDetails.cPAB_Mailadresse" contains the mail-address as string.
This works, if a mail-client is installed on the device.
The mail-client then pops up, the target mail-address is prefilled and the user can finish the mail (add body-text, e.t.c.) and then send it.
There were some problems with the WP implementation in XF some time ago, but now (I work with XF 1.4.4 and WP 8.1), it also works with WP.

Adding Skype chat in e-mail signature using Dreamweaver

I'm trying to link Skypes chat link in Dreamweaver using:
skype:skype.name?chat
over the Skype icon. When I paste the html email signature in gmail, all my other links work fine except for Skype. If I open the .html file in any browser it works great. It just won't work when I see the embeded signature in gmail.
Any advice?
Use this instead:
skype:-skype-name-?chat

Ways to integrate app in GMail

Is there any way to integrate an app into GMail (with like a custom button next to the send button which will perform a request to a specific url) without an Firefox / Chrome addon? So an application really integrated in GMail?
I was wondering as I would like to do the following;
Allow a user to click to move a message to a specific (hardcoded) folder
Put the message back at the top of their inbox after a API query (from my app). So the Inbox priority filtering should be managable.
You'll want to take a look at Gmail Gadgets.
Gadgets are custom HTML and JavaScript components that run within an
iframe and can be embedded within various web pages. Gmail includes
support for embedding gadgets within the web interface, creating
content-rich data displays and extending Gmail with additional
functionality.

Why do mailTo links open gmail in the same window despite setting target=_blank?

I am trying to allow users of our website to click on a link and open a mail application / gmail to compose a message. I am using the mailTo method which opens my mail application on mac, however when I set gmail as my default mail application in browsers settings (eg chrome and firefox) it will open gmail in the same window as the page on which the link was clicked.
I know that target=_blank is not really intended for mailTo links but I tried it and even this does not open the link in a blank window.
Surely this isnt a bug in these browsers, there must be a way to do this.
Mailto does not open a window or tab in any instance. If you want to use a window or tab you need to configure a form and allow the form to open in your window/tab. Of course, you'll have to configure the form to send mail with whatever method is available on your server.
source

Resources