Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem with postfix attachment

    I need to send mail with a file attachment from linux system to my mail id

    while using the command

    mail -a filename mailid

    In the webmail the attachment is blocked
    the file size is 396K

    I need the file as attachment in the mail.Please help me in doing the same

  2. #2
    Linux Newbie hans51's Avatar
    Join Date
    May 2011
    there are multiple possibilities why if fails,
    assuming you OWN the server, have access to

    and all relevant config files

    check for allowed/disallowed file extensions
    check if attachments are allowed
    check for file size limits

    I use your a.m. procedure sometimes, but with a different syntax:

    cat /server_path_to_file.txt | mail -s "your subject line" recipient_email_address

    Good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts