Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am trying to send an email with attachment remotely using cywing. The code below works perfectly with a plain text email. I have tried a few methods a found on the internet, but they don't work. Please can anyone help me

Bash
#!/bin/bash

echo This is a testing email | email -s "hi" testing@yahoo.com
Posted
Updated 24-Jun-14 6:23am
v2

1 solution

Have a look here: Sending Emails with Attachments from the Command Line Revisited [^]

As per i understand you need to install 2 packages (Email and MTA). After configuration, you'll be able to send email with attachment(s).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900