Search code examples
lotus-noteslotus-dominolotusscript

Button in Lotus Notes that automatically forwards en email with attachment


I'm trying to make a button in IBM Notes that automatically forwards emails with attachments to a specific address.

I have looked at 2 previous examples on this website but none of them are working for me and I get the mail forwarded to myself.

Can anyone help?

The 2 codes I've tried are:

_From := @Text(From);
@Command([MailForward]);
@Command([EditNextField]);
@Command([EditInsertText]; _From);
@Command([EditGotoField]; "Body");
@Command([EditInsertText]; "Your text" + @NewLine + "goes here...")

and

FIELD SendTo:= "[email protected]" ; 
@Command( [MailForwardAsAttachment] )

The IBM Notes version I'm using is # 9.

Thank you


Solution

  • Use the first example and change it to:

    @Command([MailForward]);
    @Command([EditInsertText]; "[email protected]");
    @Command([EditGotoField]; "Body");
    @Command([EditInsertText]; "Your text" + @NewLine + "goes here...")
    

    Replace the email address in second code line with your specific address and adapt the remaining lines too.