LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2011, 11:33 AM   #1
kususe
Member
 
Registered: Oct 2010
Posts: 54

Rep: Reputation: 0
send mail with mutt


I tried to send mail and attachments with mutt, using bash with this syntax:

Code:
mutt -s "file" xxx.yyy@gmail.com -a /home/boss/Scrivania/smtp.java
A new screen opens where I can insert strings using a nano like interface, saving the file in /temp folder, reaching a new screen where, on the top, to send email I've to press "y". No error returning but mail is not delivered on my mailbox.

I'm not configured any mutt conf file (I think the problem is that, I've not indicated any SMTP server for my provider).

Suggests?

Thanks in advance.
 
Old 11-19-2011, 11:55 AM   #2
Jenni
Member
 
Registered: Oct 2011
Distribution: Slackware, Fedora
Posts: 158

Rep: Reputation: Disabled
To send mail with mutt, you need to set up your SMTP server or client, I personally use msmtp, so in my .muttrc I have the line:
Code:
set sendmail="/usr/bin/msmtp"
and I had to make a .msmtprc file in my home directory

How, exactly, do you get any use at all out of mutt without a config file, though?

by the way, you may want to check here: http://wiki.mutt.org/?MuttWiki
 
Old 11-19-2011, 12:14 PM   #3
kususe
Member
 
Registered: Oct 2010
Posts: 54

Original Poster
Rep: Reputation: 0
So the problem is that I've no file called ".muttrc" neither in my home_dir nor in root one.
I installed msmtp-mta (using apt-get) but any msmtp config file is created.
I tried again to send a message, but now mutt returns me a different error:
Code:
sendmail: account default not found: no configuration file available
Thanks
 
Old 11-19-2011, 12:20 PM   #4
Jenni
Member
 
Registered: Oct 2011
Distribution: Slackware, Fedora
Posts: 158

Rep: Reputation: Disabled
Here, this should help you with the config files, it's a how-to for setting mutt up with gmail, but you could adapt it for other clients too with a bit of time on the mutt wiki.

http://www.andrews-corner.org/mutt.html
 
Old 11-20-2011, 07:00 AM   #5
kususe
Member
 
Registered: Oct 2010
Posts: 54

Original Poster
Rep: Reputation: 0
I solved the problem.
I installed what you've said me.
Reading the man of mstmp, at the bottom there's an example of configuration file that I modified in according to my needs.
It simply works, except for the fact the sender is "root@debian" instead of my address.
But there's no problem because just reading well man needs.
Thank you for your interest.

Last edited by kususe; 11-20-2011 at 07:05 AM. Reason: Error
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up fetchmail and Mutt to send and receive mail from the terminal BobNutfield Slackware 40 03-31-2010 05:40 PM
Mutt and esmtp can't send mail avallach Linux - Networking 0 01-23-2007 11:19 AM
No chance to send mail with "mutt"! emil+ Slackware 1 02-17-2006 05:26 AM
mutt & esmtp send mail error michal017 Linux - Software 1 03-30-2004 03:27 AM
exim/mutt - local user can't send mail to isp lea Linux - Software 1 12-12-2002 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration