Im trying to send an email out in a perl cgi, the code seems to work fine on my local system, but on dreamhost it does not work.
Im trying to use sendmail(/usr/sbin/sendmail) but it does not seem to be working. I have tried directly calling sendmail from the command line and sending myself an email(on another dreamhost account), but the email never appears. I sendmail not usable? Should i send mail out using SMTP instead?
Sending mail from a CGI
JesseC
#1
JesseC
#4
Ok, I figured it out, the message that my script was passing to sendmail started with a newline, once that was removed it works.
rlparker
#5
Ah! Yep, that would do it! Thanks for taking the time to post back and share what the problem turned out to be. That’s useful to others faced with a similar problem!
I’m glad you got it working!
–rlparker