make pretend a mail config param (fixes #1558)

Add the ability to specify 'pretend' mode in config parameters. This fixes the queued mail case, as there it wasn't picking up programmatic changes to the pretend flag.