Simplicty and flexibility!


Synopsis: sendemail -f ADDRESS [options]

-f ADDRESS from (sender) email address
* At least one recipient required via -t, -cc, or -bcc
* Message body required via -m, STDIN, or -o message-file=FILE

We have had a Email functionality included in DE8 since DE8.0 but it had one big limitation and that was that it couldn't use SMTP with TLS which in reality is most modern SMTP services. 

Services like GMAIL etc will demand that you use TLS and so will most public SMTP services. We are therefore happy to include SenEmail (command line tool) in our distribution to improve the direct emailing functionality in DE8.



-t ADDRESS [ADDR ...] to email address(es)

-u SUBJECT message subject

-m MESSAGE message body

-s SERVER[:PORT] smtp mail relay, default is localhost:25


-a FILE [FILE ...] file attachment(s)

-cc ADDRESS [ADDR ...] cc email address(es)

-bcc ADDRESS [ADDR ...] bcc email address(es)

-xu USERNAME username for SMTP authentication

-xp PASSWORD password for SMTP authentication


-b BINDADDR[:PORT] local host bind address

-l LOGFILE log to the specified file

-v verbosity, use multiple times for greater effect

-q be quiet (i.e. no STDOUT output)

-o NAME=VALUE advanced options, for details try: --help misc

-o message-content-type=<auto|text|html>

-o message-file=FILE -o message-format=raw

-o message-header=HEADER -o message-charset=CHARSET

-o reply-to=ADDRESS -o timeout=SECONDS

-o username=USERNAME -o password=PASSWORD

-o tls=<auto|yes|no> -o fqdn=FQDN


--help the helpful overview you're reading now

--help addressing explain addressing and related options

--help message explain message body input and related options

--help networking explain -s, -b, etc

--help output explain logging and other output options

--help misc explain -o options, TLS, SMTP auth, and more




See Also

Send 12 September 2014

On the forum about SendEmail


Have done some tests with the use of "SendEmail" this works well using only an attachment, but when more are admitted will be no email received, Are there opportunities for multiple attachments, if so, how shall command line formulated. Taught...

Product: Dataease [{8}]FIVE. Written by Tor Nerland 13/12/14 at 09:58:09


Simples...You don't add a new -a you simply space the attachments&nbsp;sendemail -f ........... -u Test2xx -o message-content-type...

Product: Dataease [{8}]FIVE. Written by DataEase 13/12/14 at 10:52:08


Takk for raskt svar. Mitt neste spørsmål er: Er det noen mulighet for å omgå taket på 255 tegn som DE har ?.Translation for our other deserving users:Thanks for the quick answer.Next question: Is there a way to get aroun...

Product: Dataease [{8}]FIVE. Written by Tor Nerland 13/12/14 at 12:34:57


This is a question that we deliberate over a lot to be honest.The problem is that DE is 8 bit at "heart". This sound crazy and outdated, but in reality it is brilliant, because it means that it is blitzingly&nbsp;fast.With hear we mean...

Product: Dataease [{8}]FIVE. Written by DataEase 13/12/14 at 12:44:08


Adding to the last post, we firstly need to correct the "deliberate error"&nbsp;in which the arguments of the WriteToFile() function appear in reversed order :-)&nbsp; For anyone who is interested, the following coding will generate a .bat file which...

Product: Dataease [{8}]FIVE. Written by Bill Nicholson 02/01/15 at 17:36:04


I am afraid that it is too late to correct the "deliberate error" of the argument order in WriteToFile(). The problem is that it is the complimentary function to MemoWriteToFile() so it has the same argument order. Obviously you are correct, and it sh...

Product: Dataease [{8}]FIVE. Written by DataEase 05/01/15 at 09:14:44


So to the issue at hand here.... and this is a "Can't see the forest for all the threes issue!"The problem is that you call your bat file SendEmail.bat.... so you basically call your own bat file over and over and over and over again instead o...

Product: Dataease [{8}]FIVE. Written by DataEase 07/01/15 at 14:23:13


I seem to be particularly slow on this one. As ever when there's a problem one should go back to first principles.I have compiled a file called "testing.bat"&nbsp;with the following commands:ECHO onPAUSE We are now in the bat file...

Product: Dataease [{8}]FIVE. Written by Bill Nicholson 07/01/15 at 16:09:43


You have a "knack" for finding/testing the things that don't work ;-)Sorry, can't help it, just have to wind you up.I did the same as you, and realized that ExecuteFile() will not give you any Console Output i.e. the Bat is run but any...

Product: Dataease [{8}]FIVE. Written by DataEase 07/01/15 at 18:57:26


Look I am just an average Joe trying to develop some applications at DE's outer edge and I keep running up against these problems - I am not looking for them, honest. I created the simple test problem to get the hang of ExecuteFile(), couldn't make it...

Product: Dataease [{8}]FIVE. Written by Bill Nicholson 07/01/15 at 20:36:07


Trying to send mail from DataEase using SendEmail here is my script. It creates the batch file but no email received. What haven't I&nbsp;done correctly?define "retval" text .<span style="col...

Product: Dataease [{8}]FIVE. Written by BLESSED SHUMBA 18/09/15 at 13:05:08


Try running the batch file in a command window. &nbsp;That way you should see messages returned by sendemail.exe.RegardsJon...

Product: Dataease [{8}]FIVE. Written by Jon Worthington 18/09/15 at 14:56:05

What version of TLS is used by SendEmail?

HiAs of October 31, 2018, Office 365 will no longer support TLS 1.0 and 1.1.&nbsp;ReferencePlease can you confirm which ve...

Product: Dataease [{8}]FIVE. Written by Jon Worthington 26/10/18 at 11:39:02

Re:What version of TLS is used by SendEmail?

SendEmail is a third party software included in DE8 to faciliate sending emails directly from DE8. This feature will be replaced in DE9 with native IMAP/SMTP/POP support for two way email communication.SenEmail.exe is no longer supported by th...

Product: Dataease [{8}]FIVE. Written by DataEase 30/10/18 at 16:17:57

On the blog about SendEmail