Link to home
Start Free TrialLog in
Avatar of oreilm
oreilm

asked on

Future Mail

I read the response from DButler to use the command "Select Mail message action and copy copy(or type in) the To, Subject and body."

Instead of "Select Mail Message", I used the command "Send Mail".  This works just fine.

But question is this:  How do I get the agent to keep a record of the mail that has been sent?  (it doesn't show up in the Sent Folder).

Thanks.

Avatar of scottrma
scottrma

I am not sure what the reference that DButler gave you was, so this may be out of context, but perhaps if it was a LotusScript agent, add something like:

Call memo.Save(True,False)

at the end.

Regards,

Scott
Avatar of oreilm

ASKER

Thanks for response Scott.  When adding that Call memo.Save(True,False) at the end, I received the error message: AN OPERATOR OR SIMICOLON WAS EXPECTED BUT NONE FOUND 'memo.save'.

What I'm trying to do is copy a draft into a special folder and then send that draft at a future scheduled time.  After the draft is sent it should somehow be converted to a Sent Memo moved to my "sent" folder.  The draft should disappear from the special folder and the draft folder.

What I have succeeded in doing is getting the draft sent but it still remains as a draft in the special and draft folders after it is sent.


Thanks,
Monique
Sounds like your agent (?) uses formula language rather than LotusScript. To get the mail to be saved, add a SaveOptions field with value "1":

FIELD SaveOptions := "1";

before the line that sends the mail. If it still doesn't move the mail from the Drafts view to the Sent view, then add a PostedDate field to the document:

FIELD PostedDate := @Now;

before the line that sends the mail. If that still doesn't work, then please post the complete agent code here so that we can inspect it. Thanks.

Regards,

Scott
Avatar of oreilm

ASKER

Scott, this worked great!! The document was added to the Sent View (I then added "remove from folder" to get it out of the special folder).

Only one more question.  When viewing it in the Sent view, the date shows up literally as @Now.  Am I getting too picky in asking for a way for it to display the actual sent date?

Thanks a bzillion for your help.

Monique
Avatar of oreilm

ASKER

Please pardon my ignorance (and tenacity).  Using the free-form formula method instead of the Lotus pre-set scripts, I was able to get this to work smoothly. I've sent some snap-shots via return e-mail in case my description isn't clear.  No way would I have figured this stuff out without your help (I was near to pounding my head on the desk.

THANKS!!
ASKER CERTIFIED SOLUTION
Avatar of scottrma
scottrma

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oreilm

ASKER

He was Super Helpful.  Can I keep him?  (j/k)  

THANKS!!!
:-D