I needed to do the exact same thing. You can give smtplib a try. Something like
import smtplib
from email.mime.text import MIMEText
msg = MIMEText('YOUR_MESSAGE_BODY')
me = 'YOUR_SOURCE@EMAIL.COM'
you = 'YOUR_TARGET@EMAIL.COM'
msg['Subject'] = 'YOUR_MESSAGE_SUBJECT'
msg['From'] = me
msg['To'] = you
s = smtplib.SMTP('localhost')
s.sendmail(me, [you], msg.as_string())
s.quit()
No password is involved.
If you encounter errors like
...
error: [Errno 61] Connection refused
It probably means you don't have smtp server installed or enabled on your mac, installing postfix
(say from macports) should fix that.