LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   want to send value of variable in mail as a body of mail (https://www.linuxquestions.org/questions/solaris-opensolaris-20/want-to-send-value-of-variable-in-mail-as-a-body-of-mail-661854/)

dningale 08-10-2008 05:50 PM

want to send value of variable in mail as a body of mail
 
Hi,

I want to send value of a variable in mail as a body of mail.

example: d=568

in mailbody 568 should come.

Thanks,
Ingale D. N.

billymayday 08-10-2008 06:05 PM

I don't know for sure in Solaris, but in linux you could

echo $d | mail -s subject_title user_to_receive_message

dningale 08-10-2008 06:19 PM

thank you
 
Thank you I will try this out and let you know.......

dningale 08-10-2008 06:20 PM

Great it works....
Thanks a lot...

dningale 08-10-2008 06:53 PM

How to add the value of variable in mails subject line?
 
How to add the value of variable in mails subject line?

Thanks,
Ingale D. N.

billymayday 08-10-2008 07:05 PM

mail -s $d user

dningale 08-10-2008 08:54 PM

yes
 
yes, it works ...

Thanks


All times are GMT -5. The time now is 12:55 PM.