Fedora Linux Support Community & Resources Center
  #1  
Old 15th May 2012, 12:38 AM
manojg Offline
Registered User
 
Join Date: May 2006
Posts: 185
linuxfirefox
using mailx problem

Hi,

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.
Code:
#!/bin/bash

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?

Thanks.
Reply With Quote
  #2  
Old 15th May 2012, 01:24 AM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,720
linuxfedorafirefox
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 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
Reply

Tags
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 03:01 AM
Got a little problem with MAILX... Hlingler Using Fedora 12 7th September 2008 02:54 PM
mailx jdh239 Servers & Networking 0 14th September 2006 07:47 AM


Current GMT-time: 21:22 (Wednesday, 26-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Mont-Royal - Santo Antonio da Platina Travel Photos - Mucumpiz Photos