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.
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.
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
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
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
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
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
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!!
THANKS!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
He was Super Helpful. Can I keep him? (j/k)
THANKS!!!
:-D
THANKS!!!
:-D
Call memo.Save(True,False)
at the end.
Regards,
Scott