Skip to main content

All Questions

Tagged with
0 votes
0 answers
177 views

script to send email with attachments

I have the file like below filelist.txt C:\Users\project\files\target1.txt; C:\Users\project\files\target2.txt; C:\Users\project\files\target3.txt; C:\Users\project\files\target4.txt; Now, the script ...
Rajesh's user avatar
  • 9
0 votes
0 answers
42 views

How can Postfix smtp server scan or calculate the md5sum of an attachment while it enters to my server?

How can a Postfix SMTP server scan or calculate the md5sum of an attachment which arrived to my server? The issue comes from a recurring attachment that is sent with different body and different email ...
superlinux's user avatar
2 votes
1 answer
293 views

How to make a valid backup for Evolution and restore it

Im working with the evolution mail client, and I have been migrating some machines. So in order to do so, the next script is runned: #!/bin/bash mkdir -p ~/path_to_backupdir/mail-backup mkdir -p ~/...
avelardo's user avatar
  • 139
1 vote
2 answers
796 views

Bash script email doesn't ignore the html part in output

LE. I killed everything html related. Declared 2 variables R and G (for red and green). My mail shows the status [0;32mGLOBAL_STATUS = OK, obvious not in colours. If I comment my variables I receive ...
Lola's user avatar
  • 11
0 votes
1 answer
359 views

Why does "mail" in a bash script run fine from command line but not when run by launchd?

This on an iMac running Big Sur. (I asked over at AskDifferent, but no one knew the answer.) This script is set up to run by launchd once a day to get battery data from a NUT (Network UPS Tools) ...
Buadhai's user avatar
  • 235
1 vote
1 answer
377 views

Retrieve mails and process each attachment individually

I want to retrieve new mails using a shell script and if the mail I just retrieved has attachments, these attachments should be saved to a folder. Before the next mail is retrieved, the attachments ...
Ripley's user avatar
  • 11
1 vote
1 answer
34 views

Script that e-mails predefined message to multiple users

I want to create a script that asks the user for his username and check if its valid by verifying the user home directory exists. If the username exists it should send an email to the user from a ...
George Helios's user avatar
0 votes
0 answers
247 views

while loop sending multiple emails when a value is repeated

$IMPALA_CONNECTION -q "SELECT * FROM tbls_oldr_30" | while read DB_NAME TBL_NAME EMPE_USER_ID CREATE_TIME EMPE_SPVR_ID; do echo -e "Table Name:$DBS_NAME.$TBL_NAME\nCREATED:$CREATE_TIME\nOWNER:$...
user3508766's user avatar
2 votes
1 answer
7k views

Send Email with table format body from a text file

I have a text file which is generated by some process. The file has 5 columns and 3 records as of now. The number of records can increase later. I want the simplest way to convert those rows and ...
Amit's user avatar
  • 21
2 votes
1 answer
3k views

Script bash, need to send mail if condition

I need to send an email only if a condition is reached, but I'm having error running this script: file='/somewhere/here/file.txt' value=$(cat "$file") if [$value < 99]; then echo "$value" | ...
Noomak's user avatar
  • 279
-1 votes
2 answers
5k views

How to read email address in text file and send email to those email address using terminal

Im a newbie for scripting. Could you guys help me on how to read email address from a text file and send a email to those email address. For example I have a emailAdd.txt Inside that txt file: ...
Dee's user avatar
  • 1
1 vote
1 answer
1k views

How to use emojis on the subject line of mail?

I am writing a shell script to setup a few servers and once it is done, it will send an email to our help desk letting us know that the server is ready to be used. I would like to use the following ...
user avatar
0 votes
1 answer
77 views

Implement a script in Solaris when usage in all filesys >90% & send a mail i dont know how to send mail from script

Script in Solaris when usage in all filesystem >90% & send a mail i don't know how to send mail from script #!/bin/bash # Outputs alert if filesystem is above 90% { for fs in $(df -hk | ...
user4485's user avatar
2 votes
1 answer
312 views

Capture of logs in HTML and send via email?

I have created a script to shutdown Oracle database but unable to send the output of shutdown while the database shutdown completes successfully. I only receive email of the echo part but not the ...
James's user avatar
  • 25
0 votes
1 answer
262 views

send email from terminal bad behaviour

I have the following script that i put togheter from the web, to send emails from terminal trough gmail. #!/bin/bash #sendGmail "FROM" "TO" "SUBJECT" "BODY" "ATTACHMENTS (optional)" FROM=$1 TO=$2 ...
kurokirasama's user avatar

15 30 50 per page