Script on how to create an email with a table

Hi guys

I need to include info in the body of an email as so


Name:  James Wood

EMp#: 123

Sometext:   More info etc......

Should this be done by creating a memo form and adding a table with the text and field names and filling via script or by script entirely

This is going to be an automated mailing process based on staus of the form

REgards

James
imjameswAsked:
Who is Participating?
 
HemanthaKumarConnect With a Mentor Commented:
Still the same formula can be used

Remarks := "Name:  " + USERFIELD + @newLine + "EMp#: " + EMPNO + @newLine +  "Sometext:  " + SomeText ;

@MailSend(SendTo;"";"";"Subject";Remarks;""; [ENCRYPT])
0
 
HemanthaKumarCommented:
It could be done either by formula or script..

Formula is much easier

Remarks := "Name:  James Wood

EMp#: 123

Sometext:   More info etc......
" ;

@MailSend(SendTo;"";"";"Subject";Remarks;"")

~Hemanth
0
 
qwaleteeConnect With a Mentor Commented:
You ca do it with the form combined with [MailForward].  Or you could create HTML for it and use the import function of NotesUiDocument.  Either way, you are going to probabkt have to open the memo form and use the sloppy front-end routines to modify fields.

The other way is to set up the form with a table and SendTo and Subject fields.  Set up the form as store-form-in-document, and a simple @MailSend or [MailSend] will do it (no parameters needed with either).
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
imjameswAuthor Commented:
I need the fields to fill in automatically

It does not actually require a table just the format of

xxx        yyyyyyyyyy
xxx         yy

The memo also has to be encrypted when sent as well

0
 
imjameswAuthor Commented:
How do I encrypt in script
0
 
imjameswAuthor Commented:
Got it
emailDoc.EncryptOnSend = True
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.