How to generate receiver name in email body outlook? - configuration

Is there any way to set receiver's name automatically in mail body in outlook as we define the outlook signature?
i.e: If I am going to reply Smith ABCD then I want to start body as Hi Smith

Yes, there is.
You need to initialize your object from Active Directory. Once you have it you should be able to get the FirstName as a property of that object.

Related

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.

Specifying the subject line in an HTML email

I'm coding a quick HTML email using Foundation for Emails.
The tech stack isn't of huge importance, just highlights what I'm trying to accomplish in general.
Something I'm wondering about is when someone receives my email (through any of a huge number of possible email clients) is it possible for me to specify in my HTML template what the "Subject" line should read?
In case I'm not being clear enough, I'm referring to the teaser text you see in your inbox before opening the actual email:
Like in this instance from Gmail below: the "Your Amazon.com order of "Shovel Knight Amiibo"... text.
Is it possible to specify that text in my HTML template? Or is that handled by a service request?
The mail subject is a header, e.g:
From: John Smith <john.smith#example.com>
Subject: Good news!
It isn't taken from the message body so the answer is no.
You need to specify it with whatever program/code you use to actually deliver the message and it has to be plain text.

Outlook Macro to add signature to email body

I am facing this problem, suppose i have a html anchor like this
Send Email
if you open the link above using outlook the body overrides the signature in outlook.
my question is, can outlook macros append the signature after the message body? and if so, is there vba code sample to achieve this?
No, you will need to use Outlook Object Model for that - display the message first (signature will be added at that point), then add your own body.

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.

sending sentences in url

This is an odd question but hopefully someone has an idea of how to work around it
I'm working with a 3rd party product that sends out txt-based emails on the triggering of certain events. I can customize the text of the emails and I have access to certain dynamic properties that I can embed that will be included when the email is generated. So for example assume that I have a dynamic property called %%full-name%%, when it sends the email it would substitute in 'John Smith' in the body of the email.
Now, I need to also embed a url in the email that uses that dynamic property, something like this:
http://mysite.com?fullname=%%full-name%%
but what will happen is that the 3rd party product has no idea I am embedding a link so it doesn't know to escape it for the space between John and Smith so I get this:
http://mysite.com?fullname=John Smith
where the clickable part of the link shows up as just the bolded part in most mail clients.
So my question is, is there a way to wrap that dynamic property such that it will render the link properly despite the spaces? Since its a 3rd party API I'm working with I have zero control over the actual values being passed into the dynamic properties so my options are limited
You should ask the third party vendor this questions. They may have some way of designating that you want a URL encoded dynamic variable in the email.
If you surround the link in quotes ("") or greater/less than (<>), most email clients "like outlook" will know that it represents one link and won't cut it off at the space.
"http://mysite.com?fullname=%%full-name%%"
<http://mysite.com?fullname=%%full-name%%>
You will run into issues if the variable contains other special characters (like: + % & " >).
edit *
Have you tried using HTML
http://mysite.com?fullname=%%full-name%%
If you control the data that is available, you could always maintain another property that is url-safe:
Hi, %%full-name%%, visit this link to set your preferences:
http://mysite.com?fullname=%%full-name-url%%"