LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
F J Kelley <[log in to unmask]>
Fri, 17 Apr 2015 18:40:33 +0000
text/plain (1955 bytes) , text/html (5 kB)
?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


________________________________

From: LISTSERV Site Administrators' Forum <[log in to unmask]> on behalf of Tunik, Arthur@DIR <[log in to unmask]>
Sent: Friday, April 17, 2015 2:12 PM
To: [log in to unmask]
Subject: Automate daily announce email with enclosure

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:
write to: mailto:[log in to unmask]
or click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1


ATOM RSS1 RSS2