Ich wollte E-Mails mit Anhängen aus Lotus Notes senden.senden Sie E-Mail von Lotus Notes mit Anhang mit asp.net C#
Ich habe versucht, dies unter Code ist es zeigt Fehler:
Fehler:
An exception of type 'System.Runtime.InteropServices.COMException' occurred in App_Web_sendemail.aspx.cdcab7d2.s2ysjl2c.dll but was not handled in user code
Additional information: Database open failed (xx.xxx.xxx.xxx!!names.nsf)
Code:
Domino.NotesSession nSession = new Domino.NotesSession();
nSession.Initialize("bbau0862"); //Password
Domino.NotesDatabase nDatabase =
nSession.GetDatabase("xx.xxx.xxx.xxx", "names.nsf");
//If the database is not already open then open it.
if (!nDatabase.IsOpen)
{
nDatabase.Open();
}
Domino.NotesDocument nDocument = nDatabase.CreateDocument();
/*create string variable that will be passed to function. This way we setup To field value*/
string[] recipients =
{"[email protected]", "[email protected]"};
//setup Form
nDocument.ReplaceItemValue("Form", "Memo");
nDocument.ReplaceItemValue("SentTo", recipients); //To field
nDocument.ReplaceItemValue("Subject", "Message subject"); //message subject
nDocument.ReplaceItemValue("Body", "Something in the message body"); //set body text
nDocument.SaveMessageOnSend = true; //save message after it's sent
nDocument.Send(false, recipients); //send
mir bitte sagen, wie Lotus senden Notes E-Mail mit Anhängen in asp .Netz.
Vielen Dank.
Das ist nicht der Fehler Er bekam "Datenbank geöffnet fehlgeschlagen (xx.xxx.xxx.xxx !! Names.nsf)".Der Code wäre nie so weit gekommen, wenn er die Klasse nicht geladen hätte. –