Results 1 to 3 of 3

Thread: Mailx Attachment Syntax in Unix

  1. #1
    Join Date
    Apr 2009
    Posts
    27

    Mailx Attachment Syntax in Unix

    I am using Unix & wanted to send mail with an attachment, but was not knowing the syntax for mailx command to have file go as an attachment. Can anybody give me the syntax to attach a .txt file...??

    PLEASE HELP....!

  2. #2
    Join Date
    May 2008
    Posts
    4,345

    Re: Mailx Attachment Syntax in Unix

    Here is the sample syntax for it...!!!

    uuencode source_file.sh attached_file.txt | mailx -m -r sender@address -s "attachment testing" recipient@address

  3. #3
    Join Date
    May 2008
    Posts
    4,570

    Re: Mailx Attachment Syntax in Unix

    Currently I am sending two individual emails which is highly inconvenient. commands which I am using :

    1. mailx -s "subject" email@address < file

    2. uuencode file file.txt | mailx -s "subject" email@address

Similar Threads

  1. Why Firefox only able to download attachment as "attachment.ashx"
    By DeepakTij in forum Technology & Internet
    Replies: 4
    Last Post: 30-12-2011, 05:28 PM
  2. What are the Basic Syntax used in PHP?
    By Steyn in forum Software Development
    Replies: 5
    Last Post: 25-02-2010, 12:49 AM
  3. What is a syntax error?
    By Chrisch in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 09:53 AM
  4. Linux Crontab syntax
    By jean-paul martell in forum Operating Systems
    Replies: 3
    Last Post: 13-08-2009, 02:15 PM
  5. Syntax for SQL query in JSP.
    By elldeegee in forum Software Development
    Replies: 3
    Last Post: 04-06-2009, 10:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,613,742.81678 seconds with 17 queries