Reference: Sendkeys from command prompt
Solve this question: send lotus email with command and do not need to click any button.
Write a vbs script:
set shell = CreateObject("WScript.Shell")
shell.run"YourLotusPath\notes.exe"
WScript.Sleep 1000
shell.run"YourLotusPath\notes.exe mailto:username@abc.com?subject=Test?body=Test?attach=test.txt"
WScript.Sleep 2000
shell.SendKeys"{TAB}"
shell.SendKeys"{ENTER}"
shell.SendKeys"^(+{ENTER})" <== Ctrl+Shift+Enter, which is lotus "send" shortcut key.
WScript.Sleep 1000
shell.SendKeys"{ENTER}"
Then, just execute the vbs script by cscript sendmail.vbs