Welcome Guest, Not a member yet? Register   Sign In
best way to test email locally
#1

[eluser]Unknown[/eluser]
I like to define a "fake" domain on my local system by editing /etc/private/hosts (on mac) or

http://en.wikipedia.org/wiki/Hosts_file (for other systems)

and the domain I normally use is "aa.com" because:

1) aa are my initials.
2) aa.com is american airlines and I never need to goto their website cuz I hate to travel.
3) it's only two letters, easy and fast to type.

Right under localhost I enter:

127.0.0.1 localhost
127.0.0.1 aa.com

and now ping aa.com and it's 127.0.0.1. So then I can send test emails to [email protected] or [email protected] or [email protected] etc.

This makes local development really easy because test emails aren't sent over the internet and get delivered immediately.

I normally setup the open source SMTP server JAMES:

http://james.apache.org/

and then add an email account to Thunderbird for [email protected] with smtp server aa.com.

But I can't get CI to work with james. When I edit the config vars for smtp host, username, etc. it hangs trying to contact SMTP on aa.com. (It works fine in rails.) Is there an easy way to get CI to do this? I'm not married to james. If I can use sendmail or something simple on OSX I'm all for it. Just need to read HTML emails in Thunderbird so I can test.

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB