Jump to content

Can't send email


coffmanrunner

Recommended Posts

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 = "[email protected]";

@$CDONTS->To = "[email protected]";


@$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

Link to comment
https://forums.phpfreaks.com/topic/88261-cant-send-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.