Is there any way to keep Domino from sending the “Auto-Submitted: auto-generated” header with a server based agent-sent e-mail?
Subject: copy to mail.box
Instead of sending the mail, copy it to the mail.box of the server.You can prepare the mail as just for sending, but instead of doc.send use this code:
'ndb is the current server/doc the new memo
'if you don’t use mail.box, replace by mail1.box
Dim ndbMailBox As New NotesDatabase( ndb.server, "mail.box" )
Set nit = New NotesItem( doc,"Recipients","")
doc.Recipients = doc.SendTo
doc.Recipients = Arrayappend(doc.Recipients,doc.Copyto)
doc.Recipients = Fulltrim(Arrayappend(doc.Recipients,doc.BlindCopyto))
nit.isSummary = True
doc.PostedDate = Now
Call doc.save(True,False,True)
Call doc.CopyToDatabase( ndbMailBox )
Call doc.remove(True)