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
"Tunik, Arthur@DIR" <[log in to unmask]>
Fri, 17 Apr 2015 18:46:15 +0000
text/plain (2878 bytes) , text/html (12 kB)
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]<mailto:[log in to unmask]>> on behalf of Tunik, Arthur@DIR <[log in to unmask]<mailto:[log in to unmask]>>

Sent: Friday, April 17, 2015 2:12 PM

To: [log in to unmask]<mailto:[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:

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