Capture subject line from Outlook email into mailto link in signature - html

I am helping someone working in operations to set up an email signature which includes a link to escalate to a higher official in case of any displeasure. While I can use a mailto: to link to the official's email id, I want to also capture the subject of the email to capture details like Service Ticket number and any other title that is in the email subject.
What I mean to say in a nutshell is - when a user clicks on the link, he would get a new Outlook compose mail window with the same subject. Using simple mailto: with manually changing subject line wont help. Looking for some tips here - am open to look at dynamic options like VB code or something but it has to be via Outlook.

Include a placeholder in the signature's link (e.q. mailto:somebody#domain.demo?subject=xyzq), when Application.ItemSend event fires, look at the MailItem.HTMLBody property and replace the placeholder (xyzq above) with the value of the MailItem.Subject property. You might need to encode spaces and special characters.

The mailto: command doesn't allows to specify any custom information for Outlook. Read more about the mailto scheme in RFC2368.
If you are new to VBA, I'd recommend starting from the Getting Started with VBA in Outlook 2010 article which explains the basics.

Related

Embed Variable in href mailto link

Good day,
We are currently making use of Mimecast to tag stationary on the outgoing emails. In Mimecast you can sync attributes from Active Directory for use in personalized email signatures, etc.
I am currently trying to configure a mailto link that uses the "Display Name" attribute in the link, to add the senders name to the subject of the email.
However I cannot get to work. Also in the Mimecast HTML editor no var variables can be passed as it only allows basic HTML.
The Mimecast attribute for display name is pulled with the following piece of code...
<mc type="variable" source="from" attribute="displayName">
This needs to replace "FirstName%20LastName" in the code below.
<mc type="clickimage" code="imagebottomleft">
Kind regards,
Renier
I took a look at the specification (RFC2368), and it does not seem that this feature exists.

URLENCODE Variable in Salesforce Vertical Response Email

This is a rather simple question, but I cannot find documentation about it from Salesforce.
I am setting up an HTML Newsletter from Salesforce Vertical Response, and I need to put a link in the body of the email that goes to another site which takes the user's email address as a query string. I am doing this so that when the user clicks the link from the HTML email, they will automatically be signed up for a different blog mailing list.
The link will look like this www.mywebsite.com/blog/subscribe?email=your_email#email.com.
I can easily accomplish this by using the {EMAIL_ADDRESS} variable, such that the link looks like this:
Subsribe
This workds, but when the user gets the email and clicks the link, the '#' symbol gets stripped from the URL. Now I'm trying to figure out how to get around this. I saw some documentation on the URLENCODE() function for SalesForce, but when I try to use it in the HTML email editor in SalesForce, like URLENCODE({EMAIL_ADDRESS})it doesn't execute it, and instead interprets it literally as text. Can anyone help me? is it even possible to use functions from within the SalesForce HTML email editor?
Thanks
I havent used VerticalResponse, but if it leans on salesforce communication templates then you can always create an email template as Visualforce page. Then you can apply Encode functions to merge fields.
I'm glad you were able to find a workaround. If you ever go back to dealing with the URL, it's a good idea to disable our click-tracking when working with merge fields. This can be accomplished by adding nr_ before the http. Example: Subsribe - If you ever try that and it doesn't work, or if you have any other questions, please let us know via one of our Support channels:
support#verticalresponse.com
866-683-7842 x1
We also have live chat available: http://help.verticalresponse.com/
Regards,
Keith Gluck
VerticalResponse Customer Support

HTML (using CSS) Code for sending an email to given email-id

How can i code a HTML (using CSS) file to send an email to me(i.e. to given email-id) by the visitor of that website?
Without using a server-side language, the best you can really do is a mailto link. That will open the user's default email editor with the "To" field populated with the value of your mailto link. You can create one of those like so:
Email Me!
It is possible to provide extra information in a mailto link, to populate more fields. For example, if you want to provide a subject:
Email Me!
You can also provide a value for the body, cc and bcc but I have no idea how well those default values are supported by various email clients.
Also note that this has absolutely nothing whatsoever to do with CSS, which is used for styling documents. I've therefore removed the CSS tag from your question.
You cannot. You can use a tag:
Email Me
And this will open a mail client in the client side. The client must have it configured for being able to send a email.
If you want to create a form that, when the user presses a button "send" sends you a message, you must use a dynamic language such as PHP.

Putting a character return in a mailto link

I'm making a simple RSVP form and I'd for users to click a mailto link, which opens an pre-made email with parts already filled out (first name, etc.) and then send it to RSVP for an event. I know this isn't the best way, but it's the simplest I could come up with.
The only problem is that I can't seem to put character return's in the mailto link, so it looks messy. Any idea how?
My mailto link:
RSVP
Since you are placing your data in a URL, you need to encode such characters using %XX hex notation, eg:
RSVP
FYI, keep in mind that not all email programs support multiple parameters to the mailto: protocol, if any at all. You really should look into using a server-side webform instead. Let your users submit feedback to you directly from your website without invoking their local email program at all. Most website hosting services provide such a feature as part of your account, or for a small fee.

How to send mail with a Subject using a Mailto URL?

I need to make a Mailto link to my website which is suppose to contain either the product name or the product page URL in the subject section. How can I do it?
Exp: When you get an email through eBay about a product you are selling or buying, you automatically know what product that email is about by seeing the product name in the subject section.
How can i do this?
Email Me!
Internet Archive:
Set up an HTML mailto form without a back-end script
HTML Mailto Attribute and Tips
HTML Mailto Tips and Tricks
Mailto Syntax
Related Stackoverflow Questions:
Avoiding the Mailto Annoyance?
Best way to obfuscate an e-mail address on a website?
Effective method to hide email from spam bots
What are some ways to protect emails on websites from spambots?
I've run into problems with this before when I didn't url encode the value, so I would suggest (using lc's example):
<a href="mailto:foo#bar.com?subject=This+Is+My+Product">
or
<a href="mailto:foo#bar.com?subject=This%20Is%20My%20Product">
This page [Link Dead] outlines the syntax of mailto URIs:
Address message to multiple recipients
, (comma separating e-mail addresses)
Add entry in the "Subject" field
subject=Subject Field Text
Add entry in the "Copy To" or "CC" field
cc=id#internet.node
Add entry in the "Blind Copy To" or "BCC" field
bcc=id#internet.node
Add entry in the "Body" field
body=Your message here
Within the body use "%0A" for a new line,
use "%0A%0A" for a new line preceded by a blank line (paragraph),
What you are looking for is:
<a href="mailto:foo#bar.com?subject=This Is My Product">
Note, it's probably a good idea to URL encode the spaces with either a + or a %20:
<a href="mailto:foo#bar.com?subject=This+Is+My+Product">
Try This
If you want something more advanced, you're going to have to code it from scratch (or use someone else's script). Try looking into PHP, ASP.NET, Ruby on Rails, etc.
Try this code to set subject, body, cc, bcc
<p>HI venky!</p>