I have created an email template and included a button that links to my site.
When clicking on the button through Thunderbird the links work fine.
But when I click on the link directly through gmail it gets a prefix that breaks the link.
For example:
By left clicking through thunderbird I get to: https://www.example.com
By left clicking through gmail I get to: https://www.google.com/url?hl=en&q=https://www.example.com
What am I doing wrong?
It turned out that I was using path.join to concatenate the strings that would create the final url and by doing so path.join escaped some "/" characters.After removing path.join and making simple string concatenation everything worked.
Related
I have a Zapier zap that takes an Outlook email from a folder, and appends a text entry in an inbox.txt file in my Dropbox, which I then convert to inbox.org. The text entry has the email subject as the TODO headline, and the note has the Outlook email URL from Zapier plus a body preview.
When I click on the URL link in org-mode, it does not work. For some reason, org-mode is screwing up the URL when it passes it my Chrome browser (I am on a Mac, using the latest Emacs for Mac version).
Here is an example. The "GOOD" URL is what is actually in the inbox.org file as seen in Emacs. If I manually copy and paste that URL into Chrome, no problem. But, if I simply click on the URL in Emacs, the "BAD" URL is what appears in the browser. Notice how some characters are different.
Anyone have clue? . I also use Beorg on iOS, and it correctly opens the link on my iPhone.
GOOD
https://outlook.office365.com/owa/?ItemID=AAMkADI2ZGEzMWMzLTVkOTItNGRkOS04ZjkzLTVmODUzNDZhMjE3OABGAAAAAACfpz95dsWeQ5i6qmcPiDh6BwC6Rj4Y9RfWRZ26IgJTOwZ1AAMJ4B%2BqAAC6Rj4Y9RfWRZ26IgJTOwZ1AAMUEGjBAAA%3D&exvsurl=1&viewmodel=ReadMessageItem
BAD
https://outlook.office365.com/owa/?ItemID=AAMkADI2ZGEzMWMzLTVkOTItNGRkOS04ZjkzLTVmODUzNDZhMjE3OABGAAAAAACfpz95dsWeQ5i6qmcPiDh6BwC6Rj4Y9RfWRZ26IgJTOwZ1AAMJ4B+qAAC6Rj4Y9RfWRZ26IgJTOwZ1AAMUEGjBAAA%3d&viewmodel=ReadMessageItem&exvsurl=1&path=
I assume this has nothing to do with Orgmode itself, but how your browser interprets the url you hand over from emacs. The "plus" sign is not encoded (%2B) and therefore your Browser does not just leave the "plus" sign in the url but interprets it and normally turns it into a space.
I've found that the emails I send from my application have their links (whether normal link or button) 'stripped' by Hotmail. Other email providers I've tested like Gmail are fine though. E.g. code like the below...
<b>Book</b>
... results in Hotmail showing the following text:
[mydomain/book_request]Book
The same happens with buttons that contain links
What is the right HTML/CSS to use?
Thanks a lot
Try this:
Book
You should include a http:// or https:// in front of every link. I'm not sure how Hotmail interprets an unstyled <b> tag, but it's not the only way to bold text.
BACKGROUND:
Sitefinity CMS for my specific problem, but could be general too.
I have an email message which has an unsubscribe link in it like this:
To Unsubscribe: Click or copy paste the following link in your browser.
https://www.domain.com/unsubscribe?mailingList={|MailingList.Title|}&SubscriptionEmail={|Subscriber.Email|}
{|MailingList.Title|} and {|Subscriber.Email|} are sitefinity CMS subscriber fields. When I send out an email these two fields resolve to their respective values. Hence, the URL I get in an email is as following for example.
https://www.domain.com/unsubscribe?mailingList=mymailingList&subscriptionEmail=abc#xyz.com
The user can click on it and unsubscribe from the mailing list.
My Problem:
If the mailing list name has a space in it, the link that appears on the email is broken at the first occurance of the space(link the link shown below breaks immediately =my) and hence clicking it is like clicking a invalid URL.
https://www.domain.com/unsubscribe?mailingList=my mailing List&subscriptionEmail=abc#xyz.com
I dont understand why the space in the URL doesnt resolve to a %20.
My Trial:
I changed the order of the querystrings to see if it works(mailinglist was the last string originally, I put it in the middle)
I am fine if the URL does not get resolved into a link at all, just forcing the users to copy paste the entire URL. But, I was not able to do it as well.
I have read in microsoft forums that OUTLOOK resolves the spacing issue, when the URL is surrounded by < and > like this :
URL here:
But the URL doesnt even show up in the email just like it is not showing up here above this line.
Tested on OUTLOOK, GMAIL, YAHOOMAIL, MICROSOFT MAIL. The link is broken in all email clients.
Any suggestions on what is the best solution for this?
We are trying to open Yahoo Compose Email programmatically via JavaScript.
It was working fine till now but suddenly it stopped working.
The Yahoo Compose Box opens but with empty fields, it does not populate any information like "subject" and "body".
Example-
http://compose.mail.yahoo.com/?Subject=TestSubject&Body=TestBody&To=test#yahoo.com
It will redirect to Yahoo neo launcher with blank compose window
https://us-mg6.mail.yahoo.com/neo/launch?action=compose&.rand=813078417
Came across this and found the answer.
http://compose.mail.yahoo.com/?to=TO&subject=SUBJECTMap&body=BODY
Of course change TO, SUBJECT, and BODY
Having the same problem discovered that I could append the url params to the new launcher url and remove the .rand param and it would work.
Like this
https://us-mg6.mail.yahoo.com/neo/launch?action=compose&Subject=TestSubject&Body=TestBody&To=test#yahoo.com
I am not able to add new line in body yahoo mail message composing via href tag.
Following is the anchor tag for yahoo mail:
demo link
For gmail %0A is working fine for showing text in next line and br tag is working fine for hotmail.
But for yahoo and AOL I am not able find solution for showing text in next line?
Your text links might get reformatted by Yahoo! shortcuts
Here is a link to a host of other nasty thing Yahoo mail will do and how to correct it:
http://www.emailonacid.com/blog/details/C13/9_ways_to_prevent_yahoo_headaches#yahoo_tip2