Add attachement to email - lotus-notes

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

Related

Lotus Notes - sending Form in email

My question is how is it possible to send a form (developed in Domino Designer) via email?
I followed this guide and set up the necessary form & database properties, but when i click "Preview in Notes" i still can not forward/send my form (as an email) via a new message.
If you've followed the directions that you linked, then a button that uses #MailSend with no arguments will send the email with its stored form. But the receiving user's mailbox must have the "Allow use of stored forms in this database." property checked, otherwise the stored form will be ignored.
See my answer to a previous question for more details.
As it turns out, you can not do such. You have to send the form from lotusscript.

Spfx for creating new draft email with attachment

I need to create spfx button that will upload selected library item/document to new draft email as an attachment. I assume this needs to be done via Ms Graph API (pnp msgraph). Does anybody have samples or suggestions on how can this be done?
Regarding the SPFx button, you will need to create and SPFx ListView Command Set extension. This will enable you to add a button directly into the document library command bar.
This guide should help you with that.
Creating the draft email is a little harder. There are many solutions that you can use to send the mail. The Send Mail MSGraph action is one way.
However, a solution could be to build and launch a mailto: link in your SPFx extension that contains the URL to the selected file in the message body. Not quite an attachment but this would create the draft email and open it in the users email client.
Hopefully this helps get you started

Lotus Notes #Command([MailForward]) Command issue

Someone please let me know what exactly #Command([MailForward]) command does?
In my organization, I take care of several existing notes based applications. Here, one of the users is getting error message when clicks on 'Email Quote' button in one of the applications. The button contains the formula '#Command([MailForward])'. As the user clicks on the button, he gets following error:
Here in the organization, all the users use 'Outlook/Exchange' for emails, and notes emailing is not enabled. Other users of the application are able to click the button and send quotation via mail. The issue is with this specific user only.
I think there is some configuration settings in location entry or person document (names.nsf) that I am missing. Please guide me.
Thanks
Romil Handoo
#Command([MailForward]) is a command that takes the current Notes document that you are looking at and attempts to create a new email with that document included in the body. This is similar to what you see when you forward an email in Outlook.
Since you aren't using Notes for your mail, this action will not work. The error message you are receiving is there because the current user doesn't have a Lotus Notes mail file configured.

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.

Lotus Notes handling mailto links from HTML formated emails

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

Resources