How to send a email using outlook and chrome extension - google-chrome

I want to use chrome extension to open a new window of outlook email which has a specific content and include attachments and all recipient email addresses, while I am logging in the outlook. Is it possible? Because I have no idea, how can I do that? Thanks very much.

No, it is not. To automate the desktop edition of Outlook you need to use the CO automation technology which is not supported in Chrome. You can automate the desktop editions of Outlook from Internet Explorer only. Other browsers are not aware of the COM automation technology (of course, on Windows only). If we speak about opening a web page with O365 mailbox - the best what you could do is to navigate to a specific URL.
As a possible workaround you may consider using the mailto protocol which allows to open a client's e-mail system and begins a new email message. For example:
<a href="mailto:user#example.com?
subject=MessageTitle&
body=Message Content">
Contact Us</a>
Or in the HTML form:
<form action="mailto:user#example.com" method="get">
<input name="subject" type="hidden" value="Message Title">
Feedback:<br/>
<textarea name=body cols="40">
Please share your thoughts here
and then choose Send Feedback.
</textarea>
<input type="submit" value="Send Feedback">
</form>

Related

HTML form method POST gets changed to GET but very rarely, and only on clicked link

Apologies if this is not done correctly, my first question and extremely strange. I have a simple form with some hidden inputs that get passed to a CGI on submit. An example:
'''
<input type="hidden" NAME="account" VALUE="myaccount" />
<input type="hidden" NAME="xvalue" VALUE="newval" />
<input type="hidden" name="NAME" id="NAME" value="yourname" />
<input type="hidden" name="USER_DATA" value="computer" />
<input name="PASSWORD" id="password" type="text" placeholder="Password" value="" /><br>
<input type="submit" formmethod="post" value="Start" />
</form>
'''
This works 99.9% of the time. I have a user that when they click on a link in a gmail account, with Firefox as the default browser, they hit an index page with the above form. When they attempt to submit the form, the POST method returns as GET on the server side. I've tested this by pointing the action= to a php page that echos all variables returned. When I print $_server[request_method] in php the request_method returns GET, so the POST variables are blank. I need the POST variable to be accurate for the CGI to work properly. To make this even more odd, it only happens on his Android phone, using gmail email client and clicking on the link, with FF as the default browser. My user has tested several combinations of email clients and browsers, and this is the only combination when the problem happens. Works fine if the link is copied and pasted, or typed in browser, and the index page is hit. We have another user who reported the same issue on an iPhone, unknown email client and browser.
I and my colleagues have tested on Android phones, gmail client, Firefox 68 (same as client) with a forwarded link that does not work on client phone. We've tested on as many devices and operating systems that we have, and we cannot recreate the issue, including on client server and an internal server.
Anyone have any thoughts?

Why is my browser not sending any referrer?

I have an html page with the following code.
<form method="POST" action="https://formspree.io/email">
<input type="submit" value="SEND"/>
</form>
My browser does not include the referrer header field in the http request when a user submits the form. Why wouldn't it ?
I fixed this by adding <meta name="referrer" content="origin"> to the <head> section of my HTML page.
You are testing your site by opening it in a browser as a static HTML file in your computer's filesystem. In this case its URL will not start with http:// or https://. This will not work, because browsers don't treat these pages as normal web resources and thus they do not automatically send the "Referer" header when you submit a form. Formspree requires that header to work. This can be solved if you just open your HTML files as a web resource from a local web server. If you're on Mac or Linux, just type python -m SimpleHTTPServer 8000 or your HTML files directory and visit http://localhost:8000 on your browser. If you're on Windows, try installing one of the following super simple web servers: Web server for Chrome, thttpd or Quickshare.
You are using an old Safari version, Safari mobile or some other browser that is not recent Chrome, Firefox or Edge. In this case you could have been a victim of an old HSTS policy we had on Formspree that didn't allow sites to post content to non-https versions of Formspree. In this case please change your form's action= attribute to https://formspree.io/.
First use the atributtes that formspree specify:
<form action="https://formspree.io/your#email.com"
method="POST">
<input type="text" name="name">
<input type="email" name="_replyto">
<input type="submit" value="Send">
</form>
and second: maybe you tried the form before in another site (like formspree site), so you'll have to reset it in the formspree site and then try it directly in your site, so you will have to confirm again.
Hope it works for you...
As statosdotcom commented, the issue happened because I was opening my webpage locally.

HTML5 input type to trigger facetime for mobile phone

Based on my research I haven't found a solution but a client wants to have their mobile site trigger Facetime on their user's phone (iPhone). I know skype works fine but for people on the go we would lke this functionality. Has anyone encountered this or have a clever work around?
This is what I am using:
<input type="tel" placeholder="xxx-xxx-xxxx" />
Thinking something like this: (use tel as a fallback..)
<input type="tel vidtel" placeholder="xxx-xxx-xxxx" />
Does this exist?
Thanks!
Apparently you can use a URL Scheme.
Connect using FaceTime
Connect using FaceTime
Source:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/FacetimeLinks/FacetimeLinks.html

Start directions app from Windows Phone HTML5 App

I have an App that show a location in a Google Map in HTML and I'd like to start an navigation app (Google Maps, Bing Maps, Nokia Here, ...) when I touch the map. Is there a way to start an installed navigation/directions app from HTML5 with a specified destination location?
I found the ms-drive-to URI-Scheme, but the mobile Internet Explorer stats that this URI-Scheme is not supportet.
Is there any other way, or do I have to somehow get an event from the HTML5-side of my app to the C#-side and create a MapsTask there?
I'm only adding this as an answer, on the chance that it might work. Because, I honestly don't know. I've tested it on all manner of Android and iPhone, but not Windows:
<form action="http://maps.google.com/maps" method="get" target="_blank">
<input type="hidden" name="saddr" id="address" />
<input type="hidden" name="daddr" value="400 Mercer St, Hightstown, NJ 08520" />
<input type="submit" value="Get Directions" class="menubarBut" style="height: 32px;width: 110px;font-size: 12px;line-height: 12px;margin-top: 5px;" />
</form>
The idea here is that form submits the address. The device intercepts the call and asks what you want to do with it, Google maps, GPS, Navigator, etc...
Like I said... This works all over the place so far. And as near as I can tell it's as close as I've found to a universal solution.
I gave up too quickly.
Turns out the ms-drive-to URI-Scheme is working after all, unless you enter it in the navigation bar directly.
So using it from a link, form, window.location or window.open is fine.

HTML input type=file multiple - When publish app to IIS, only one file can be selected at a time

I have a basic form using <input type="file" multiple> to upload multiple files. It works fine when I'm developing (IIS Express) but when I publish the site to IIS, the multi-select only allows one file to be selected at a time. This behavior is consistent across all browsers and the page source at the browser is identical.
Is there a setting on IIS that could be causing this?
Here is the form code:
<form action="/Home/SubmitFiles" enctype="multipart/form-data" method="post" role="form">
<div class="form-group">
<label>Select one or more documents to convert:</label>
<input name="files" id="files" type="file" multiple>
</div>
<div class="form-group">
<button type="submit" class="btn btn-default">Convert</button>
</div>
</form>
I have exactly the same problem. multiple is a html5 feature for input. After testing in IE10 with "IE7-Emulate" turned on, I've found an interesting thing: I turned proxy server off and multiple selecting suddenly start working with all browsers. First think was: "my proxy rewrites headers". I tried to modify popup page by adding . Multiselection started to work in IE10. There is no support for multiselection in IE7,8,9. If you want to use this versions of IE, you should try Flash or custom ActiveX controls.