mailto with empty recipient?

IphoneEmail

Iphone Problem Overview


is there anyway that I can use "mailto" with empty recipient? I only want to supply the subject and the message body and then the user can write the to addresses on mail. I tried writing only a space but it didn't work.

Iphone Solutions


Solution 1 - Iphone

This should do, I tested it.

mailto:?subject=your%20subject&body=your%20body

And as HTML with correct escaping of the ampersand:

<a href="mailto:?subject=your%20subject&amp;body=your%20body">test</a>

Solution 2 - Iphone

This should work..

<a href="mailto:?subject=My Subject">test</a>

Solution 3 - Iphone

I tried the accepted answer but it failed to launch an email when using Chrome. Using a %20 instead of a space worked though:

<a href="mailto:%20?subject=Wazzup&body=Yo">Send an Email</a>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionxenepView Question on Stackoverflow
Solution 1 - IphoneBen FransenView Answer on Stackoverflow
Solution 2 - IphoneImmanuelView Answer on Stackoverflow
Solution 3 - IphonekmgdevView Answer on Stackoverflow