OS X: sending mail to localhost

前端 未结 6 787
臣服心动
臣服心动 2021-02-04 20:07

For testing purposes I want send mail to my localhost user account rather than my webserver. I am unsure how to do this using mail.app. Any help would be appreciated.

6条回答
  •  余生分开走
    2021-02-04 20:53

    codelogic, thanks, I did know about sending mail from the terminal. I think my question was not well thought out. I'm looking to login into my (local) mail server, access a mailbox, and do some parsing. So, I assume there's a mail server running locally but not sure how to access it. I'm using ruby:

    pop = Net::POP3.new 'macbook.local'
    pop.start 'me', 'mypass'
    

    but get a Timeout::Error: execution expired

提交回复
热议问题