- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Send e-mail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 08:21 AM
07-02-2004 08:21 AM
I have to send e-mail from Unix box with the following characteristics:
Send Sender e-mail
Send Subject
Send an atached file
I tried a lot of solution that I get here:
Send with mailx, mail, sendmail, elm...
1) cat file.txt|mailx -r me@mydomain.com -s Subject to@yourdomain.com.br
but this solution send a plain text, not atached file.
2)/usr/bin/awk '{print $0 "\r"}' file.txt | /usr/bin/uuencode file.txt | mail you@yourdomain.com
but it don't send subject or sender name|e-mail that I want to set.
Any idea
Thanx in advance,
Lima.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 09:05 AM
07-02-2004 09:05 AM
Re: Send e-mail
# uuencode file.txt file.txt | mailx -r me@mydomain.com -s "mysbuject" to@urdomain.com
HTH,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2004 05:10 AM
07-03-2004 05:10 AM
Re: Send e-mail
PART1:
Here is what I use.
The basic lay out of a file that you would send looks like so.
more mailfile
From: Someone@somewhere.net
To: otherperson@otherplace.com
Subject: test subject
this is the data
if the mailfile is created all you have to do to send it is
cat mailfile | sendmail -t
that will send the email considering that a mail relay is setup properly.
PART 2:
How to create the mailfile.
For my needs the mail file is created in a script that gathers data daily and then will email it to me so the data is always different.
In this example the datafile is the output from a script. The mailfile alwayas has to go first otherwise sendmail will not know where to send the email to. And the data file will be in the subject line.
Here is the mail send part of my script.
echo "From: you@somewhere.com " >> mailfile
echo "To: someone@somewhere.com " >> mailfile
echo "Subject: Your subject here " >> mailfile
echo " " >> mailfile
###############
cat mailfile datafile | sendmail -t
Hope this helps
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 03:18 AM
07-04-2004 03:18 AM
Re: Send e-mail
your solution is ok. Thanx, but why it don't send "to" name when it is open?
Who receive it, don't know for who is sent it e-mail. It is not a problem, I only curious.
Thanx a lot,
Lima.
Abdul, your solution try to send file sile.txt in plain text (already codificated) in my unix box. Any idea? Thanx anyway.
Richard, you solution don't send attached file. Thanx anyway.
Thanx to all!
Lima.