Arc Forumnew | comments | leaders | submitlogin
4 points by akkartik 4966 days ago | link | parent

I just use system to call sendmail (postfix). Here's how it looks in readwarp.

  (mac pipe-to(dest . body)
    `(fromstring
       (tostring ,@body)
       ,dest))

  (def mail(to subject message)
    (pipe-to (system "sendmail -t")
      (prn "To: " to)
      (prn "Subject: " subject)
      (prn) 
      (prn message)))
You may need more options for the sendmail command. I use authsmtp to stay out of people's spam folders, and that requires some changes.


3 points by aw 4965 days ago | link

Added to the wiki: https://sites.google.com/site/arclanguagewiki/faq

-----

2 points by markkat 4966 days ago | link

Thanks akkartik this should get me started. Much appreciated.

EDIT: Awesome I think I've got it. Thanks again!

-----