Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required header 'From' #4

Open
timharsch opened this issue Mar 10, 2021 · 4 comments
Open

Missing required header 'From' #4

timharsch opened this issue Mar 10, 2021 · 4 comments

Comments

@timharsch
Copy link

I tested your script on both OSX and on AWS EC2 node (AWS Linux image)

I get Missing From in both cases.

/usr/local/opt/coreutils/libexec/gnubin/base64

An error occurred (InvalidParameterValue) when calling the SendRawEmail operation: Missing required header 'From'.```
@timharsch
Copy link
Author

I removed gnu from my path and still similar problem

/usr/bin/base64

An error occurred (InvalidParameterValue) when calling the SendRawEmail operation: Missing required header 'From'.

@timharsch
Copy link
Author

I discovered an error in the way I was invoking the command. It's not an issue of your script. I'll delete this issue.

@timharsch
Copy link
Author

I was little hasty in closing the issue I guess. Here's what I get (emails anonymized):

sh sender.sh -s test -f "[email protected]" -r "[email protected]" -b "mail content" -a test_attachment.txt        
/usr/local/bin/aws
/usr/local/opt/coreutils/libexec/gnubin/base64

An error occurred (InvalidParameterValue) when calling the SendRawEmail operation: Missing required header 'From'.

@timharsch timharsch reopened this Mar 10, 2021
@ambanmba
Copy link

This looks like what was happening to me due to extra \r s due to the way macOS does things. I fixed it here: https://github.com/ambanmba/aws-ses-sender

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants