shell - Creating SMTP client tosend report to list of mails in UNIX -
i want create unix application based smtp client should have configuration file containing parameters timeout , sending repeat , mail service list ,... there directory path defined in configuration file directory have files application should loop mail service list sending files in directory attachments . kinda new help script i'm using :
. var.properties in mail* ;do echo test | mail service -s `echo $subject` `echo $i` done but output + need know how attach files utilize -f , -a not working must specify direct recipients -s, -c, or -b.
you need do start for loop body (and done close it).
for in mail* ; echo test | mail service -s "$subject" "$i" done (those `echo $foo` things not idea, maintain variables within double-quotes avoid problems if contain spaces.)
shell email unix
No comments:
Post a Comment