Fedora Linux Support Community & Resources Center
Old 14th May 2012, 11:38 PM
manojg Offline
Registered User
Join Date: May 2006
Posts: 187
using mailx problem


I am using Fedora 13, and postfix is running. I want to sent email to my yahoo or gmail account by using mailx. I tried this but I could not receive any mail.

subject = "Hello"
to = "mymail@yahoo.com"
message = "/tmp/message.txt"

echo "This is an test email message"> $message
/bin/mailx -s "$subject" "$to"
I also tried by running sendmail but still same problem.

Any help?

Reply With Quote
Old 15th May 2012, 12:24 AM
RupertPupkin Offline
Registered User
Join Date: Nov 2006
Location: Detroit
Posts: 6,635
Re: using mailx problem

You need to create a ~/.mailrc file with your SMTP server settings. Read the mailx man page for how to do that.
OS: Fedora 26 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 7GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote

mailx, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading MailX WarrickF EOL (End Of Life) Versions 4 27th December 2011 03:44 PM
mailx command isn't working Hiroshi Using Fedora 1 29th January 2010 02:30 AM
How to use mail or mailx bhanu08 Using Fedora 2 2nd October 2009 02:01 AM
Got a little problem with MAILX... Hlingler Using Fedora 12 7th September 2008 01:54 PM
mailx jdh239 Servers & Networking 0 14th September 2006 06:47 AM

Current GMT-time: 18:48 (Friday, 22-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat