Send Email Shell Script

I'm trying to write a script which sends a email to a specific address but it always wants a "dot and a return for the "Cc:"

The script:

mail -s"Proxy Error! $1 down at `date`" root

is there any possybility to automate a "dot" and a return ?

timan72Asked:
Who is Participating?
 
sunnycoderConnect With a Mentor Commented:
Hi timan72,

put that contents in a file and redirect input to that file .... btw you can specify cc users on the same line using the -c flag


Sunnycoder
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.