termlimit
asked on
SMTP authentication
Hey everyone,
Well I am developing a page to integrate smtp authentication. I have read a couple of the pages already on here. ref here:
https://www.experts-exchange.com/questions/21552409/How-can-I-send-mail-with-SMTP-Authentication-information.html?query=smtp+authentication&topics=103
https://www.experts-exchange.com/questions/21465053/PHP-mail-SMTP-Authentication.html?query=smtp+authentication&topics=103
I am working on the first one at the moment. The problem I am having is that it appears that it is not sending the final "." on a line by itself to start the data transfer. I can see in my mail logs where it authenticates and accepts the from and to, but it then states the following:
11/30/2006 11:11:49 PM - ( 405) 354 Enter mail, end with "." on a line by itself
11/30/2006 11:12:49 PM - ( 405) Transmission did not end with "." on a line by itself. Disconnecting...
As you can see there is almost a full minute between the entries. The page will just sit there with no activity. So this leads me to believe two things:
1. There is a configuration error with my settings in php.ini or IIS.
2. My mail server is incompatible with this script.
I would try phpmailer but I had issues with that when I tried it also. So I figure one question at a time.
Thanks for your time.
Termlimit
Well I am developing a page to integrate smtp authentication. I have read a couple of the pages already on here. ref here:
https://www.experts-exchange.com/questions/21552409/How-can-I-send-mail-with-SMTP-Authentication-information.html?query=smtp+authentication&topics=103
https://www.experts-exchange.com/questions/21465053/PHP-mail-SMTP-Authentication.html?query=smtp+authentication&topics=103
I am working on the first one at the moment. The problem I am having is that it appears that it is not sending the final "." on a line by itself to start the data transfer. I can see in my mail logs where it authenticates and accepts the from and to, but it then states the following:
11/30/2006 11:11:49 PM - ( 405) 354 Enter mail, end with "." on a line by itself
11/30/2006 11:12:49 PM - ( 405) Transmission did not end with "." on a line by itself. Disconnecting...
As you can see there is almost a full minute between the entries. The page will just sit there with no activity. So this leads me to believe two things:
1. There is a configuration error with my settings in php.ini or IIS.
2. My mail server is incompatible with this script.
I would try phpmailer but I had issues with that when I tried it also. So I figure one question at a time.
Thanks for your time.
Termlimit
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
21552409 is not using the php-mail-function. They use a own written function which talks directly to the SMTP-server. Might also be an issue of your mail-server. Are the logs given above from php-mailer or from the mail-server?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The original error with phpmailer was the following:
allow_call_time_pass_refer ence = off
The php_error.log was complaining about that being off and I need to turn it on. I went ahead and turned it on, restarted the service. Now I get no errors from phpmailer, php_error.log, or my mail log.
allow_call_time_pass_refer
The php_error.log was complaining about that being off and I need to turn it on. I went ahead and turned it on, restarted the service. Now I get no errors from phpmailer, php_error.log, or my mail log.
ASKER
Well thanks for the help fellas. I split the points. As hernst42 told me to ditch the original and go back to phpmailer. While ingwa gave me the extending section to look at. Thanks for the promptness. Grade 'A'!
-T
-T
Oh great termlimit, I'm pleased you were able to resolve the issue. I haven't come across the allow_call_time_pass_refer ence = off before and will be sure to look it up shortly. I'm pleased that the link I provided was useful and hope that you enjoy using phpmailer as much as I do. Standardisation of code is so much better, and with solid programming as demonstrated in the classes, you can't go wrong :)
Thanks for the points and the greatds and good luck with your project.
Thanks for the points and the greatds and good luck with your project.
ASKER