Losing" stored form when running as a scheduled domino agent

hi. I am running Domino R6 (6.0.2CF2).I have a java agent which sends out documents using a stored form. If I initiate the agent via my notes client,

the agent works properly and the form being used is correct.

However, if I schedule the agent on a domino server (same db), the form that gets used is the default “Memo”

and the formatting, etc is lost.

code snippet

==============

doc.replaceItemValue(“Form”, “formName)”;

doc.send(true, “eMailAddress”);

==============

just as a test, I changed my doc.sent(true, emailAddress) to a doc.save and the correct form is used for that document.

It changes only on a send.

For the send, here is the log when the mail goes out…I’m not sure if it has anything to do w/ the 'CD to Mime Conversion process" ??

Thanks.

Router: Transfer to server xx.xx.xx is ready with 1 messages

12/01/2003 11:14:52 AM Router: Starting transfer thread 00000005

12/01/2003 11:14:52 AM Router: Transfer thread 00000005 searching for work

12/01/2003 11:14:53 AM Router: [#####] Transferring mail to domain xx.xx.xx (host xx.xx.xx [nn.nn.nn.nn]) via SMTP

12/01/2003 11:14:54 AM Begin CD to MIME Conversion(Process: Router (000009E4:00000005), Database: C:\Lotus\Domino\Data\mail.box, Note: 00000A1A)

12/01/2003 11:14:54 AM End CD to MIME Conversion(Process: Router (000009E4:00000005), Database: C:\Lotus\Domino\Data\mail.box, Note: 00000A1A)

12/01/2003 11:14:59 AM Router: Transferred 1 messages to xx.xx.xx (host xx.xx.xx) via SMTP

12/01/2003 11:15:02 AM Router: Message 0059402C transferred to xx.xx.xx for “toEmailAddress” from “signingAgentID” ##### Size: 58K via SMTP

Subject: Losing" stored form when running as a scheduled domino agent

Just changing the FORM field will not actually store the form in the document until it’s saved. So the document you send won’t contain the stored form, and the recipient will use the default Memo form.

I think you’ll need to actually save the document to store the form inside, and then send it.

If you don’t want to modify the original document, I suggest making a copy, save and send that document, then delete it.

Subject: RE: Losing" stored form when running as a scheduled domino agent

Thanks for the response. I tried your suggestion, but had the same results. Again, the doc’s save correctly, but get converted to the default “Memo” form when sent. Any other thoughts? I think it has something to do with the “CD to MIME conversion”, but not sure how to solve.

Subject: RE: Losing" stored form when running as a scheduled domino agent

If your mail is being converted to MIME (i.e. Internet e-mail format) then you cannot use a stored form.

Subject: RE: Losing" stored form when running as a scheduled domino agent

Thanks again Graham (think I"m getting closer here)…it is definately doing the CD to MIME conversion, I’m just not sure why and I don’t want it to.I have read a few other posts regarding the NAB and the receiver’s Person doc settings…in my case its set to ‘keep in sender’s format’.

not sure if i can control it to NOT convert the message and keep in notes format.

Subject: RE: Losing" stored form when running as a scheduled domino agent

I suggest you start a new thread on Why you mail is being converted. Once you fix that, your stored forms should work.

(I’ve no experiance in using MIME in e-mails so I can’t really help on that point)