I also needed the ability to send e-mails to myself for S.M.A.R.T. device health monitoring and for new ARP entries. Instead of setting up a custom Python e-mail sending script, I ended up doing the following:
Note, this solution is not suitable for devices which have a small amount of storage as the /usr/ports folder alone takes up 1.2GB of disk space. Also, the s-nail package is currently listed as not having an active maintainer. So you may want to pick another utility available here: https://github.com/opnsense/ports/tree/master/mail
Sorry for replying to an old topic, but I thought anyone else coming across searches for "send email" on the forums in the future may want to know about the above option.
Code Select
opnsense-code ports
cd /usr/ports/mail/s-nail/
make install
# Configure s-nail with your smtp server details/creds
# To uninstall:
# pkg remove s-nail
# pkg autoremove
# opnsense-code -r ports
Note, this solution is not suitable for devices which have a small amount of storage as the /usr/ports folder alone takes up 1.2GB of disk space. Also, the s-nail package is currently listed as not having an active maintainer. So you may want to pick another utility available here: https://github.com/opnsense/ports/tree/master/mail
Sorry for replying to an old topic, but I thought anyone else coming across searches for "send email" on the forums in the future may want to know about the above option.
"