Compose an email link
Here is an example of a composed email link:
mailto:[email protected]?subject=Hello%20from%20John&body=Hi%20there,%20this%20is%20a%20test%20email
Let me break it down:
mailto:
is the protocol used to send an email.[email protected]
is the recipient's email address.?subject=
specifies the subject line of the email.Hello%20from%20John
is the subject line, encoded in URL format (using%20
instead of spaces).&body=
specifies the body of the email.Hi%20there,%20this%20is%20a%20test%20email
is the body of the email, encoded in URL format (using%20
instead of spaces).
You can customize this link to fit your needs. For example, you could add additional parameters to specify the sender's email address or the email's CC/BCC fields.
Here are some additional parameters you can use:
?cc=
: specifies the CC recipients (e.g.[email protected]
)?bcc=
: specifies the BCC recipients (e.g.[email protected]
)?from=
: specifies the sender's email address (e.g.[email protected]
)?replyto=
: specifies the reply-to email address (e.g.[email protected]
)
Keep in mind that not all email clients support all of these parameters, so it's a good idea to test your email link in different browsers and email clients to ensure it works as expected.