To prevent your mailer-deamon from sending emails, just copy paste :
define(`confERROR_MODE',`q')dnl
in your /etc/mail/sendmail.mc and run sendmailconfig.
If you call sendmail from the command line, add the option
sendmail ... -OErrorMode=q
If you use a software that generates its own sendmail.mc, try to add the define above in the templates ( if any ) or ask the author.