Sending mail from the command line not working using sendEmail
Sending mail from the command line not working. On my Mac I have installed a very simple mail server application called sendEmail. More info here: http://freshmeat.sourceforge.net/projects/sendemail/
It allows mail to be sent from the command line (Terminal I use). I do this with a script, but am presently testing directly in Terminal as this is easier.
I used it for years with my present ISP and it worked fine. I stopped using it about a year ago and now it does not work anymore. I checked several reasons as to why it does not work, so far no luck.
It could also be it is the change from OS 10.13 to10.15.
The error I get is on entering the password, it is: -bash: syntax error near unexpected token `('
The password does indeed contain an ‘(‘ and an ‘)’. See below, I changed it but stayed true to its basic structure.
As you can see below I escaped the whole sentence with the usual ‘ and ‘. I also tried to escape it with \ and \ etc. No difference I get the same error.
For your info:
-f = sender
-t = recipient
-s = isp address and port
-xu = the account we send from
-xp = password
Here is the process till it stops.
mycomputer-Mac-mini:~ name$ sendEmail -f sender@xyz.com \
-t recipient@xyz.com \
-s sslout.isp.eu:465 \
-xu 123456 \
-xp ‘*(Fake6549Morefake)+123456’ \
-bash: syntax error near unexpected token `('
Now it could be I need to escape the PW different, but I tried all the ways I know and ‘ and ‘ is the most common and powerful one. “ and \ etc. where also tried.
In the hope somebody has an answer to this conundrum.