man mailx says
To put a <control-d> into a file you can use an echo command, in VI do Insert and the type <control-v><control-d><esc>, in Emacs <control-q><control-d>. Oh, on the command line it is <control-v><control-d> for Bash under Gnome.
As an experiment try...
Then do the mailx command. Still getting the email as an attachment? Try the above and then a pipe.
--- Added 20100505 21:28
Hey, I just tried your mailx command and it worked fine so you do not need a <control-d> in the file. I bet your email is not getting out as panyam suggested. You can examine /var/log/maillog for failures also. I can send mail to myself on my machine but trying to leave my network I get an error about unauthorized relay, which I would expect. In order to get off your machine you need to configure your Mail Transfer Agent (MTA).
Hi,
I am executing the below commands, i didnt get any error and send mail not recevied by respective user. Please help
cat a.txt | mailx -s "config" xxx@abc.com (4 Replies)
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)
Hi i am automating my task and i got an issue.
what i want to do is when certain condition is met the email should be sent to the user.
and the user should presume that the email has comes from
like support@xyz.com
The scenario is like send email as different user (4 Replies)
Hi
We have configured the mail server in our unix box. Still while trying to send mail it goes to dead letter.
We issued the command as
mailx -s "Hello" someone@somewhere.com
Note:
Is that required to reboot the server once the send mail is configured in the server.
OS Version :... (5 Replies)
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)
Dear friends,
I want to send mail automatically like (crontab).
I have tried with mail command but it it not working.
mail -s "hello" xyz@yahoo.com.
please help. (12 Replies)
Hi all !
I want to know if i can send an email with a C code...
the thing i wanna do is when my code is finished it creates a log file with all the information of the process in it...i want to know if its possible at the and of my code in C, under Unix_Solaris, to send that log file to a... (4 Replies)
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)