How to use mailto: links?

Modified on Mon, 8 Jan, 2018 at 9:37 AM

Code snippet of ‘mailto’ link:


<a target="_blank" href="mailto:[email protected][email protected]&amp;[email protected]&amp;subject=Shipping%20Information&amp;body=Please%20tell%20me%20if%20my%20order%20has%20shipped!">Example link</a>

<!-- Copyright (c) 2018 The Interact Technology Group.
THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All rights reserved. -->


 

Above sample will open the default email client with ‘To’, ‘Cc’, ‘Bcc’, ‘Subject’ and ‘Body’ filled in as predefined.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article