Parameters for Sendmail for Lotus Notes
You can call Sendmail with a lot of different parameters.
Following parameters are availaible (sorted by type)
RECIPIENTS
-to, --sendto
name(s) to send to (use ; for multible)
(eg.: "-to:name1@x.y;name2@x.y;CN=Joe Doe/OU=Sales/O=ACME")
-cc, --carbonycopy
name(s) to send a carboncopy (use ; for multible)
(eg.: "-cc:name1@x.y;name2@x.y;CN=Joe Doe/OU=Sales/O=ACME")
-bc, --blindcopy
name to send a blindcopy (use ; for multible)
(eg.: "-bc:name1@x.y;name2@x.y;CN=Joe Doe/OU=Sales/O=ACME")
CONTENT
-su, --subject
subject of the mail
(eg.: "-su:This is my subject of the mail!")
-tx, --text
add text to the body text of the mail
(\n are new lines, \\ are backslashes)
-fo, --font
modify font and style within the mail body
(only for the following text parsed with (-tx) or (-ti))
p......initialize (font=4, color=0, size=10, plain)
same as "-fo:f2c0s10b-i-u-o-r-d-"
f......font[0..4] (default = 4)
0=Roman family, 1=Helv family, 2=Unicode
3=Arial family, 4=Typewriter family
c......color[0..243] (default = 0)
(see documentation - "colors")
s......size[1..255] (default = 10)
b/b-...bold(on/off)
i/i-...italics(on/off)
u/u-...underline(on/off)
o/o-...strikeout(on/off)
r/r-...superscript(on/off)
d/d-...subscript(on/off)
-re, --remark
comment - good for commenting -cf files with a lot of format and text
(eg.: "-re:The next line displays the header of our...")
-ti, --textimport
import file(s) as plain text into your body text of the mail
and take care of the font settings (see -fo)
(is done via own function)
ti[wr]:filename...w=add the filename to the body, r=recurse directories
filename:...(wildcards ? and * are allowed)
-it, --importtextfile
import file(s) as plain text into your body text of the mail
(is done via File|Import|Plain ASCII Text)
it[wr]:filename...w=add the filename to the body, r=recurse directories
filename:...(wildcards ? and * are allowed)
-ab, --attachfilebody
attach file(s) to your mail (attach within the body)
at[wr]:filename...w=add the filename to the body, r=recurse directories
filename:...(wildcards ? and * are allowed)
-at, --attachfile
attach file(s) to your mail (attach to the document)
at[wr]:filename...w=add the filename to the body, r=recurse directories
filename:...(wildcards ? and * are allowed)
-im, --importfile
!!! ATTENTION - EXPERIMENTAL OPTION @@@ !!!
import file(s) into your body text of the mail (eg.: html, jpg, bmp)
im[wr]:filename...w=add the filename to the body, r=recurse directories
filename:...(wildcards ? and * are allowed)
DELIVERY OPTIONS
-rr, --returnreceipt
return receipt - 0 or 1 (default "-rr:0")
0=no, 1=yes
-pc, --preventcopy
prevent copying (no clipboard, no printing) - 0 or 1 (default "-pc:0")
0=no, 1=yes
-ip, --importance
importance - 1,2 or 3 (default "-ip:2")
1=low, 2=normal, 3=high
-dp, --deliverypriority
delivery priority - L,N or H (default "-dp:N")
L=low, N=normal, H=high
-dr, --deliveryreport
delivery report - B,C,T or N (default "-dr:B")
B=only failure, C=confirm delivery, T=trace path, N=none
-rt, --replyto
use a specific "reply to" address
(eg.: "-rt:main.office@yourdomain.com")
-fr, --sentfrom
use a specific "send from"
(eg.: "-fr:maillist@yourdomain.com")
-si, --sign
sign the mail you send
(eg.: "-si")
-ec, --encrypt
encrypt the mail - stop if an error occurs
(eg.: "-ec")
-ew, --encryptwarn
encrypt the mail - just warn if an error occurs
(eg.: "-ew")
USERMANAGEMENT & PASSWORD
-id, --idfile
use this as user id file
(eg.: "-id:h:\user.id")
-sv, --login_as_server
use the id file for the server (KeyFilename=ServerKeyFilename)
(eg.: "-sv")
-pw, --password
pass your password to the program
(eg.: "-pw:mypassword")
-pf, --passwordfile
get the password from a file
(eg.: "-pf:g:\mypassword.txt")
LICENSE OPTIONS
-ky, --registredkey
pass your license key to the program
(eg.: "-ky:1234abcd")
-kf, --keyfile
check this file for valid license keys
(eg.: "-kf:g:\keys.txt")
TRANSPORT & SAVING
-mb, --routermailbox
put the memo in this router box (default:mail.box@MailServer)
(eg.: "-mb:mail2.box@SERVER/ACME")
-mf, --mailfile
use that file as users mailfile (default:Mailfile@MailServer)
(eg.: "-mf:mail/myshortname.nsf@SERVER/ACME")
-sa, --savemail
save the mail in your mailfile
(you'll find it under "sent")
(eg.: "-sa")
-se, --savemailencrypt
save the mail in your mailfile an encrypt it with the used user id
(you'll find it under "sent")
(eg.: "-se")
-mm, --multiblemailboxes
enable/disable multible mail boxes
0 or 1 (default "-mm:0")
0=no, 1=yes
MISC OPTIONS
-? , --help
display this help page
-in, --inifile
use this as notes.ini
(eg.: "-in:g:\notes.ini")
-cf, --cfgfile
use file for input parameters
if you call sendmail directly from command line,
you can only pass ~1000 bytes as parameters
(eg.: "-cf:g:\parameters.txt") - also see "-re:" parameter
-np, --notesprogram
use the notes program of a specific directory
(eg.: "-np:c:\lotus\notes6")
-dg, --debuglevel
set the debuglevel - more information for finding errors
(eg.: "-dg:0xffff")
-an, --convertansii
convert to/cc/bc/su and tx parameters to ANSII Chars
(eg.: "-an")
-sf, --statusfile
statusfile - result of sendmail is written to this file
(eg.: "-sf:h:\sendmailresult.txt")