Just in case anyone is following this thread... I just pushed another update to
gophermail. There's now a
SendMessage() that does the SMTP leg work and my tests with sending through Gmail are successful so far. Cc and Bcc recipients and Plain Text and HTML bodies all supported. ::fingers crossed::
I still need to address some header (specifically Subject) encoding issues and add support for attachments but I think we're really close.
I'm hoping I can find someone who knows more about this SMTP/MIME stuff than I do to do a code review of this when I'm done. I feel like anything I get working could easily be luck and I'd like this package to be fairly bullet proof. Feel free to raise your hand. :)