UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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:
alucard@organa:~$ mail -s "**Reminder: Time to write summary \!" firstname.lastname@example.org<ENTER>
testing 1 2 3<ENTER>
And it tries to send (but bounces due to the fake address):
Jul 20 14:50:44 organa postfix/smtp: 912D140282: to=<email@example.com>, relay=smtp.comcast.net[220.127.116.11]:25, delay=1.4, delays=0.08/0.08/1/0.19, dsn=5.0.0, status=bounced (host smtp.comcast.net[18.104.22.168] 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.
Originally Posted by man 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.