[SOLVED] Is it possible to send an email to abc123@gmail.com directly from Konsole?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you are asking if it is possible, in general, to send an email from the console then yes. People sent email that way for many years before we got modern web-based email and GUI clients.
The more important question is how you want to send this email and from what address. How you actually send out the email will depend on whether or not you are trying to send it from a valid email address, and where that email is hosted. For instance, sending email without a return address is easy enough, but if you are looking to route outgoing email through GMail for example, that will take additional work.
what do you mean by 'directly'?
there is mutt and pine. or do you want to just type in a command?
I think I read somewhere that you can type something like 'mail' or maybe it was 'sendmail' and an address like abc123@gmail.com and then you are asked for subject then body then it goes.
I think I read this in a book so I'm trying to find it now.
If you want a nice console email client, check out alpine.
If you want something that you can script easily, just use the mail command. It just goes as 'mail some.address@example.com' and pipe the message in through stdin. You can set the subject via command line arg, or just include the header in the piped text. 'man mail' will give you all the details you need.
Last edited by octoberblu3; 03-02-2011 at 08:15 PM.
root@darkstar:/home/rob# sendEmail -f robert.thompson@gmail.com -t robert.thompson@gmail.com -u test -m testsendEmail
Mar 03 11:21:41 darkstar sendEmail[8314]: ERROR => Connection attempt to localhost:25 failed: IO::Socket::INET: connect: Connection refused
root@darkstar:/home/rob#
Then I tried the example:
Code:
root@darkstar:/home/rob# sendEmail -f robert.thompson@gmail.com -t robert.thompson@gmail.com -s smtp.gmail.com:587 -xp xxxxix -u "Test email" -m "Hi buddy, this is a test email."
Mar 03 11:31:12 darkstar sendEmail[8717]: ERROR => Received: 530 5.7.0 Must issue a STARTTLS command first. wt14sm916625icb.4
root@darkstar:/home/rob# STARTTLS
bash: STARTTLS: command not found
Is there some sort of set up that I must do first?
Thanks,
Last edited by Robert.Thompson; 03-03-2011 at 10:35 AM.
for SendEmail, you'll have to install a couple of perl modules for tls support:
Quote:
TLS Support
Starting with sendEmail v1.54, TLS support is included! To enable TLS support simply install the Net::SSLeay and IO::Socket::SSL perl modules. The following new command line parameters are now available:
-o tls=auto This is the default, TLS will be used if possible.
-o tls=yes Use this to require TLS for message delivery.
-o tls=no Use this to disable TLS support.
If TLS is giving strange errors, try upgrading the Net::SSLeay and IO::Socket::SSL perl modules. Please do NOT report TLS bugs unless you have already done this! If you're running up-to-date versions of these modules and you are getting TLS errors, your detailed bug report will be appreciated. Yes, you can finally use SendEmail to send messages to your GMail account
here's an example that I've got in a cron job to remind me to call m'dad daily....
Mar 03 12:00:32 darkstar sendEmail[9936]: NOTICE => Authentication not supported by the remote SMTP server!
Mar 03 12:00:32 darkstar sendEmail[9936]: ERROR => Received: 530 5.7.0 Must issue a STARTTLS command first. i2sm932965icv.3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.