I'm trying to send an email with hyperlinks with "mailto", to email me back. I'm trying to automate the replies as they come in using mailitems in VBA, for example:
Dim Item As MailItem
Set oItems = Outlook.Session.GetDefaultFolder(olFolderInbox).Items
For Each Item In oItems
etc. And searching for key words/IDs to indicate which link the sender has clicked, however the chance of the sender changing the subject or body of the email would be a spanner in that plan.
Is there a way that I can embed some hidden data (like an ID and yes/no response, for example) in the HTML of the mailto in order to properly identify the emailer, even if they change all the visible email data, and then what is the best way of accessing that data using code similiar to the above?
Is there a better way of doing this? Am I approaching this the wrong way? or am I totally barking up the wrong tree?
Thanks for your help!
You won't be able to pass an hidden data with a mailto, everything could be changed by the sender.
A better way of doing it is to make a little form in HTML & PHP (for example), with in your emails a link to this form passing the ID in the url, then retrieve this ID in your form, then saving this ID when the form is submitted.
You could also make links in your emails pointing to a redirection page saving the ID passed in parameter in the url then redirecting to the mailto: final 'link'. It would allow you to know who clicked on which link in your emails.
Related
Does anyone know how to reference a NS field in the standard HTML form?
I have a custom field on my SO that links to our external website. The field uses a formula to pull the NS SO internal ID to create the link so we can send it out to the customer. That field works perfect and I was able to get that link to display properly as an element on the standard PDF form layout that gets emailed to the customer as an attachment on the SO notification email.
Now, here is the issue, I don't know how to reference it on the "a href" html tag in the HTML code on the transaction HTML layout. I know the field name/backend ID, I just don't know how to reference it in the "a href" html tag, this is what I have so far:
Securely View, Edit, & Track the status of this order
(in the curly brackets is my field name and I removed the carrots so the exact code would show up in this text box)
Does anyone know how to get that field from the SO form to show up in the Transaction HTML Layout form?
Actually I figured it out. I needed to have the href set as <NLCUSTBODYPG_LINK_SO>.
I want to send a coupon code in the email template.
A Small button that will copy the content of a input element on the clipboard.
By email Template, i mean i want to send a email which will have a coupon code and there will be a button in the email template which will allow me to copy it to clipboard. Can this be done?
Any help will be appreciated.
Considering that javascript cannot be added inline to the email template, i couldnt think of any other solution.
Short answer is No - This feature would require Javascript.
Long answer - Yes (in a different way) - You could use unique query strings on the button URL (eg ?USER=1&COUPON_CODE=123) that way you could automatically carry the unique coupon code from the email to the landing page form field.
To do this you could assign each member in your database a unique coupon within the CSV file (or whatever you use) and set up a merge field within your ESP and use that to automatically create the strings. For example, your string would look like this when you code it href="http://www.yousite.com/?[%coupon%]" and your ESP will do the rest providing the database is set up correctly.
Hope that makes sense.
Since clipboard's content is changed with javascript, there is no way to do that in an email.
You could, however, build an URL with the coupon code as parameter.
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.
I have working the auto population of this form: http://getpocket.com/save
I'm using it rather than the API so that it works when users are logged into Pocket on the same browser as my website.
However, it's not a good user experience to then have to click 'save', so how can I "automate" that?
I won't show my code, because it essentially is just to generate a link of the form:
http://getpocket.com/save/?title=thetitle&url=encodedurl
It populates the form fine, but how can I submit? I tried apending &save and &submitand then each of those =True, in vain. Is the issue that the save button doesn't have a name= field, which is what's used to hook into the title and URL fields?
EDIT: Just to be clear, I didn't have any malicious intentions, only to save articles to read later on click of a button.
If I find the time I'll have a look at the API.
Luckily this is impossible (on Pocket and most sites) due to cross site forgery request protection to prevent exactly what you are trying to do.
A token is set in the form and together with session information for the user on pocket (or any other site that uses csfr token protection) it will need to form some sort of secret hash. When the 'save' form is submitted the combination of these strings will be checked and normally new strings will be set. Because there is (practically) no chance that you will be able to predict the token form the form itself and have no real way of manipulating the session hash, you are out of luck. And we are all very happy for that :).
Otherwise you could make links on other sites that would delete your whole database when you happen to click on them, etc.
In short: You can't.
On any form without csrf protection you'd have to target not the url of the page with the form, but the 'action' of the form. You can see this action by inspecting the form with your browser's DOM inspector. But, as I said, csrf protection will prevent this from working most of the time.
http://en.wikipedia.org/wiki/Cross-site_request_forgery
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)
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