I'm using a mailto link created within a Flex3 application. In the routine, I first put a block of text on the clipboard that I'd like to get into the body of an email. Within our company, Lotus Notes is the mail being used.
So far I've been able to use a link as follows: mailto:address?subject=whatever?body=Highlight%20this%20text%20and%20press%20paste
I'd rather get the text to go directly into the body field without the user needing to do the paste themselves. Can a post method be used here to answer this problem, and if so how. There was a solution listed for question 22027554 with a link to IMB's site but the link is now dead.
Thanks for getting back on this issue. I'm not sure either answer gets across the finish line. Let me give a little more background on the two routes I've tried so far.
Route #1: First within my web application (done in Flex3), I set the clipboard to have a body of text. Then the code launches a Notes NDL file. When the file opens, I have the Notes database open to a view and added onLoad code that opens an email memo. The code then puts a subject line in, goes to the body field and pastes the clipboard contents. Here's the problem with this method that I haven't worked out. I can set the clipboard contents but I haven't found a good way to pass the address or subject unless it's "canned" in the onLoad code (I'd rather pass the Address and Subject. I've been looking to see if I could put the Address~~~Subjest~~~Body text onto the clipboard and then parse it out when it gets to the onLoad code. However, I haven't figured out a way yet to get the clipboard into a variable so I can parse it out. I did think of putting it into a form's text field in order to get at it but thought ther;s got to be a better way. After the onLoad code is done, it closes the NDL database that did the work and the user is left at their email memo. I needed an answer that would allow the user to have a UI to their memo so they could adjust the text as needed. Along that line, I'd love it if the text being pasted in would support HTML so I cold highlight and bold words that are being put on the clipboard (any thoughts).
Route#2: I used the mailto: method where I'm able to set a unique subject, address and a short body comment (255 limit). As my first posting said, I paste in words such as "Highlight this text and press paste". When the user does this, the clipboard contents go into the message. This is almost the solution but how can I format the text to support HTML (I don't want them to see the HTML tags). Getting it to do the paste for the user would be icing on the cake.
I suggested Route #3: your code creates a NotesSession object, opens the mail database, creates a new mail on screen, and fills in some of the fields for the user. It can be done, but I'm not sure whether Flex3 supports the COM-interface.