Syntax for mailto - html

When using a mailto link like this:
Link Text
is it possible to set the FROM: address?
UPDATE: I forgot to mention that I have a captive audience who will ALL be using IE8 and Outlook.

It isn't, unfortunately - You can only specify the subject, cc, bcc and the body of the message. Check the full syntax : http://www.ianr.unl.edu/internet/mailto.html updated
For example,
Send

The short answer is no.
mailto will open your prefered email client. The from address will be set up in your mail client.
Given that your users will all be using Outlook, their email address will already be the from address.

The from address is always the address that is in the email client that sends the message, so no.

I think you're looking for the reply-to address, which is what appears to the recipient as the sender in 99% of email clients:
mailto:?reply-to=somebody#somewhere.com
Fancier example here:
mailto:terminator#thefuture.fake?reply-to=ahnold#thefuture.fake&subject=it%20verks!&message=get%20to%20the%20chopper!

Related

Charcter Limit for Mail to function in Gmail When the body and subject is included

I am trying below function in sending email and same content works fine when i receive email in outlook but when i see in gmail it does not even show the link on the Tag.Can you some body help me how can i fix the issue in Gmail and is there any limit for mailto function in gmail?
Want to approve some but not all repairs in the repair quotation
The standard (mailto protocol) doesn't define a maximum length, leaving implementation up to browsers and mail clients (IETF RFC 2368). But you can find some limitations described for browsers and mail clients on the Effective maximum mailto: body lengths thread.
Also, take a look at the MAILTO max-length of each internet browsers? page.

HTML mailto, how to include the sender's email address in the email body?

Please help me in this case. I use mailto function in HTML. But now I need to include the sender's email address in the email's body when the sender clicks on mailto button. It's hard for me.
Anyone please advice me solution or code to do so. Very appreciated.
Thanks,
To send an email to a specific email address via link, you can use it like this:
Send Email
To also send a body and subject parameter to define the content that will be sent, use this;
Send Email
Here is a good tutorial for beginners.
When using "mailto:" links in HTML, you can pre-define the following properties:
TO recipient
CC recipient
BCC recipient
email body
According to RFC 2368, only the subject and the body parameters are considered save, so email clients will not look for other parameters except those in the list above. This means, theoretically, you could set more header parameters like the sender's address by something like mailto:test#example.com?subject=test&from=sender#example.com, but probably no email client will process this parameter.

HTML mailto Yahoo Mail with recipient name

I would like to add the names of the recipients in a html mailto link for Yahoo Mail users. I know that they can set Yahoo Mail as a default handler or mailto: links, but I have a particular use case where solving this could be helpful.
Currently, I already have a compose link that works:
https://compose.mail.yahoo.com/?to=john#doe.com
In particular I would like to be able format ?to=john#doe.com so that Yahoo is consistent with what Gmail (and more) which can include the recipients name using this markup:
?to="John Doe"<john#doe.com>".
Unfortunately, I can't find what markup Yahoo Mail requires, or if it can be done at all through Yahoo Mail.
Thanks in advance for the help.
Yahoo does not allow you to mark up the name of the recipient through the URL like Gmail and Outlook, you can only place email addresses in the to, cc, or bcc fields.
23-12-2021: Surprisingly now it works! I am making a laravel app and what I wanted was what the author of this question was asking about. So I gave it a try and it worked.
Sample html code:
{{ $supplier->email }}

Disable mailto from email in GMail Body

I send mails to gmail users through google smtp.
We use email addresses as their Login Ids.
When I send their email addresses in mail body, the address is shown with mail to.
Example, I intend to show : test#test.com [as plain Text]
But what they get is HTML :
test#test.com
Somewhere on SO, I read that replacing '#' and '.' with their hex codes would fix the issue, but it didn't.
Any suggestions?
I hacked it by adding my CSS/html to the email address where I specified the mailto as empty and removed the link decoration.

gmail smtp problem

I am using gmail smtp to send emails from my website, but i noticed that some emails are dropped. I use Zend_Mail. Everything works as it supposed to for most of the emails, but if an email's subject/body is somewhat questionable, then it might not be sent. For example:
If I try to send emails like this:
Subject (asdjkasdf kasdjf kdfasdjfksdf) and Body (askdjf askjf asdf)
OR
Subject (SUBJECT) and Body (BODY)
Then gmail smtp will not do it. Zend_Mail returns true however.
Is there a spam filter or something that blocks such emails? What are my options?
If the SMTP returns no error, then your emails has been effectively SENT.
I bet the problem is that you don't see it in your inbox, that could be because it's marked as spam before that happens.