Thank you for your post.
Are you trying to use the local email client, or are you sending to an SMTP server? Only the latter is available through Instant Web Publishing.
What version of FileMaker Pro Advanced are you using? Anything out of the ordinary with the SMTP server?
Any other information you can provide about the script may be helpful in narrowing down the cause.