I am having a problem trying to figure out why I can not use my sendmail out of a cgi script (Ubuntu).
I have turned on my sendmail and from command line, I can issue a /usr/sbin/sendmail -v
username@domain.com. When I do this, an email is sent and delivered.
When I send an email to the local user using the same technique this works fine also and I see a message.
So I know the sendmail is working.
I also know that the .cgi is working because I am running another .cgi script just fine....other than invoking the the sendmail from this very script.
My email logs do not show me much of anything.
In the script itself, I have tried referencing /usr/sbin/sendmail as well as the /usr/lib/sendmail
Neither seems to work. Option -t is set...I have given the script 777 permissions.
How can I figure out what the script is doing or where it is erroring ?
I am not even sure that the script is invoking the sendmail..?
Any script gurus willing render an opinion on what else I could/should do to troubleshoot this ?
Thanks In Advance