Lotus Notes handling mailto links from HTML formated emails - mailto

I am sending emails to different users in my corporation. Some of our clients use Lotus Notes (8).
These emails are generated by the server. Inside this email (HTML formatted), there is a link to a "mailto":
Please <a href="mailto:myaddress#mycorp.ca" >click here</a> to reply.
There is nothing else in the body of the email.
Unfortunatly, when I click on this link (wich does appear as a link when reading the email from a Lotus Notes client), I get this error:
\\mailto:myaddress#mycorp.ca is not accessible. You might not have permission to use this
network ressource. Contact the administrator of this server to find out if you have access
permissions.
The parameter is incorrect.
On the other hand, if I create the email manually through the Notes client (using a "HotSpot"), the link works... Unfortunatly, generating the email with the Lotus Notes API is not a possibility because (a) we do not have a Domino server in our corporation, and (b) not all of our users use Lotus Notes...
Question: Is there a way to fix this problem without using the Lotus Notes API?
I have tried this :
<div onclick="window.navigate('mailto:myaddress#mycorp.ca');" >Click Here</div>
but the javascript code is ignored... (probably a javascript security restriction in the client).
I have also considered not using HTML format in my emails; I could do most of my formatting using Rich Text Format, but I do not know what syntaxt would generate a Hotspot (or a functional mailto link) in the RTF content...

I am not sure that there is a way for one link that will work for both clients - Outlook and Lotus.
Lotus Notes developers call it HotSpot.
Check those links, if you can create it manually - send it to yourself and check the sent HTML.
http://blog.iangoodsell.com/2009/06/i-hate-lotus-notes-inserting-hyperlinks.html
http://www.alanlepofsky.net/alepofsky/alanblog.nsf/dx/creating-links-to-a-web-page

Related

Add attachement to email

I have a request to create a Get support button in an application.
The button will have to open the Lotus Notes application(which is installed in a generic fixed location), to auto-complete the e-mail to, subject, body of the e-mail and also, the most important part, to add an attachement to the e-mail.
I managed to open the Lotus Notes with the fields completed with the command:
mailto:support_adress#domain.com?subject=First%20Email%20&body=this is the body
The problem is with the attachement. Due to security concerns, mailto doesn't support attachements.
So the question is, can I do it with an Lotus Notes Script( which can be executed from my application)?
If yes, can anyone guide me to some usefull informations or examples to start learning to create a script which would do it?
Yes, you can do it with LotusScript:
get user's mail database
create a new document in backend
add fields "SendTo" and "Subject"
create RichText field "Body" and attach file to it
open document in UI

Use LotusScript or Rules to stop some emails in Lotus Notes from causing a new email alert

I would like to setup Lotus Notes to move certain incoming emails to a particular folder and mark those emails as already read in such a way that I do not receive a new email alert from Lotus Notes. I am able to filter for the correct email (by subject line, etc) and have Lotus Notes move the incoming email to a folder and mark the message as already read but getting it to not give me a new email alert is the part I am having trouble with.
I do not want to disable email alerts for all incoming emails, just for some that meet certain criteria. I am open to solutions that use Lotus Notes Rules but I am thinking I will need to use LotusScript. I am using IBM Lotus Notes 8.5 on Windows 7 Professional 64-bit.
Any help is appreciated, thanks!
I have never done anything like that, but what I would try is to create a Lotusscript agent triggered to run "before mail is received". Then you can use the MarkRead method of the NotesDocument class.

Email sent from lotus notes which includes sent form not working in gmail

