• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

Problem: Composing a new Lotus notes email from C# windows application.

Hi Im creating a new email like this in a C# app:System.Diagnostics.Process.Start("mailto:email@email.com?subject=" + subject + "&boby=Hello&body=" + FormatEmail());

But if the string that FomratEmail returns is too long its cut. Is there anyway to get arround this?
If not, can I do it in another way?

Great site.
/Thank you!
  • 3
  • 2
1 Solution
o3hAuthor Commented:
Well Im not looking to use COMs, I just want to start a new "New email-message" window with receiver, body and subject pre-filled. I dont want to supply username or anything like that. The user will supply that when his Lotus Notes starts.

Thank you. Great site!
Sjef BosmanGroupware ConsultantCommented:
Let me answer your original questions first:

> Is there a way to get around the 256-character limit?

> Can you do it in a different way?
Yes, see my previous post.

I understand what you want, but Notes doesn't. Sorry.

It seems that the limit is much higher in R8:
o3hAuthor Commented:
Ok thank you.
But, I have looked at the Lotus Domino Objects. Is there a way to just open a new mail window (prefilled) ?
I dont want authenticate the lotus user programatically.

Thank you again.
Sjef BosmanGroupware ConsultantCommented:
From the Designer Help database: The back-end Domino Objects have a Component Object Model (COM) interface. Which implies that there is no interface for the front-end. Sorry.

You don't necessarily have to authenticate the user, Notes will do that for you if you have a back-end COM solution. Open the Notes client, go to File/Security/User Security, type the password, you'll see the Security Basics settings. There you can select "Don't prompt for a password...". When you run your program that interfaces with Notes, you won't have to login. If Notes is already active, nothing happens. If Notes isn't active yet, it is started and it will automatically ask for the user's password.

So you can develop your own mail form if you want to, and send the mail through the Notes client.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now