Visit Our UNIX and Linux User Community


how to send mail from server to client's email-id


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to send mail from server to client's email-id
# 1  
Old 01-18-2007
how to send mail from server to client's email-id

i want to send email from server to the client's email-id. server is solaris. please help me out.i want to send mail to the email-id not to the var/spool/mail.

Last edited by parmeet; 01-19-2007 at 01:49 AM..
# 2  
Old 01-18-2007
Code:
[sysgate@hostname ~]$ mail sysgate
Subject: test
test
.
Cc:
[sysgate@hostname ~]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/sysgate": 1 message 1 new
>N  1 sysgate@hostname.  Thu Jan 18 15:26  16/764   "test"
& Interrupt
&

If I did not understand you correctly, please put some more information on what exactly you are trying to achieve.

Last edited by sysgate; 01-18-2007 at 10:30 AM.. Reason: putting CODE
# 3  
Old 01-19-2007
i need to send mailto the email-id not the usuall mail at usr/var/mail.




QUOTE=sysgate]
Code:
[sysgate@hostname ~]$ mail sysgate
Subject: test
test
.
Cc:
[sysgate@hostname ~]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/sysgate": 1 message 1 new
>N  1 sysgate@hostname.  Thu Jan 18 15:26  16/764   "test"
& Interrupt
&

If I did not understand you correctly, please put some more information on what exactly you are trying to achieve.[/QUOTE]
# 4  
Old 01-19-2007
You need to be more specific. What "client" are you talking about?

Email in UNIX/Linux is generally stored in /var/spool/mail - if you email a user on the UNIX server, the mail will end up in that directory.
# 5  
Old 01-19-2007
use mailx command

cat <filename>|mailx -s "subject" abc@xyz.com
# 6  
Old 01-19-2007
UUoC

mailx ... < filename

Cheers
ZB
# 7  
Old 01-19-2007
Quote:
Originally Posted by nathan
You need to be more specific. What "client" are you talking about?

Email in UNIX/Linux is generally stored in /var/spool/mail - if you email a user on the UNIX server, the mail will end up in that directory.
sir,
clients are those nodes which can run processes on the server.
now whenever any process is over i need to send mail from the server side to the email id of the person who is logged on that node.
we have the database of the nodes and their email-id's.
so the task is how can we send the email from server to the email-id.
 

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. Red Hat

Send email using mail

I need to send an email from linux using mail command. The problem is I can't hardcode the to: emailaddress, The email address is saved in a recipient.lst file on the server in this format: To: a@b.com Thanks a lot. il_labor (1 Reply)
Discussion started by: il_labor
1 Replies

3. Linux

Send email using mail

I need to send an email from linux using mail command. The problem is I can't hardcode the to: emailaddress, The email address is saved in a recipient.lst file on the server in this format: To: a@b.com Thanks a lot. il_labor (1 Reply)
Discussion started by: il_labor
1 Replies

4. UNIX for Dummies Questions & Answers

Configuring mail to send email from server to client

Hi, I want to send an email from server to my gmail account for all critical messages reported in the server. Kindly help me in configuring the same. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 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

new to ldap, send email to a ou or group, and see a list from email client

hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version). i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010). a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies

7. Solaris

Configuring send mail client in solaris 10

Dear all, We have SMTP server in our organization & i want to send e-mails from solaris machine using sendmail ... in which file i need to put the smtp server ip, username & passwd.. kindly help ....... (4 Replies)
Discussion started by: vishwanathhcl
4 Replies

8. Solaris

Send an email from Solaris using Linux email server

Hello everyone I have a problem and I need your help: I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server. I need send an email from Solaris servers preferably using Centos4 email server. I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies

9. UNIX for Advanced & Expert Users

How to allow roaming client to send mails via its mail server

Hi folks OS- Debian Etch Xen postfix courier perdition perdition-mysql MySQL Single public IP Dom0 - Debian Etch workstation Server-1, domU1 for routing with perdition and perdition-mysql installed Server-2, domU2, mail server for domain-A Server-3, domU3, mail server for... (2 Replies)
Discussion started by: satimis
2 Replies

10. Shell Programming and Scripting

How to send attachment to web-based email client using mailx

hi, i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment. the code i am using is as follows, uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com does anyone... (1 Reply)
Discussion started by: randomcz1
1 Replies

Featured Tech Videos