I editedFox Mulder wrote:That's exactly the problem. ssmtp uses it's own configuration where mail and mpack uses the linux wide mail system like postfix, sendmail or exim. So to use these commands you have to install and setup one of these mail systems on the pi properly. But if ssmtp works then why not just use it instead of mpack?314_PIE wrote:I went back into it to get another try, i got it to work but only for ssmtp command below that sent to my Outlook account successfully... i used App passwords for thr Auth section in ssmtp.conf. STARTTLS and port 587.
However, it seems to not work with mpack test command in order to send the jpeg motion images. Im not sure if it can talk to ssmtp.conf but i know ssmtp can.
Ciao,
Rainer
and replaced the mpack script with this as i assume would be correct.
Code: Select all
# EMAIL_JPEG=$THUMB_JPEG
# Edit MY_EMAIL to your email address to email the preview jpeg.
#
## MY_EMAIL=My_Email_Address@outlook.com
## mpack -s pikrellcam@$HOSTNAME $EMAIL_JPEG $MY_EMAIL
## echo "mpack -s pikrellcam@$HOSTNAME $PREVIEW_JPEG $MY_EMAIL" >> $LOG_FILE
ssmtp -4 -au -ap My_Email_Address@outlook.com pikrellcam@$HOSTNAME $PREVIEW_JPEG
-4 - IPv4 Only
-au - Specifies username for SMTP authentication.
-ap - Specifies password for SMTP authentication.
Edit
Not sure how to add this to the script:
MY_EMAIL=My_Email_Address@outlook.com
From:$MY_EMAIL To:$MY_EMAIL Subject:Pikrellcam_Motion_Detected