in reply to Mail::Sendmail variables

First off, you should use CODE tags around your code. Second, you really should post the exact error messages you're getting. Third, you're putting a \n inside a single-quoted string, which will not turn that into a newline, which you're probably expecting. You should either use double quotes, or even better, get rid of the \n altogether in the email address (mail::sendmail will take care of that for you). There are possibly other errors, we can help more if you post the error message you're getting.