> I have the following code in my script and no errors are created, but I do
> not get any emails. It works on other servers.
>
> Are there some logs I can check to figure out why an email is not being
> sent/received?
Depends on your setup, but /var/log/maillog in the unix world would be a
good place to start...