Mail in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mail in UNIX
# 1  
Old 03-15-2010
Mail in UNIX

I tried this last year, but I want to try it again. I'd like to learn how to send mail messages in UNIX (BSD on my iMac.) I've tried mail (email address) then the message and control D to send, but it doesn't go anywhere; the cursor just flashes.

I've also tried mail with a local file name, but nothing as well. Can someone tell me how mail is supposed to work, because I can't figure this out.
# 2  
Old 03-16-2010
Do you mean you want to use the mail command or some thing else ?
# 3  
Old 03-16-2010
You need to give the mail with user name
Code:
mail thillaiselvan

Then it will prompt for subject.
You need to give it. Then give ctrl+D.
Then it will ask for message.
You need to enter it and give ctrl+D.
Then it will ask for cc address.
If not required means just give ctrl+D
It will send the mail.

May I know to which address you tried to send mail?

---------- Post updated at 01:18 PM ---------- Previous update was at 01:12 PM ----------

If you want to send the file contents you can use like this way
mail user_name < file
# 4  
Old 03-17-2010
I want to send an email message to anyone. I tried to send it to my gmail account, but it didn't go.

Yes, abucker, I want to send an email from the terminal application. I should be able to send it to anyone, right? Even someone out on the net, not necessarily at another unix terminal.

The man pages for mail say to just type mail then the email address you want to send it to, then the message, then cntrl-d to send, which I did. This is what I tried:

mail xxxx@gmail.com(my email address, which is on the gmail server), then return
subject:test, <return>
(then the text here)
then cntrl-d to send.

nothing happens. what am I doing wrong?
# 5  
Old 03-17-2010
May be your mail configuration settings not allowed to send mail to outside.(gmail or whatever it is). You check whether the mail is sending to the users within your organization.
# 6  
Old 03-18-2010
Can you tell me how to configure my mail settings? I've never done it and the book didn't say anything about how to do it.

I'm not working at an organization; I'm just at home. I tried sending a mail to myself; I typed mail then 'christopher' and it send the message fine the first time, but now when I try it I get nothing. I tried mail Christopher (which is the name of the user account) and nothing as well.

Is there somewhere I can go to figure out how to configure my mail? I've been reading something about a Mail Transfer Agent, but I'm not sure what that is.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

3. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

4. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

5. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

6. UNIX for Dummies Questions & Answers

Unix mail to personal mail, Strange behavour

Hi. I am running a script on solaris 10 and mailing it to my personal email. the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account. /network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com the sript... (2 Replies)
Discussion started by: k00061804
2 Replies

7. Shell Programming and Scripting

Mail attachment with unix mail

Hi Could someone help me with the details on how to send an attachment through mail in unix. I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps. Regards Ajay (2 Replies)
Discussion started by: ajaykumarboyana
2 Replies

8. UNIX for Dummies Questions & Answers

UNIX to find the unix mail id

Hi all, Need you assistace. is there any command available in UNIX to find the unix mail id ? tried using 'mail' but no use kindly helpe me out. Thanks in advance. manas (2 Replies)
Discussion started by: manas6
2 Replies

9. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

10. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question