kiss-o-matic Posted July 27, 2007 Share Posted July 27, 2007 I'll make this quick. I have a godaddy virtual dedicated server. I was literally told they weren't allowed to help me trouble shoot this problem (although they gave me some hints) WTF? Anyway, I'm using the following PHP code snippte: if ( mail( $to, $subject, $body, $headers ) ) { $msg = 'Succesfully sent mail. Thank you.<br>'; return true; } else { $msg = 'Mail Delivery failed.<br>Please contact administration in the forum.'; return false; } I get no errors... but also no mail. The tech said (through another tech after 30 minutes) I need to "white list" an IP. I assume this is a sendmail setting. Next problem? There's no sendmail config file. :/ Anybody have any experience w/ this? Link to comment https://forums.phpfreaks.com/topic/62051-solved-sendmail-disaster/ Share on other sites More sharing options...
akitchin Posted July 27, 2007 Share Posted July 27, 2007 so, perhaps this is a good place to tell us what exactly the problem is.. is it not sending, is your host refusing to let it run, are you not getting any output, are you getting error outputs? Link to comment https://forums.phpfreaks.com/topic/62051-solved-sendmail-disaster/#findComment-308940 Share on other sites More sharing options...
kiss-o-matic Posted July 27, 2007 Author Share Posted July 27, 2007 Sorry, I hit post before I was done and went back. Edited now. EDIT: Worth noting: the exact code works fine on a dedicated server Link to comment https://forums.phpfreaks.com/topic/62051-solved-sendmail-disaster/#findComment-308941 Share on other sites More sharing options...
kiss-o-matic Posted July 27, 2007 Author Share Posted July 27, 2007 I've decided to go w/ phpmailer(). I guess I'll mark this as solved. Link to comment https://forums.phpfreaks.com/topic/62051-solved-sendmail-disaster/#findComment-309005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.