Wrote a mail address in source code thinking that no developer ever would test the app configuring a real smtp server.
We ended up sending emails to the board of a multi-billion company containing "bad words" as the dev were filling text fields with insults and whatever during their tests. I didn't get fired but I still think I was very close.