Sponsored Content
Full Discussion: mail or mailx attachment
Top Forums UNIX for Dummies Questions & Answers mail or mailx attachment Post 64824 by RTM on Wednesday 2nd of March 2005 02:01:15 PM
Old 03-02-2005
You need to be more specific about your problem:
Quote:
using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject
If you use mailx -s "test" myself@somedomain.com < /etc/hosts
do you get the email with a subject as 'test'?
If you use mailx -s "test" myself@somedomain.com < uuencodefile, what happens?

Please explain further on stating "mailx does not attach the file" versus "substituting mailx for mail...attaches the file"
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mailx commannd - Mail and Attachment in same mail

Hi , I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies

2. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

3. UNIX for Advanced & Expert Users

how to send file as attachment using mail or mailx

I have a need to send a file from the unix command line to be sent as an attachment. Is this possible? That is when I open my outlook email I need to file to appear as an attachment. Also, is there a way to use the mail binary (not mailx) to modify the "reply address". mailx -r works but I need... (1 Reply)
Discussion started by: kieranfoley
1 Replies

4. Shell Programming and Scripting

Adding an attachment as an attachment to mailx

I don't want the attachment embedded in the mail. I would like a file attached. When I do mailx -s "Report, `date +'%D %r` " -r "Notifications" bob@bob.com < /usr/local/bin/myreport.log> /dev/null It gets embedded in my email. I want a file attachment. How do I do that? (2 Replies)
Discussion started by: guessingo
2 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. HP-UX

mailx with -m attachment corrupted

mailx with -m command sending emails with attachments correctly to all users except users who have email on microsoft exchange server. They are receiving attachments as garbled text in mail body (5 Replies)
Discussion started by: sankalpag
5 Replies

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

8. Shell Programming and Scripting

send attachment and body in one mail using mailx

Hi, Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement. --------------------- (uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients -------------------- I m not able to send any message in the... (4 Replies)
Discussion started by: ashwin3086
4 Replies

9. Solaris

mailx with attachment

Hi, When i used below command, i am able to send mail mailx -s "Testing mail working or not " babu.sudhakar@ymail.com" but if i want send attachment with mail,which syntax i need to follow to send a file as attachment. (3 Replies)
Discussion started by: sridhardwh
3 Replies

10. UNIX for Beginners Questions & Answers

Need help sending attachment via mailx

Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx. The command I use is $ mailx -s "Subject" user@blah.com < attachment.txt but everytime I do that it would say Cannot open attachment.txt I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
mailcompat(1)							   User Commands						     mailcompat(1)

NAME
mailcompat - provide SunOS compatibility for Solaris mailbox format DESCRIPTION
mailcompat is a program to provide SunOS 4.x compatability for the Solaris mailbox format. You would typically run mailcompat to be able to read mail on a workstation running SunOS 4.x when your mail server is running Solaris. Enabling mailcompat creates an entry in your .forward file, if it exists. If this file does not exist, mailcompat will create it. Dis- abling mailcompat will remove the entry from the .forward file, and if this was the only entry, will remove the entire file. To execute mailcompat, log onto the Solaris mail server and enter mailcompat on the command line. Answer the queries provided by the pro- gram. USAGE
See largefile(5) for the description of the behavior of mailcompat when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). EXAMPLES
Example 1: Examples of the mailcompat feature. The following example enables the mailcompat feature for the user "john". example% mailcompat This program can be used to store your mail in a format that you can read with SunOS 4.X based mail readers To enable the mailcompat feature a ".forward" file is created. Would you like to enable the mailcompat feature? Y Mailcompat feature ENABLED.Run mailcompat with no arguments to remove it example% The following example disables the mailcompat feature for the user "john". example% mailcompat This program can be used to store your mail in a format that you can read with SunOS 4.X based mail readers You have a .forward file in your home directory containing: "|/usr/bin/mailcompat johns" Would you like to remove it and disable the mailcompat feature? y Back to normal reception of mail. example% FILES
~/.forward list of recipients for forwarding messages ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
mailx(1), attributes(5), largefile(5) SunOS 5.10 4 Aug 1994 mailcompat(1)
All times are GMT -4. The time now is 08:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy