Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: mastertom am 17.07.03 - 11:27:14

Titel: Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: mastertom am 17.07.03 - 11:27:14
Hallo Notes-Gemeinde,

Ich schildere hier mein Problem/ meine Frage:

Mit welchen Mitteln kann ich Lotus Notes über ein Windows-Programm aufrufen, so dass sowohl die Mail-Adresse als auch ein entprechender Betreff (oder gar der ganze Inhalt) übergeben wird?

Verschiedene MS-Applikationen können dieses von natur aus (oder nach einigen Einstellungen).

Wie kann ich diese Funktion jedoch für andere Programme (z.B. ein SQL-Client oder ein Navision-Client) automatisieren / vorbereiten.

Ziel sollte ein Aufruf mit Parametern sein, der Notes mit den nötigen Informationen versorgt. "Wie bringe ich meiner Anwendung das Mailen via Notes bei???"

Wer hat hier Lösungsansätze, Redbooks, Beispiele und andere Hilfen parat?

Ich hab lange im Board gesucht aber leider keine passende Antwort gefunden.

Ich hoffe auf eine angeregte Diskussion  ;)
Titel: Re:Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: BANXX am 17.07.03 - 13:02:02
Schau Dir doch mal die passenden Kommandozeilenparamter (http://www.dominoforum.de/modules/xoopsfaq/index.php?cat_id=1&PHPSESSID=1bb63d9c5886847cac9fc04a49a5b6f1#q35) an, evtl. kommst Du damit weiter.

Ansonsten sollte Notes natürlich als Standard-Mailer für das Betriebssystem definiert sein.
Titel: Re:Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: eknori am 17.07.03 - 13:07:05
meinst du so was ??

                  Private Sub Command1_Click()
                  Dim session As Object
                  Dim db As Object
                  Dim doc As Object
                  Set session = CreateObject("Notes.NotesSession")
                  Set db = session.CurrentDatabase
                  Set doc = db.CreateDocument
                  doc.Form = "Memo"
                  doc.SendTo = "John Doe/Unit/Org"
                  doc.Subject = "Hello Joe"
                  doc.Body = "How are you today?"
                  Call doc.send(False)
                  End Sub

Titel: Re:Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: mastertom am 17.07.03 - 15:00:57
Hi,

es geht eher in die Richtung von BANXX.

Jetzt haben wir also schon einen Aufruf aus dem Betriebssystem raus... gibt es noch DLLs oder API-Aufrufe aus anderen Programmen, die Ihr kennt?
Titel: Re:Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: BANXX am 18.07.03 - 09:23:16
Schau Dir mal das MAILIT2 Tools von Helpsoft an, ist Freeware

Zitat
HELP Software offers MAILIT.EXE and MAILIT2.EXE for Lotus Notes as free programs. These programs can be used to send Lotus Notes mail from the command line. These programs will only run on 32 bit Windows platforms.

--------------------------------------------------------------------------------
MAILIT2 (advanced version)
MAILIT2.EXE offers a way to send mail from the command line or from a batch file. This version of MAILIT allows more options than the original MAILIT (available below). To use MAILIT2, enter

MAILIT2 mailserver ~ mailfile ~ sendto ~ copyto ~ blindcopyto ~ subject ~ body ~ attachment

Details:
mailserver
the server that contains the mail file that will be used to send mail

mailfile
the path to the mail file that will be used to send mail

sendto
the person or group to send the memo to. multiple sendto names can be specified if they are separated by commas.

copyto
the cc: person or group to send the memo to. multiple copyto names can be specified if they are separated by commas.

blindcopyto
the bcc: person or group to send the memo to. multiple blindcopyto names can be specified if they are separated by commas.

subject
the subject text to include in the memo

body
the body text to include in the memo

attachment
the paths to the attachments to include in the memo. multiple attachments can be specified if they are separated by a comma. wildcard characters * and ? can be used when specifying attachment names.

~
the tilde character must be used to separate each parameter.


Sample command line:

MAILIT2 acme1/acme~mail\mymail.nsf~John Doe/Acme,sman@marvel.com~ ~ ~automated memo~sample body text~c:\windows\*.txt,d:\lotus\notes\notes.ini

The above command line uses the mail file with a file name of "mail\mymail.nsf" on server "acme1/acme" when sending mail. The memo will be sent to John Doe/Acme and sman@marvel.com. No copyto or blindcopyto names were specified in this example. The memo from this example will have a subject of "automated memo" and the body text will be "sample body text". Finally, the memo sent by this sample will include all files in the "c:\windows" directory that have an extension of ".txt" and the file "d:\lotus\notes\notes.ini".

To install and use this program, follow these steps.
Download MAILIT2.EXE
Run MAILIT2.EXE

You may want to share your password with MAILIT2.EXE so you won't be prompted for a password whenever MAILIT2 runs. To do this, select File-Tools-User ID from the Notes menu and select Share password with Notes add ins.

http://www.helpsoft.com/A55564/Web.nsf/freesoftware.htm!OpenForm
Titel: Re:Wie bringe ich meiner Anwendung das Mailen via Notes bei???
Beitrag von: mastertom am 18.07.03 - 20:21:53
Muss ich gleich mal ausprobieren..

schon mal 1000 Dank!