Jump to content

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 = "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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.