Re: registration confirmation email sent as attachment
The function that is used to send emails is called wp_mail(), and it’s defined in wp-includes/pluggable.php. You might have a look there to begin with, and maybe even replace the version of the function in that file with a fresh version from a newly-downloaded copy of WP, if you suspect that some things have been changed.
Another thing to keep in mind is that wp_mail() is pluggable, which means that plugins can add their own version of the function, which will be used instead of the one in wp-includes/pluggable.php. If you’ve got shell access to your server, you can see whether this is happening with the following command, run from your wp-content directory:
`grep -nR ‘function wp_mail’ ./`
If this turns up any results, then that might be a good place to look for wp_mail hanky panky.