If the anonymous user account is not granted at least CHANGE permissions to the SMTP mail server folders the following error may be thrown:
Microsoft VBScript runtime error '800a0046'
Permission denied
/filename.asp, line xxx
For more details please see MS KB article (Q197619):
http://support.microsoft.com/support/kb/articles/Q197/6/19.ASP