How can I make this url valid for emails? - validation

I have a link in an email, this link is generated from the site the email is sent from.
People go to the site to vote on something and then they get an email with the link to confirm their vote.
The link in the mail is generated from this:
http://www.domain.com/vote?Q=QAPmail&d=<# Responder.RespID #>&k=<# Responder.AccessKey #>
The generated link, the one that ends up in the mailbox looks something like this:
http://www.domain.com/vote?&Q=QAPmail&d=78874058&k=betyzucp
The variables in the link are required to make the vote unique so I can't remove those parts.
On all my test cases (various email providers and such) it works fine, however I've been getting some complaints from people who aren't able to open the link.
In most cases either "x-msg://" or "wlmailhtml:" is added in front of the link, which makes the mail provider state that it's an invalid/insecure link when clicked on.
I'm not sure why this link would be invalid, any help would be greatly appreciated

The link seems valid. Are those people able to copy-paste the link? If they can, than you could make the email body html and simple add tag, like so:
http://www.domain.com/...

Related

Email Template URL - HTTPS issue

One of the client has asked the below, in reference to an old Email template we had created for them that they want to use.
We have an important email we need to send out to do with Apple Pay
and we have to use this link - shoebox://payment_setup.
The issue we have is where the template you guys built forces Https to
be added before every link it stops this link working. Are you able to
tell me which bit of code I would remove to stop this happening for
this email please? I am not editing the template as this is a one off
email we will just edit the individual email.
Please can you let me know solution to an issue like this?
Thanks
-Anjali

Hotmail.com strips out formatting and hyperlinks from HTML message

I'm struggling to figure out how to defeat this process on Hotmail.com.
When I send an e-mail using a PHP script (and PHPMailer libraries, using Sendmail), recipient viewing the message from Hotmail.com gets a very bare message. Images are there, but all of the HTML formatting (styles, attributes, hyperlinks) is stripped away. Not even the <td> attributes remain (such as colspan, cellpadding, etc).
However, when I send the exact same message directly from a regular mail client (or webmail interface), all formatting and styling is preserved intact.
My PHP script sends a customised HTML message to a group of recipients, but it does it one by one (customising parts of the message for each recipient).
It appears that Hotmail doesn't seem to trust my server with the messages and is removing attributes and links as a security precaution. However, there is no way for receiving user to override this. Adding the sender to the whitelist does nothing. I have posted this on a Microsoft forum, without much success. I'm hoping someone here might have fought with the same problem and found a solution, or at least work-around.
I tried various things. I put a time delay of a few seconds between sending of two messages, thinking that Hotmail doesn't like mass mailing, and if two or more messages arrive from same sender at the same time, it will activate this blocking. It didn't help. I tried using SMTP script, sending the message through g-mail's SMTP server. Same problem -- stripped-out formatting.
[update]: I have even tried using Microsoft's own SMTP servers for hotmail, using a valid outlook.com user account to send (from that PHPMailer script). When viewed through hotmail.com web interface, the message is still stripped of all formatting and links.
Meanwhile, when these problem messages are viewed through a mail client (iOS, OSX, Windows, Android, MS Outlook), all is perfectly fine. [/update]
Right now, my work-around is pasting a long URL for this one important link that I want users to use, for recipients who have 'hotmail' or 'outlook' or 'live' in their e-mail address.
Any creative thoughts?
[update 2]After a lot of tinkering, I was able to re-format the message so that at least some of the formatting is preserved, so now, I got <table> tags to work. What's weird is, <bgcolor> also works, but <center> doesn't, nor do any css style attributes (neither to <tr>, nor to <td> or <table> itself). Fortunately, I now have <a href> tags working properly, so the links are functional again. I have basically given up on the whole thing and have developed a separate bare-bones template only for hotmail/outlook recipients.
Frustrating![/update 2]
I'm not sure this is still an issue for you but since I didn't find ANY resources around that matter I thought it was useful to post it here.
I had the same problem and I figured it was that my links were dummies (only href="#") and that outlook stripped them (whereas gmail rewrites the href).
Apparently if there isn't a valid href tag, it strips the link, even if it's been used just for cosmetic.
I would advice not to use them for anything else than links (obviously).
Hope it'll help.

Form not sending the way created

I am trying to create a survey template in Outlook for the first time. So I created a very basic template which has one question and three radio buttons to choose from. When I use Tools\Forms\Design a Form it looks fine however, when I try and test it by going to File\New\Choose Form and emailing myself a copy I receive my standard message page (nothing like the form I just created!). Can anyone explain what I am doing incorrectly? Thanks!
Quote:
Common email clients share a propensity to distrust forms in email
messages. But they differed greatly in how they handled the intruding
forms.
Because of this I suggest to not use forms in emails as you might not get the expected result.

Sending simple email from static page

I'm new to DocPad. I really like the idea of static page generation and had this in mind for some time, but great that there's already a mature project out there!
However, while I get a rough picture of how DocPad works, what would you recommend be the best way of creating a simple Contact Me page, that would email the input text to a specific address?
There is still requirement for server side code for this. How I see doing it right now, is having a html form doing a POST to nodejs server that will handle sending the email.
Is that a correct DocPad way of doing it, or I'm missing something?
Check out the contactform plugin :)

Generating a jwt in Google Wallet

I don't understand how they are generating the jwt in tutorial #1.
Is it a call to a JavaScript function?
Honestly, the library link didn't connect the dots completely for me either. Especially when you're going from Google Checkout, which takes 10 minutes to set up, to Google Wallet that requires JSon/JWT knowledge.
So, I went to the Samples link instead and found all references to "Cake" in the code, per their demo. Link to sample code.
------- Digital goods sample app (PHP) ---------
I am using PHP, so I downloaded iap-php source at the this link. And clicked the Download .zip link. It's not very obvious on the page and the window will show you a message that says, "No files in the selected directory. Select a subdirectory, if one exists, or another directory from the tree on the left." Don't worry; just find that little Download: .zip link in the Source tab.
When I opened the files, I saw seller-info.php to enter my specific issuerID (also called your merchant id) & secret. Replace that red text with your info.
generate-token.php is where you change the red text to information about YOUR product.
index.php is where you change the same product information that appears on the page that the user first sees. When you put this on another page, inside of your live website, be sure to include all of the scripts.
The Tutorial says that it's generating the JWT server side and has a link to server libraries (in multiple languages) that can do the generation for you.

Resources