billjust Posted July 22, 2014 Share Posted July 22, 2014 Hi- I've got a few simple forms on my site that get relayed over to our email server when the submit button is hit. The forms, in turn, get emailed to the predetermined recipients from that mail server. It's been working great for years, but we changed our mail server recently and didn't point the php.ini config to the new server and we've missed some form submissions for a few days (I know, I know). Looking at the PHP error log, I've got about 140 "PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 530 5.7.1 Client was not authenticated in " entries, which tells me we missed 140 form submissions. My question is: is there any way to retrieve these form submissions? Are they sitting someplace on my site that I can extract them from? Do they literally just disappear if they can't get to the SMTP server? Many thanks in advance for any responses! Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 22, 2014 Share Posted July 22, 2014 is there any way to retrieve these form submissions? Are they sitting someplace on my site that I can extract them from? I very much doubt it, Unless either your script records the submissions somewhere or your SMTP server dumps the failed messages somewhere on the server. I've got about 140 "PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 530 5.7.1 Client was not authenticated in " entries, Sounds to me your new SMTP server requires authentication before emails can be sent. PHP's built in mail() function does not support servers that require authentication. In this case you'll need to use a third part PHP script called PHPMailer instead. Quote Link to comment Share on other sites More sharing options...
billjust Posted July 22, 2014 Author Share Posted July 22, 2014 Thanks- I was afraid they had vanished. I'm just surprised they vanish when they aren't received by the SMTP box. I would have thought there would be some type of retention. Thanks again! Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 22, 2014 Share Posted July 22, 2014 I would have thought there would be some type of retention. Any data sent to the server is only held in memory temporarily. It will not permanently retain the information from a request unless you specifically tell it what it is want to stored and where. If the data sent from your form is important then maybe you should consider saving it in a database first before emailing it the recipient. Quote Link to comment 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.