LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 12:33 PM   #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, 12:55 PM   #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, 01: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, 01: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, 08: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 08:05 AM. Reason: Error
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:40 PM
Mutt and esmtp can't send mail avallach Linux - Networking 0 01-23-2007 12:19 PM
No chance to send mail with "mutt"! emil+ Slackware 1 02-17-2006 06:26 AM
mutt & esmtp send mail error michal017 Linux - Software 1 03-30-2004 04:27 AM
exim/mutt - local user can't send mail to isp lea Linux - Software 1 12-12-2002 08:31 AM

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

All times are GMT -5. The time now is 03:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration