Search Results

Search: Posts Made By: rajnikant
3,483
Posted By Don Cragun
OK. I understand what I did wrong, but my...
OK. I understand what I did wrong, but my problem is that when you have filenames like RFQ - Medical - 15-05- 2016.xlsx (containing whitespace characters) we have to quote the filename to keep it...
3,483
Posted By rbatte1
Are you saying that you need help to attach all...
Are you saying that you need help to attach all the files from the a directory, number unknown?

If so, then you will need a loop inside the section of you script that sends the note.

Before we...
3,483
Posted By stomp
Hi rajnikant, this answer may help you a...
Hi rajnikant,

this answer may help you a lot: https://www.unix.com/302978324-post4.html

regards,
stomp
3,483
Posted By rbatte1
What have you tried so far for research? This is...
What have you tried so far for research? This is a fairly common question with lots of threads in various forums.

This might help:- Unix multiple attachment (http://bfy.tw/6y6Y)

I hope that...
3,483
Posted By frank_rizzo
A minor tip - remove the useless use of cat ...
A minor tip - remove the useless use of cat

change
cat "$BODY_FILE" | mail -s "$SUBJECT" -a "$ATTACHMENT_FILE" "$CC_LIST"

to
mail -s "$SUBJECT" -a "$ATTACHMENT_FILE" "$CC_LIST" < $BODY_FILE
3,483
Posted By balajesuri
Use for-loop. But I suppose you would want to...
Use for-loop. But I suppose you would want to change the email body and subject per attachment. I leave it to you to figure it out.

for ATTACHMENT_FILE in /path/to/folder/* # assuming folder has...
3,483
Posted By Don Cragun
Hi Rajnikant, In the future, when we ask for...
Hi Rajnikant,
In the future, when we ask for the output you get from running a command; please show us the output as text as it appears on your screen (presumably in a fixed width font as provided...
3,483
Posted By Don Cragun
If you want to magically guess at which files in...
If you want to magically guess at which files in your Desktop directory are intended to be attachments, it won't be easy (unless you can explain and implement the magic). If you are willing to move...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy