Thank you Joe!

 

This may be helpful, although I am not clear on why the SMTP server would need to be identified if we are using the listserv, which already has an established connection to the smtp server for outbound mail.

 

I was thinking that it should be possible with the listserv lcmd utility.

 

Arthur

 

From: LISTSERV Site Administrators' Forum [mailto:[log in to unmask]] On Behalf Of F J Kelley
Sent: Friday, April 17, 2015 11:41 AM
To: [log in to unmask]
Subject: Re: Automate daily announce email with enclosure

 

​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, 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