How to send mail from Sun OS 5.10 version?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to send mail from Sun OS 5.10 version?
# 1  
Old 12-31-2009
Data How to send mail from Sun OS 5.10 version?

hi

I am trying to send an email from Sun OS 5.10 version.

I have tried with the following commands, but none of them are working. The machine hangs after i issue the command. Then, I have to kill the process to get back the command prompt.

Can anyone look into this and guide me? Do I have to make any configuration changes to be able to send mails? If so, please let me know, what kind of changes to be made?

Code:
mail -s "error" xyz@gmail.com

Code:
mail -s 'error' xyz@gmail.com

Code:
mailx -s 'error' xyz@gmail.com

Code:
mailx -s "error" xyz@gmail.com


Thanks in advance.
# 2  
Old 12-31-2009
After this command I expect it is waiting for you to type the mail body and finish with CTRL-D.
# 3  
Old 01-01-2010
I think you should be using "mailx" not "mail". There is no "-s" switch to "mail". As Scrutinizer points out "mail" it is usually used as an interactive command.

Basic example:

Code:
echo "Hello World" | mailx -s "Hello World Test" emailaddress.com

 
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. Ubuntu

Not able to send mail out of UbuntuBox in send mail

Hi Guys.. yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver problem is.. i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain.. Now main... (2 Replies)
Discussion started by: cmdman
2 Replies

3. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

4. 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

5. 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

6. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

7. UNIX for Advanced & Expert Users

send mail from sun box 8

Hi experts, I need to send email form my sun box but i unable to send? 1) What Basic setting i have to check? 2) We have DNS server running on other system (ISP-DNS 202.62.64.3,Primary-DNS 192.168.10.4 slave-DNS 192.168.10.1) 3) what Files need to be check, what files need to be created. ... (1 Reply)
Discussion started by: saisivakumar
1 Replies

8. Shell Programming and Scripting

Unable to send mail, on sun solaris

hi experts, I m new to the sun solaris. on our OS (sun solaris 5.8) i m trying to send mail but i not getting any mail, i have tried doing following . $mailx -s "Test" sivakumars@kesd.com But no response there no error also... pls let me know: 1) How can test sending mail through... (3 Replies)
Discussion started by: saisivakumar
3 Replies

9. Solaris

Sun Solaris version 10: cron job does not send the default message.

Hi all, Our servers were on Sun Solaris 8.1, anytime a cron job executed the user ran that job received a email of job's output. I think that the default and Administrator did not setup anything. However, when we upgraded the OS to Sun Solaris ver.10, the cron job is no longer send a email... (2 Replies)
Discussion started by: cmnguyen
2 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