LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2011, 12:13 AM   #1
amjadask
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Rep: Reputation: 0
mail attachment problem


hi all
am unable to forward a mail with attachment my problem is as below
cat /root/data|mail -s "subject" abc@gmail.com
its not forwarding mail and not throwing any error
my attached file is more than 100MB ,will any one suggest me with correct syntax
how much length of file can be attached maximum suggest me
thanks alot
i also tried like this
mail -s "subject" abc@gmail.com < /root/data
its also not working

Last edited by amjadask; 02-26-2011 at 02:51 AM.
 
Old 02-26-2011, 03:43 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Is /root/data a file?

try
Code:
mail -a /root/data -s "subject" abc@gmail.com < /dev/null
Look in your logfiles for errors

Kind regards

Last edited by repo; 02-26-2011 at 06:14 AM.
 
Old 02-26-2011, 06:11 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
attached file is more than 100MB
This may or may not be the problem that is causing your immediate error, but you won't be able to get this file to go very far in an email. Almost all email systems are set up with a size limit, typically 10 MB.

Use the 'split' command to split the file into smaller pieces. Send each of them as separate emails and then join them together with the 'cat' command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail attachment tostay2003 Linux - Software 6 10-01-2006 07:07 PM
Mail Attachment size hinetvenkat Linux - Security 3 12-26-2004 08:05 AM
mail server attachment problem sreejithk Linux - Software 0 07-27-2004 01:10 AM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 09:33 AM
mail with attachment joseph Linux - Networking 1 08-31-2003 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration