// Domino Server
$server_name = "StuNt01/streamserve";
// The Lotus Notes database where you want to create a new document
$database_file = "AGFax.nsf";
// Your password
$password = "streamserve";
// Create a connection to Lotus Notes
LotusNotesConnect($server_name, $database_file, $password);
// Create a new document in the database.
LotusNotesAddNote();
// Set the field NFaxno to 123456789 in the new document.
LotusNoteSsetText("NFaxno","123456789");
//This will only be done once, i.e in Runtime mode not in Preproc
if (preproc()=0) {
$ret = LotusNotesAttachFile("C:\Files\My_file.pdf", "True");
}
LotusNotesdisconnect();
|