+ Post New Thread
Results 1 to 2 of 2

Thread: Linux FIX: An e-mail delivered to gmail has "noname" attachment instead of text

  1. #1
    Fli
    Fli is online now
    Administrator Fli's Avatar
    Join Date
    Mar 2013
    Posts
    2,458

    Linux FIX: An e-mail delivered to gmail has "noname" attachment instead of text



    How to fix the issue where you send an e-mail from within Linux, it is delivered to Gmail with "noname" attachment and contains no text.

    I want the message to be text, not an "noname" file.

    I found solution here.

    turn:

    cat somefile | mail -s "subject" [email protected]

    into:

    cat -v somefile | mail -s "subject" [email protected]

    Code:
           -v, --show-nonprinting
                  use ^ and M- notation, except for LFD and TAB
    but what if i do not use cat?

    This worked to get rid of noname attachment and show the output as e-mail text:

    /bin/sh /path/to/script | tr -d \\r | mail -s "subject" [email protected]

  2. #2
    Junior Member Ganvir's Avatar
    Join Date
    Aug 2019
    Posts
    25


    Is this useful / helpfull? Yes | No
    The cron script launches an SQL query and mails the output as body to my e-mail address. ... of the three servers is empty, instead of a body a file is attached called "noname". ... Broken Server (sent the noname attachment): ... The strings command fixed my script.

+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 03-07-2019, 09:50 AM
  2. Replies: 0
    Last Post: 03-19-2018, 10:02 PM
  3. Replies: 0
    Last Post: 09-15-2017, 04:22 PM
  4. Replies: 0
    Last Post: 08-09-2014, 05:26 PM
  5. Replies: 0
    Last Post: 01-12-2014, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam