uuencode question
I am working on a shell script that will send mail with attachments, but I am running into a small problem
Code:
uuencode file.txt attachment_file_name.txt | mail -a 'FROM:test@test.com' -s 'Subject Here' first.last@gmail.com Any suggestions? |
Quote:
|
your suggestion worked thanks! The problem I am having now is that when I try to email my work address it doesn't work but if I email my personal email address it does...
|
Quote:
|
Well I looked at the log files for mail and it is trying to send the mail to the username of the person logged into the shell who is running the uuencode script.
So if user is logged in and they run the script it tries to send the email to user@workaddy.com I also modified some of the postfix settings to try to obey correctly |
yeah every time I try to send an email and go check the error logs I am seeing the 'unknown user' error...
So if I run my script with the recipient being user@useremail.com The error will return 'user is unknown user' |
Quote:
In the meanwhile, let me to suggest an alternative method which uses another "uu" application called uudeview. I'm used to send binary attachments in the following way and I've never had an issue: Code:
recipient="pippo@null.domain" A little hint: I hope the e-mail you wrote in post #1 is not real, otherwise better to change it into a fictional address! ;) |
All times are GMT -5. The time now is 06:22 AM. |