Sending an email with Lotus Notes using Windows Command Line

I am using Lotus and wanted to send email via batch file, I tried following command.

*D:\lotus\Notes\notes mailto:[email protected]?subject="Hello"?body="Test"*

The issue is that instead of sending email, Lotus new message GUI opens.


This works as designed.
in browsers does the same

You could use the notes com objects if you need to send mails.


Sorry for my late answer.

Lotus always new message GUI if executing note.exe, so I write a VBScript to solve this problem.

set shell = CreateObject("WScript.Shell")
shell.run"YourLotusPath\notes.exe"
WScript.Sleep 1000
shell.run"YourLotusPath\notes.exe mailto:[email protected]?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 VBScript by cscript sendmail.vbs