In PowerShell, the cmdlet is
send-mailmessage
send-mailmessage -to $EmailTo `
-from $EmailFrom `
-subject "$Subject" `
-Credential $LiveCred `
-encoding $encode `
-smtpServer $SmtpServer `
-Body "$Message"
# -attachments $Attach
This may or may not be what you want. If this were to be run as a service, you would have to set up an encrypted pw file that was called by the "-credential" parm. Obviously you would need an SMTP server that would accept inbound mail.
--Joe
Hello,
We are running listserv classic version 15.5 (to be upgraded to 16 very soon) on Windows 2003 server (to be ugraded to 2008 or later soon).
We would like to automate a daily email to a particular announce-only list with an enclosure. I am somewhat familiar with writing windows .bat and cmd files, and with Windows task scheduler, but does anyone have (or could you point me to the relevant documentation to build) a cmd file (or powershell, although I am not at all familiar with that) that could perform this task? The enclosure will be new daily, but can have the same name and be collected from the same local subdirectory. The text of the email can also be static.
Thanks for any help you can provide!
Arthur Tunik
Web services supervisor
Department of Industrial Relations
To unsubscribe from the LSTSRV-L list, click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1
To unsubscribe from the LSTSRV-L list, click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1