Gmail compose mail link

You can create a link to compose a new email in Gmail using the following format:

mailto:?subject=Your Subject&body=Your Body

Replace Your Subject with the subject of the email and Your Body with the body of the email.

For example:

mailto:?subject=Hello&body=Hi%20there%2C%20this%20is%20a%20test%20email

This will open a new compose window in Gmail with the subject "Hello" and the body "Hi there, this is a test email".

You can also add the recipient's email address to the link using the to parameter:

mailto:[email protected]?subject=Your Subject&body=Your Body

Replace [email protected] with the recipient's email address.

For example:

mailto:[email protected]?subject=Hello&body=Hi%20there%2C%20this%20is%20a%20test%20email

This will open a new compose window in Gmail with the subject "Hello", the body "Hi there, this is a test email", and the recipient's email address "[email protected]".

Note that the mailto protocol is not supported by all email clients, and the link may not work as expected in all cases.