UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for pointing out. It was just a typo occurred when I tried to paste it. In the original script it is not there. The script was working till yesterday perfectly well on the same system. Today, I executed dist-upgrade and firefox was upgraded. I think the problem has started after that. But, I fail to see any connection.
PS: As I already mentioned, the problem is not with the script. Running the mail (/usr/bin/mail) doesn't work either.
Well what happens when you run the command manually?
Do try escaping the !. But also, you may be using it wrong. Here:
Code:
alucard@organa:~$ mail -s "**Reminder: Time to write summary \!" e.mail@gmail23353.com<ENTER>
testing 1 2 3<ENTER>
.<ENTER>
Cc:<ENTER>
And it tries to send (but bounces due to the fake address):
Jul 20 14:50:44 organa postfix/smtp[9652]: 912D140282: to=<e.mail@gmail23353.com>, relay=smtp.comcast.net[204.127.192.17]:25, delay=1.4, delays=0.08/0.08/1/0.19, dsn=5.0.0, status=bounced (host smtp.comcast.net[204.127.192.17] said: 550 [PERMFAIL] destination not valid within DNS (in reply to RCPT TO command))
No, ctrl+D is the EOF character. Ctrl+z is the Background Process character.
Quote:
Originally Posted by man mail
Code:
Sending mail
To send a message to one or more people, mail can be invoked with arguments which are the
names of people to whom the mail will be sent. You are then expected to type in your mes-
sage, followed by a control-D ('^D') at the beginning of a line.
You can also try ending your message with a period on its own line, as in my example.
Sorry to revive an old thread but I have a similar problem.
I'm trying to send an email from a script using the mail command and the email gets immediately delivered to the local mailbox and never goes out. I think its a problem with a configuration file, but I'm not sure how or where to configure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.