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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t specifically want to use Mail.app, you can send mail using the
mailcommand. Open Terminal and:Those are backticks, not single quotes.
whoamireturns the current user’s username andhostnamereturns the local machine’s hostname. It could also be explicit:EDIT: Just read your clarification. Mail.app stores it’s data in ~/Mail, mostly in an SQLite database (the ‘Envenlope Index’ file). The tables of interest would be
mailboxesandmessages. The text of the email is stored in individual files in the respective mailbox/folder directories. This would probably be the way to go, if you want to access email that has been fetched by Mail.app (in realtime).Yet another option would be to export your mail from the Mail.app using the mbox format and access it using the technique described by dbr. Depending on whether or not realtime access is desired, you might be able to script something up that automates the export.