Liebe Studierende,
hier auch eine interessante Alternative fürs Verschicken von e-Mails.
Mit freundlichem Gruß
Rony G. Flatscher
-------- Forwarded Message -------- Subject: Re: E-mail / SMTP Date: Fri, 3 May 2019 05:27:03 -0700 (PDT) From: Garry Smithwick garrysmithwick@gmail.com Newsgroups: comp.lang.rexx References: a0bdf6f6-674b-4237-97d8-e81884d97a75@googlegroups.com
On Thursday, May 2, 2019 at 10:39:12 AM UTC-4, Raiko wrote:
I'd like to automate sending e-mails with attachment from a Rexx program I have created, (classic REXX, OS/2).
Does anyone have code sample to login/authenticate to a smtp-server, fill in subject, to/from, some email-text and attach a file?
You can use the SendEmail.exe program. Here is an example of using SendEmail to send via gmail:
Address Command 'SendEmail.exe' '-s smtp.gmail.com:587 -xu' user '-xp' pass '-o tls=yes' attachment '-f' from '-t' SendTo '-u' '"'subject'"' TextAppend
Download SendEmail from here:
http://caspian.dotconf.net/menu/Software/SendEmail/
-a file -cc -bcc -l logfile -v -- verbosity -q -- quiet
-o message-content-type=<auto|text|html> -o message-file=file -o reply-to=address -o username=username
There are other email exe's if you search.