URL for opening a link in a calendar application - html

This is a html link/href/url when you want to open a link with an email client (like outlook)
Send Mail
What should be an html link when you want to open the link with a calendar client (like calendar from microsoft outlook or similar calendar application) in order for them to also save some information regarding appointments/events?
Is there a general approach to these urls to be able to open with them different applications?
Thank you

There's no common link to be used across different calendars (Google, Outlook, etc...) you can work with some of those, but my suggestion is to use free "link builders" like http://addtocalendar.com or https://www.addevent.com for example.

I resolved this by creating below registry entry
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\outlookwebcal]
#="URL:Outlook Add Internet Calendar"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\outlookwebcal\shell]
#="open"
[HKEY_CLASSES_ROOT\outlookwebcal\shell\open]
[HKEY_CLASSES_ROOT\outlookwebcal\shell\open\command]
#="\"C:\\Program Files\\Microsoft Office\\root\\office16\\Outlook.exe\" /select outlook:calendar"
then markup should be like
<button id="outlookCalendarBtn" onclick="window.open('outlookwebcal:')">
Open Outlook Calendar
</button>

Related

Share contact, html-input type

It is possible to share contact from my phone to html form (upload file), just like popular phone apps like whatsapp and etc do?
I really like how we upload images from phone, when we use <input accpet="images/*" type="file"> - it opens phone's gallery once I hit the input[type="file"].
I wonder if there is a same feature exists that opens contacts book.
I know that there are contact-files with VCF format (https://en.wikipedia.org/wiki/VCard). But can figure out if it is possible to use the format in accept field of input.
My guess is that you should use one of the next mime-types to provide users ability to upload VCards:
text/x-vcard
application/vcard (Macintosh only)
text/anytext
text/directory
application/x-versit (Eudora Plug-in)
text/x-versit (Eudora Plug-in)
text/x-vcalendar
Source.
Regarding direct access to contacts from mobile, this feature has a proposal status. Repo is https://github.com/WICG/contact-api. You can play with the feature here https://whatwebcando.today/contacts.html.
Hope these help!

Insert HTML into email in Apple Mail

Is there a way to insert pure html into an email via Apple’s desktop Mail app (ie. creating a newsletter, tables, etc.)?
I know you’re able to do this on Mac OS via Thunderbird, just wondering if there’s a reliable method or extension for Apple Mail specifically.
Having been seeking for solution for so long.
Both cmd + a then cmd + c or cmd + i in Safari may drop some style/script. Occasionally I found a nealy perfect solution by myself.
Create a new mail in apple "Mail.app", write anything then hit cmd + s.
Find your draft at the left panel of "Mail.app". Drag it onto your desktop.
Edit the draft file with any text editor you like. See some html source code at the bottom of the draft file? Replace them with the html code you want to send then save the file.
Open "File" - "Import Mailboxes" in "mail.app". Select "Apple Mail", import the
edited draft file.
You will see your mail at the left panel of "Mail.app". Drag it into a "Draft" mailbox.
Finally open the mail, fill in To, CC, Subject, etc, and send your pure HTML mail.
There is a "simple" way : open your html content in Safari, then press command + i
The html content of the page will be inserted in the body of a new mail message.
I was also looking for a solution and found this thread. Here is how I paste code into Apple Mail:
Copy your code into the code beautifier at http://hilite.me/. Then save the generated HTML to a file and open that in Safari and Press command + i as Creaforge said (thanks for the tip).
To expand on what TheycallmeXiaoli said :
Create a new mail in apple "Mail.app", write Bonjour then hit cmd + s.
Find your draft at the left panel of "Mail.app". Drag it onto your desktop.
Edit the draft file with any text editor you like (ex: TextEdit)
Search for the word Bonjour you wrote earlier - Replace ONLY this Bonjour with your ENTIRE html code
then save the file.
do not delete anything else ! don't replace the current HTML tag just the word Bonjour
In the Mail App Select File -> Import Mail Boxes
Select "Apple Mail" & import the edited file.
You will see your mail at the left panel of Mail App
most likely inside an "imported" folder
Drag the file into your "Draft" mailbox.
Finally open the mail, fill in To, CC, Subject, etc, and send your pure HTML mail.
: )
Thanks so much TheycallmeXiaoli !

Litmus automatic unsubscribe

