How to attach a file while sending an email through shell script?
0
votes
3
answers
2776
views
I used the following code to send an email via shell script.
Code:
mail -s "subject" toaddress@gmail.com <<< "Body of the mail"
It worked. But I want to attach a file while sending the mail. How to do it?
Asked by Velu
(471 rep)
Apr 30, 2019, 05:27 AM
Last activity: Feb 3, 2025, 09:01 AM
Last activity: Feb 3, 2025, 09:01 AM