Ubuntu :: Sending Attached Files With Mailx?
Jan 5, 2010
Formerly it was possible to send attached files using the "-a" option eg. mailx -a /home/yan/textfile [URL]. (I think -a stood for "attached". At the time the "-a" option figured as an option for sending attached files.Now it is an option for sending headers. how one can now send attached files using mailx?
View 1 Replies
ADVERTISEMENT
May 8, 2010
I'm trying to send an email using mailx, in a bash script, but I can't get it to work. In the terminal I can, and this is how I do it:
Code:
$ mailx johndoe@gmail.com
Message^D
Within seconds of doing this, I get sent an email. The problem is with the bash script I'm trying to make. Among other things, I tried this:
Code:
#!/bin/bash mailx johndoe@gmail.com < "Message" I honestly don't know what I'm supposed to do, and I've Googled a bunch of things too, and didn't have too much luck. Is there anyone who could help me out?
Edit: Figured it out. This is what I did, and it works for me:
Code:
#!/bin/bash
echo "Message" | mail -s "Subject" "johndoe@gmail.com"
View 8 Replies
View Related
Jul 2, 2010
GNU/linux kernel 2.6, Slackware 12.0.
I ran mail (aka mailx) and opened an account foo. If I remain inside the program, the command 'account foo' prints the account data. Good. But if I exit the program, and rerun it, then the command 'account' has no output which is to say I have no account.
View 1 Replies
View Related
Jun 17, 2011
I'm trying to attach a file from a remote disk to my email. I already mounted the disk, but every time I need to attach a file from the remote disk I can't find the mounted disk at the side pane.
View 9 Replies
View Related
Jul 28, 2010
I want to make a program that maintains a list of tags that can be attached to a set of files. Store the tags in the files. The main problem is that there is no way to get a list of all the tags without reading each and every file. And also what if you have an unused tag? Have a file that contains tag "keys" and file list "values". This seems like it would be fast and effective, but what if one of the files gets renamed?
View 12 Replies
View Related
Feb 13, 2011
My two machines are both running Ubuntu 10.10. I want to transfer program files between them using a local area network.
My Ubuntu machines can both see the Window machines on the network, and get files from them. But my Ubuntu machines do not detect each other as being on the network. Nor can my Windows machines detect my Ubuntu machines.
From what I can tell, that's normal, and I've become resigned to using a pendrive to transfer files between the two machines. Or even sending files as email attachments.
there is a clean and easy way to transfer files between two Ubuntu machines on the same local area network.
View 9 Replies
View Related
Jun 25, 2010
I have Debian 4.0. I have installed screen package, and one application has been run in screen. I want to know how make something like "screenshot" of this screen status and send it over ftp. Could someone write me script with I could add to cron?
View 4 Replies
View Related
Mar 2, 2010
I'm trying to using rsync to backup some files, about half a TB. It's now it a state where it keeps sending the same files everytime it runs. for example:
rsync -av /data/source/* user@host:/data/dest
sending incremental file list
source/file1.txt
source/file2.txt
I then verify those files are copied over. then the next time it runs it does the same thing
rsync -av /data/source/* user@host:/data/dest
sending incremental file list
source/file1.txt
source/file2.txt
any idea why it's getting stuck on these files? I've tried to wipe the whole dest directory out and start over but no luck.
View 2 Replies
View Related
Jan 1, 2010
How do you send files, save or other wise write to CD using Mandriva Linux? On windows you get a helper menu. Linux does not offer this option in it's helper file and you can't click and drag a file in the CD folder. The dialog box reads "you do not have permission to write to this folder" when I try to drag it in and I can't change the permission signed in as Root.I don't have a clue. I wish Linux Questions would add a emotioncon that has the expression " what the hell buddy? are you on ten hits of acid?
View 8 Replies
View Related
Nov 6, 2010
I need an application for sending files via Bluetooth to some receivers.
View 1 Replies
View Related
Jun 22, 2010
Please tell me how i can block sending or receiving .exe files as a attachment in sendmail server
View 1 Replies
View Related
Jan 28, 2010
I am trying to email some log files from my RHEL 5.3 server to my Outlook corporate account and nothing happens. Here is the command I use:[root@server1]# mailx -s "server info" my_id@my_corporate_domain < server_infoThe file server_info does exist and is a small log file. I checked for sendmail and seems to be running OK as follows:
[root@server1]# ps -ef | grep -i mail
root 13954 1 0 2009 ? 00:00:00 sendmail: accepting connections
smmsp 13962 1 0 2009 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
I'm not at all familiar with mail clients or mail system in Linux. Is there anything missing? I don't have to use mailx, I could use an alternative. Just please let me know how to sent a simple mail from this server to my corporate account using any tools possible (and maybe how to set it up)
View 1 Replies
View Related
May 18, 2010
I was wondering how to setup slackware such that I can send and receive local mail using the commandline "mail" command.
I tried sending a sample mail this way:
And it looks like the message was sent, but when I then go check:
it says there is no mail.
Do I need to have sendmail running for just local mail calls?
View 5 Replies
View Related
Feb 19, 2009
Im unable to send mail using mailx or sendmail. The sendmail daemon is running.
View 1 Replies
View Related
Sep 5, 2011
I have a script that sends short reports via the mailx command which is failing a lot lately.
Syntax used is basically: mailx -s "the subject" -r somebody@somewhere.com myemail@gmail.com < textfile.txt
For what ever reason this command has become very unreliable lately. I've tested on the command line and sometimes it works but frequently fails. The -r address seems to cause problems as it always fails with a -r set to my work address. I've read several theads and tried adding a .mailrc file but couldn't get past the NSS configuration setting. (Using my mozilla x123x.default dir results in Error initializing NSS: Security library: bad database. )
The nail command behaves about the same. what would make email sending so intermittent?
I've checked the /var/log/maillog but see each mail session end with the following and no errors reported:
View 3 Replies
View Related
Apr 25, 2011
I am running a opensuse 11.4 with mailx 12.2. I am trying to sent emails via command line using mailx. I have not configured any mail server in yast. My .mailrc in my homefolder looks like this:
set smtp-use-starttls
account gmx {
set smtp=mail.gmx.net:465
set smtp-auth=login
set smtp-auth-user=my.name@gmx.de
set smtp-auth-password=mypassword
set from="My name <my.name@gmx.de>"
}
Unfortunately when I use the command
mailx -s"Test" -A gmx my.name@gmx.de [Return]
Hallo
[ctrl+d]
I am getting only the message
Unexpected EOF on SMTP connection
"/home/myname/dead.letter" 11/338
. . . message not sent.
View 9 Replies
View Related
Mar 1, 2010
I'm having issues sending mail on a Debian (Lenny) box using mailx.
root@deity:/# mail root
Subject: Hai
Hi, root!
[Code].....
Does anyone have an idea what might be causing this?
View 2 Replies
View Related
Oct 14, 2010
I need to control sendmail or mailx from a file. The file will have the receprent as the first line, Subject: has the second line, etc. From what I can find with Google the only why to define the target and subject is on the command line? Does any one know of a way to make a mailer use the data in a file? The file would look like this:
Code:
[code].....
View 2 Replies
View Related
Mar 1, 2010
Red Hat.
bash script.
I know there are several posts to do with mail and mailx, but nothing obvious in terms of my problem. Below is a small excerpt from the script that runs, but seems to have developed a problem.
###### Email Parameters ######
RECIPIENTS="name1@domain"
SUBJECT="${HOSTNAME} Subject Line"
[Code].....
The email is sent, but with numerous recipients, rather than the one specified in the RECIPIENTS variable, and because most of these aren't valid, getting a dead.letter. I've put in some debugging to check values of recipient and subject, and they show as expected.
View 4 Replies
View Related
Jun 22, 2011
im just wondering is it possible to instruct mailx to use postfix instead of sendmail while have sendmail and postfix installed? like system-switch-mail way in other distros. basically i would like to be able to use mailx when i uninstall sendmail and keep postfix only installed, so i dont get msg after i press . to send email from mailx
Code:
/usr/sbin/sendmail: No such file or directory
View 7 Replies
View Related
Jan 14, 2011
In Red hat i used the nail command to send mail using an external smtp server without sendmail or other mail services active. My question is: In Centos 5 nail is not present but is present mailx in version 8.1.1-44.2.2
Is there a way to set mailx to use external smtp server ? because in many forum i get the string mailx -S smtp= etc.etc. but in my case the -S parameter generate mailx: invalid option -- S antoher question is there a an official repository to download rpm nail for centos ?
View 3 Replies
View Related
Oct 11, 2009
I have a couple of servers that are scripted to send cron script output logs to my email address (a Gmail address). Mailx is what I am using, but I didn't have to configure anything; I installed it, and it just worked with the following command: mailx -s "SUBJECT" -r FROMMYADDRESS TOMYADDRESS < FILETOCATANDSEND
This occurs every Saturday and Sunday at noon after my backup scripts run.
I noticed yesterday that I did not receive these logs, so I logged into the machine, started 'mail' and saw messages like this: This is the mail system at host media.deagle.lan.
[Code]....
View 9 Replies
View Related
Sep 9, 2010
I run in a script a mailx command like this:cat logfile | mailx -s'the logfile' to-me@..This works most of the time, but in some cases mailx automagically turns logfile into an attachment called 'attachment.bin'.I think this may be because 'logfile' contains a few control characters or escape codes?How can I tell mailx to be less intelligent and treat it as an ASCII text file?
View 3 Replies
View Related
Mar 12, 2011
I am facing some problem with the mailx commmand. When i run the mailx command from the command line it sends it to the correct mail address which i mention.
#cat mailbody | mailx -s "Test" sampleaddr@abc.com
But when i run the same command from a perl script, it appends the machine name (hostname.abc.com) to the mail address, and the mail address (sampleaddr@abc.com - which i entered) becomes invalid [URL] - found in the maillog), failing to reach the receiver. I am running it from the csh shell. how to avoid this addition.
View 2 Replies
View Related
Jun 22, 2010
I recently set up an email server at work on a ubuntu box, running exim4. Everything seems to be working fine, but when I try to change the "from" header in the message, its not letting me.
I wanted to send a message from the root user as "admin".
I assumed this would be easy as:
Code:
mailx -r admin recepientname
but for some reason the mailx program is claiming that "-r" is not a legitimate tag, when I try it tells me:
Code:
mail: invalid option -- r
usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ...
[-- sendmail-options ...]
mail [-eIiNnv] -f [name]
mail [-eIiNnv] [-u user]
View 1 Replies
View Related
Feb 21, 2009
I get this error in the maillog when trying to use mailx. (DSN: Service Unavailable)
View 1 Replies
View Related
Nov 30, 2010
Was told that I need to use Javamail for a project to send mail rather than using "mail" or "mailx". Has anyone here done this?Any pointers or sites you've used and can recommend?
View 1 Replies
View Related
May 18, 2010
I have 2 desktop PC's both running 10.4, both connect to internet thro a wireless router. One PC has a printer attached and I would like to be able to print from the PC without the printer attached, what is the easiest way to achieve this?
View 1 Replies
View Related
May 19, 2010
It's my first time setting a local server up and getting everything to go smoothly, at the moment I have the server running LAMP and I control it using SSH. I like to know how I can get the server online and actually connect a domain to it? I have the ISPConfig setup and it runs perfectly fine, what I like to know is:
How do I attached a IP to the server? (or can I just access it using the IP i have now?)
View 3 Replies
View Related
Feb 21, 2010
I have a desktop version of Ubuntu 9.10 installed on a machine that generally I only want to access remotely (using TightVNC). That is because the machine is under my wife's desk and she is getting a little ticked off that there is a screen right by her foot. The problem is that if I remove the screen then the system gives me a startup error and will not boot. I then have to reattach the screen and select normal startup.
View 9 Replies
View Related