[Posting this in case someone else experience this issue]
We are using Salesforce Marketing Cloud for our marketing campaign and Litmus as our email clients simulating tool.
For testing purpose, we added a litmustest email into one of the Data Extension.
For some unknown reason, the litmustest mail will be unsubscribed after every email sent and have to be re-activated from admin panel before the next test.
Litmus will click all the links in an email in order to run the link check test in Checklists. It'll try to ignore unsubscribe links by looking for the word 'Unsubscribe' but sometimes this is not what appears in the email.
The workaround to prevent this is adding" litmus-data-ignore" to you link and that will prevent the system from clicking that specific link when running the link check test. It'd look something like below:
<a href="unsubscribe_link" data-litmus-ignore>Remove me from mailing list</a>
Source: Litmus admin
found a blog describing the solution after I'd found the solution from admin directly.
Hope this helps!

Email Blast - Adding an .ics ( Calendar Event ) to an anchor tag and having it open within Outlook

Link to JSfiddle
My first attempt at an HTML email blast and I'm kind of stuck on attaching an .ics and having it open within outlook or whatever their preferred email client is instead of downloading the .ics file directly.
The requirement
1. Clicking on the image adds an event to your calendar. (I prefer this not to be a hosted .ics file, but my searching has not led me to a way to hardcode the .ics within the HTML email)
Here's the offending HTML:
<a href="webcal://http://mathiasprovinggrounds.com/WinterWunderman/WundermanWinterParty.ics"><img class="image_fix" src="http://i.imgur.com/SvlJYLU.jpg" alt="Wunderman Winter Party!" title="We Survived the Holidays! Until next year..." width="x" height="x" /><a href="">
Currently when the email is sent and the user clicks on the image, the calendar is downloaded via their preferred web browser and not opened directly in outlook.
I've tried the following:
Hosting the .ical directly and using href="http://mathiasprovinggrounds.com/WinterWunderman/WundermanWinterParty.ics"
Using the webcal attribute as found here.
Is there a specific way I could hard code an .ics instead of hosting it on my server? That seems to be the ideal solution, but the only results I have found would include PHP and I would like to keep everything within a single HTML.
I believe the answer you were looking for could be found on this page under Creating a single-event link: https://msdn.microsoft.com/en-us/library/hh846807.aspx
Your URL, with the values replaced:
http://calendar.live.com/calendar/calendar.aspx?rru=addevent&dtstart=START_DATE_AND_TIME&dtend=END_DATE_AND_TIME&summary=EVENT_TITLE&location=LOCATION_TEXT
START_DATE_AND_TIME = yyyymmddThhmmss, required.
END_DATE_AND_TIME = yyyymmddThhmmss, required.
EVENT_TITLE = Escaped string, optional.
LOCATION_TEXT = Escaped string, optional.

Customise email before sending

I am recoding a friend's artist/client booking system. I have little experience in programming, enough understanding to hack my way through and google has been a great help!
I've spent the last 3 days reading and searching... Havn't found anything on that... Maybe I'not using the proper terms....
Here's what I want to do.
I use Google Script and google spreadsheet. 1 row contains all the information about a specific contract.
I want to be able to use a menu item to generate the contract (completed)
Open 2 browser window
one to display the Contract PDF file ( completed )
one for a GMAIL New email
with the contract pdf attached ( completed )
generated email body from selected row in the spreadsheet( completed )
be able to customize the generated email text before
sending it. Adding attachements...
This is what I'm stucked at. I use
MailApp.sendEmail('xxx#yyy.com', 'transfer email as pdf : body
& attachment', 'see attachment', {attachments:[body_to_send]});
It send's the email ok, with attachement and generated body and all... but no way to edit the email before sending...
Is that possible with google script?
Explore the UiApp class in Google Apps Script. UiApp
You could build a simple UI where the user can enter additional content and upload files, which can then be appended to the email before sending.
It doesn't look like Apps Script supports creating email drafts, which would also provide a way for you to edit emails before sending them. (Sending an email to yourself with a fancy way to reference the ultimate recipient is another possibility using the native Gmail UI.)
Is this in the direction you were thinking?
The last step of your process can be achieved using a Google Doc template in which you can add whatever you want to improve presentation.
From there you get an html version of your doc and use it as a html body in your mail.
If you need more details about html import you'll find it easily on this forum and on the issue tracker.
You could also run this code from a document bound script in a sidebar which would be visually more convenient. (see my recent posts about mailmerge).