While sending email from lotus notes to Gmail using Lotus Script, buttons are not visible in Gmail.
As Anders says, Any standard or custom Action Buttons (at the top) will not be available in Gmail. You would need to code your own Gmail interface to reproduce.
If you are talking about buttons in the actual rich text of the mail, these will definitely not get translated when the mail leaves and you should get a message saying...
"The following items cannot be sent or saved in MIME (internet mail) format."
That would be a clear sign that you are going to need to take another look at your assumptions.
If you are planning a migration, you do need to check your assumptions (and your vendor's promises) carefully, there is a lot of infrastructure and functionality that is taken for granted in the Notes/Domino stack and just not available, or significantly different, in others.
Stored forms are a feature that is unqiue to Notes. They contain Notes design elements, formulas and scripts that execute Notes functions that are provided by the Notes API DLLs that are only available in the Notes client. GMail doesn't know anything about them. Outlook doesn't know anything about them.
But if you want to send them to someone who has a GMail address but who also has the Notes client, then there is a way to do it manually using the "Send this email to other Notes mail user(s) through the Internet" feature, which appears in the Advance tab of the Delivery Options dialog that you can bring up when sending a message. There is no simple API for automating the mechanism that is used, but it can be done. It requires creating a new empty database file with a special name (encap.ond), saving your document into that database, and then attaching the the file to a new message, which will be the one that you actually send. I don't recall if any special headers are required for this, so if you want to pursue it you will have to do some investigation by using the manual process and checking out the full headers of the message on the receiving side.

Hotmail don't show correctly e-mail send by lotus notes application with agent Java

I have an application that has an agent that converts a document to the MIME format ('memo.convertToMIME (2)') and sends it to multiple external emails: gmail, hotmail, yahoo, etc ... This agent is triggered by a button.O problem is that when the e-mail sent is read by the browser in hotmail, the images do not appear, but the texts, tables and formatting appear normal. As for gmail, yahoo, etc, e-mail usually appears by the browser. The funny thing is that when I send an e-mail address so convecional the lotus, other than by application of a lotus, only using the client, this e-mail test is usually read by hotmail in your browser. Does anyone have any idea what might be happening?
PS: This agent is designed to run on the server, because the command 'convertToMime ()' only works for version 8.5 of the lotus forward, but the company has users using lotus client 7.
According to Bob Balaban, there's a glitch in the conversion code deep underneath the C API layer: it does not automatically convert attachment contents to a base-64 encoding (even though the API documentation says it will) - it leaves them in binary format.
See Geek-O-Terica 15: Easy conversion of Notes documents to MIME format (Part 1) for details.
A view of the MIME created/received by an external user would help us too in determining, what is exactly wrong.

Programmatic Creation of a Notes Link Hotspot (URL)

Earlier versions of the Notes client would automatically turn a sent URL into a clickable link for the recipient (regardless of mail client) but with 6.5 (and presumably later) this no longer happens; that is, the URL is sent as plain text. The Notes UI allows it to be done via the Create->Hotspot->Link Hotspot menu but this gets tedious.
I'm looking for a way to create a Link Hotspot in LotusScript. My research to date leads me to believe that this isn't possible but there may be a hack of some kind.
The automatic conversion of urls into clickable links is a user preference.
In 6.5 it is set via File/Preferences/User Preferences/Basics. In 8 it is set via File/Prefences/Basic Notes Client Config.
I don't think you can create a url link hotspot explicitly using lotusscript. You can create a doc link, but there is no obvious way to turn it into a url link.
You could try an approach where the form is set to render passthrough html on the client and then construct the relevant html for a link.
Update in response to comment.
The scenario is that we want to to control what a user receiving mail sees. We have a few cases we should think about.
The recipient is using Notes and received the mail directly via notes to notes routing.
The recipient is out on the internet using any client and allows email in a rich format.
The recipient is out on the internet using any client and only allows email in plain text.
In the first case the user will see links if they turn on the option for that. You could also create pass-through html in the rich text and that will render on the Notes client assuming the form option is set in the design. If it's straight email and you don't really need any other rich Notes features you could also construct a MIME message.
In the next two cases you just want to send properly formatted MIME messages. In the first of those cases the user will accept rich formatting and therefore you can construct the message as simple html and include links that way. In the second case the user will not, and you have to make do with plain text. Luckily most mail clients will automatically turn urls received in plain text messages into links for you. This may be an option as in the Notes client.
It is best practice when sending rich mail content to also include a MIME section for plain text. That way you don't need to care what version the user prefers.
You need to cheat and create a MIME entry to get your links. Going that route you also can take the opportunity to make it look really nice. The sample code is on this site

Resources