Terminal and Mail.app

andehlu

this modern love
Does anyone know if its possible to get the terminal working with current Mail settings? ie check and send email using Mail form the cmd.
 
The "mail" command in Unix is not the same as your email client. I think it is mainly for network email delivery, I have no idea if it can send/recieve pop mail.

Try reading the man page on it.
 
I'm not sure if this is what your looking for or not, but I have configured pine to get e-mail from my .mac account. There are some other unix mail clients out there that I'm sure could be made to work, I've just never looked into them much.
 
Sending mail using the Terminal should work out of the box. Just pop up the Terminal and type "mail to@host.com" and enter a Subject, the text and close with a dot in a single line. Work fine for me. And instead of a "real" mailbox you can use a username like "mail root" to put it in roots unix mailbox.

You can receive this internal just by typing "mail" and then the number of the mail you want to read...

Using it for receiving mail from outwards is a bit more complicated because you have to set up postfix (sendmail) to handle the mail for you.
 
rbuenger said:
mail to@host.com" and enter a Subject, the text and close with a dot in a single line.

Im not too sure if im doing this correct. I get the subject prompt, I enter a subject then a period. new line period. new line period. then i hit enter and it sits there..not moving. Any ideas?
 
if you want to send email from the shell non-interactively you can go:
Code:
$ echo "here is my message" |mail -s "here is my subject" [email]person@whogetsemail.com[/email]
this i nice for shell scripts.
 
Back
Top