URLENCODE Variable in Salesforce Vertical Response Email - html

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

Related

Web Link inserts value into Textarea

Much like the mailto: link you can add ?subject=
I wanted to be able to create a web link which would send you to a webpage that contained a form.
In that Form, I would like the value of the TextArea to contain information Inserted by the contents of the referring Weblink.
Example:
example.com/page-url?textarea=content
Is that possible? If so, can you tell me?
I pay in chocolates.
Thanks for your time and I look forward to any replies.
Plain HTML can't do this by itself. You'll need to use Javascript or some kind of server-side processing to get the values from the submission.
Forms have two methods - POST, which submits through the headers, and GET, which submits through a querystring. With the querystring it's easier for users to mess with your data, so keep that in mind as you design this. (Not that it's impossible with POST, but it takes a little more work)
Since you're passing to a textarea, make sure you URLEncode your post or things like spaces will cause you a lot of headaches.

How to send an email with a form inside

Is it possible to send an email with a form inside ?
We want to send an email to our subscribers with an input text inside the email to get a complementary information, I havn't seen this before, is it possible to do that ?
If yes, which problems could we meet with that solution ?
I do not think that this is possible...
and even if it is, I wouldn't choose to do it.
You can not know what device your user will be on and if his mail client will support this.
If I were you, I'd just link them to the online form they have to fill. (You could use Google Docs for instance) or do it on your own website with an html form and write it to a database.
Why go through the pain of having to deal with hundrets of emails?

How do I stop Gmail from stripping the values out of URLs?

I recently learned that webmail clients like Gmail will do alterations on HTML emails, for example adding target="_blank" to <a> tags.
I've also discovered that other alterations happen as well. When I send an HTML email to Gmail (and possibly other web mail clients) from my PHP script, variable values included in the URL of any links are being stripped out. So, for example, this is the value I'm setting in my PHP code:
$mailContent = '<p><a target="_blank" href="https://example.com/confirmation.html?verification=x1x1x1x1x1x1x1x&email=yyyy#email.com">click here to go to the web site and activate your account!</a></p>';
But when the email is received in Gmail, the HTML code comes out like this:
<p><a target="_blank" href="https://example.com/confirmation.html?verification=&email=">click here to go to the web site and activate your account!</a></p>
The values x1x1x1x1x1x1x1x and yyyy#email.com have been stripped out from within the <a> tag.
How do I protect the values of the variables that I want to pass to the URL so that Gmail won't remove them?
Click View original/source on the message in Gmail to see if the URLs looks like they should then. If so you know that the problem is how Gmail is formatting the message for your viewing. If it's mutilated even in the source I was wondering if there's anything in your webpage/php/CMS (do you use one) that changes the code.
You should try URL-encoding as #Crisp said. Here's the W3 reference.
Emailing in html uses Quoted-printable Encoding. The problem with your $mailContent is that the "=" must be represented by =3D
Try adding this:
$mailContent = quoted_printable_encode($mailContent);
This may not be the perfect answer, but if your application allows for it, I have used URL shorteners a number of times.
http://goo.gl/ is my preferred because the API is super easy to implement and google is very fast. I have a function in a class and I just run my url through it and send the return wherever I need it to be.
Another non-perfect answer here but, my problem was that I was including an http url in the html body and apparently is not valid so I changed them to https. This was on a dev environment so no problem on production.
Here is more info about this:
Any URL's in the body of the mail which lead to insecure sites may also need to be removed. Use https://transparencyreport.google.com/safe-browsing/search to validate these links.. All links should be correctly prefixed with "https". https://en.wikipedia.org/wiki/HTTPS Google seem to be rejecting "http". Sometimes, but not always, removing links from any signature can help.

Write an html code to attach a file in mail

I am trying to write an HTML Code which on clicking on one of the links a mail is sent to respective mail Id.But along with that mail i also want to attach an attachment by default.Uptill now i am able to pouplate rest of the fields like to,cc,bcc,sub but the only thing remained is attachment.
Can anyone sort it out for me.Your help would be appreciated and thanks in advance.
I may be misunderstanding the question, but you're not going to be able to add an attachment to an email with HTML only. You're going to need some server side code.
Are you trying to use mailto: to do this?
Attachments are encoded in mail messages according to the MIME standard. All the major web scripting languages have modules to read and write MIME messages. Searching for "MIME" at CPAN for instance will turn up lots of useful Perl code.

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.