Session s = NotesFactory.createSession();
Registration reg = s.createRegistration();
reg.switchToID(sender.id_file, sender.password);
//using user's mail files on local
Database db = s.getDatabase("",sender.usernsf);
Document memo = db.createDocument();
memo.replaceItemValue("Form", "Memo");
....
.... //input mandatory data for sending mails, for example, send to,
subject, content....
.....
memo.send(v_to);
//replicate with mail home server
db.replicate(sender.repserver)
Then, this mail will delivery to the outgoing mail on local as normal.
However, it doesn't send to home server and keeps it there.
Anybody can help or advise me how to replicate outgoing mail (i.e.
mail.box) on local with home server? or How to tigger the replication
tag and press the "start" button in order to send mail out.
Thanks in advance.
Jess
Have you checked the client mail settings? When you compose a new memo
locally, i.e. using a local mail file, and send it, what happens? Is the
database the user is accessing local or on a server?
I suppose it's possible to get a handle to the local "mail.box" using
getDatabase and use the "replicate" method of Database.