3
votes
1answer
90 views

How to send an email using command line?

Here's what I have: cat UserReport.txt | mail -s "TestSubject" "nospam@gmail.com" It's a small file, much smaller than a picture so it should send almost instantly. Though I receive nothing. I ...
0
votes
1answer
69 views

email body empty when I use “echo” in mutt commandline mode with root account

I have use mutt to send mails. It works fine when I use my own user account: e.g. echo "foo bar" | mutt mymail@mymail.com However, when I put the above command in /etc/lightdm/lightdm.conf (I want ...
0
votes
1answer
825 views

Crontab and sSMTP

My server is Ubuntu 12.04.3 Cron jobs are working fine. I can send emails through command line, either using mail, ssmtp or sendmail. I have set the correct email address on top of the crontab -e ...
0
votes
1answer
53 views

why Ubuntu command prompt is not prompting after executing the mail command?

uuencode text.txt | mail -s "hai" "abc@gmail.com" < body.txt after executing this command, terminal is blank. It is not prompting for next command. I have to press ctrl+z to return to terminal. ...
1
vote
1answer
435 views

Shell Script Unable to send execution time via email

I wrote a shell script which calculates the execution time of itself but the problem I'm facing is its not able to send the time difference via email. Please Help. Here is the Script #!/bin/bash ...
4
votes
5answers
5k views

cron.daily jobs not running

I created 3 daily cron jobs to run. Below are the three that are placed in etc/cron.daily rkhunter.sh #!/bin/sh ( rkhunter --versioncheck rkhunter --update rkhunter --cronjob --report-warnings-only ...
0
votes
2answers
2k views

Bash Script for custom message

I'm trying to send an email using bash script. I tried using the following in the bash script with no success as I execute the script it asks for CC: #!/bin/bash recipient="tarun@gmail.com" mail -s ...
1
vote
2answers
4k views

Mutt runng from Crontab

I have a bash script that is sending an email through command line mutt. This bash script is being called from a cron job (setup using crontab -e because of permissions needed to do all items in the ...
2
votes
1answer
523 views

How do I parse emails with Mutt?

How would I go about parsing new message subject lines non-interactively using Mutt? Mutt is already configured and fetches mail from our Exchange server. What I'd like is for an action to be ...
4
votes
1answer
404 views

Access Exchange 2003 mailbox from Terminal

How do I check an Exchange mailbox for new mail from the command line? I'm at a complete loss here.
0
votes
1answer
3k views

Why am I not able to send an email from command line

This is what I did (as per a few discussions on this website) mail -s "hi" addressee@email.xyz < test.txt Where text.txt has the message. I checked to see if mail did exist and it does at ...
1
vote
2answers
355 views

Commandline email to internal web mail server

I have a few number of ubuntu pcs, whom I want to mail me some kind of log on daily basis. The problem is that these pcs have access only to the internal webmail (of my campus) and all I can find on ...
3
votes
1answer
3k views

How can I read system mail on my admin account?

On a new server running lucid, I get "you have new mail" in my admin account. However, I don't have a mail command available to read it. Do I need to install it manually (or mutt, etc.), or is a mail ...
2
votes
1answer
72 views

Mailbox monitor and scripting

This is something I haven't done before... So not sure what some good resources or a solid starting point would be. What I want to do... is on my Ubuntu Server 10.10 box, I need to setup a mailbox... ...
5
votes
1answer
788 views

Can I “speak IMAP” and review my actual mail quota?

I'm trying to troubleshoot a frustrating inbox quota issue. Thunderbird says my inbox is 80% full. My ISP says it isn't. We made some tweaks and I should have 2G available (it had been "unlimited"). ...
89
votes
14answers
189k views

How to send mail from the command line?

How to send mail from the command line?
0
votes
2answers
816 views

command line SMTP client such as cleancode's email

I'm looking for a command line like cleancode's email program which would allow me to send emails from the command line without setting an MTA (and would allow me to use separate accounts for each ...
11
votes
2answers
13k views

How can I email an attachment from the command line

Is it possible to email attachments from the command line? If possible, I'd like something as simple as: mail -a myfile.txt -t me@example.com -s "Here's my file"