coffmanrunner Posted January 28, 2008 Share Posted January 28, 2008 I would like to send a conformation email to users when they sign up but for some reason i can't get email to work i have tried mail() countless times I am now using cdonts <?php @$CDONTS = new COM("CDONTS.NewMail"); @$CDONTS->From = "admin@localhost.com"; @$CDONTS->To = "XXXXXXX@gmail.com"; @$CDONTS->Subject = "test"; @$CDONTS->BodyFormat = 0; @$CDONTS->MailFormat = 0; @$CDONTS->Body = "Test"; @$CDONTS->Send(); @$CDONTS->Close(); print "mail sent"; ?> The "mail sent" never prints and the email goes to the queue folder for half a second then gets thrown to the bad mail folder I also don't know if i am using my php.ini include_path right currently I have include_path = "C:\php5\PEAR;C:\PHPMailer\class.phpmailer.php;C:\PHPMailer\class.smtp.php;C:\PHPMailer\language\phpmailer.lang-en.php" I am on windows XP SP2, IIS5.1, PHP5 I have tried pear and phpmailer but to no avail (don't know if this is due to my include path or what) I have SMTP running and configured for smart host for my ip address (internal 192.168.2.201) I am getting fed up with this and would rather not go back to ASP Thanks Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/ Share on other sites More sharing options...
vicodin Posted January 29, 2008 Share Posted January 29, 2008 Most ISP's block SMTP so their subscribers cant SPAM. Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-451776 Share on other sites More sharing options...
coffmanrunner Posted January 29, 2008 Author Share Posted January 29, 2008 I am on roadrunner business class and I have successfully hosted a web site and im pretty sure my friendhad a mail server running as well Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-451857 Share on other sites More sharing options...
coffmanrunner Posted January 30, 2008 Author Share Posted January 30, 2008 bump Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-452987 Share on other sites More sharing options...
trq Posted January 30, 2008 Share Posted January 30, 2008 im pretty sure my friendhad a mail server running as well Do you have a mail server installed? Do you have Cdonts installed? What OS is your server? Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-452992 Share on other sites More sharing options...
coffmanrunner Posted January 30, 2008 Author Share Posted January 30, 2008 Running windows XP SP2 I installed codnts the whole /regsvr .... and the Default SMTP Virtual Server on Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-452995 Share on other sites More sharing options...
coffmanrunner Posted January 30, 2008 Author Share Posted January 30, 2008 bump Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-453258 Share on other sites More sharing options...
coffmanrunner Posted January 31, 2008 Author Share Posted January 31, 2008 bump Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-454248 Share on other sites More sharing options...
coffmanrunner Posted January 31, 2008 Author Share Posted January 31, 2008 bump Quote Link to comment https://forums.phpfreaks.com/topic/88261-cant-send-email/#findComment-454805 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.