Originally Posted by
amart79196
Thank you for your suggestions. My mail host doesn't allow for unauthenticated emails so I must use SMTPAUTH.
How exactly do I do this??
Thank you BOTH in advance!
Originally Posted by
RodG
Basically, very few, if any, hosts allow unauthenticated emails, but this does NOT mean that you have to use SMTP or SMTPAUTH with your website. The webserver process itself runs as a valid authenticated user on the system that it is running, meaning that use can use the PHP or sendmail methods *without* any *further* authentication.
In other words, unless you know that the PHP or sendmail methods *don't* work (and I will be very surprised - even shocked if this is the case) then the very least you should do is *try* the suggestion rather than just outright stating that it won't work.
Sorry, I don't know. I'm still having a little bit of trouble decoding the suggestion. ;-)
Cheers
RodG
So as RodG has kindly pointed out before, sometimes my mind and my fingers fight each other for attention. :)
Theory is this: communication is a two way street. Server has to talk to email to authenticate and provide message, email has to talk back to indicate authorization and some sort of status (OK got message, can't send, etc.)
In the two way communication the email system gives up a little something, the details of which I haven't looked into, but the thought is that there should be some unique identifying information that may be beneficial to the host in resolving the issue. So, to that end, logging of information related to the transaction may help the host. Of course we all know they are most likely to deny any issue, but providing them the information may cause it to get resolved.
So, to log information and not stop program execution by logging that information, one can use a php function called trigger_error(data_to_log, status_code). The php manual suggests that the status_code can be omitted and execution will continue, but it is also good to take control of one's destiny. :) Ideally again one would log successful information as well as when the error occurs to provide/assess what the issue is that is causing the trouble. Again, haven't looked into what data to log, whether it is $_SESSION data or something else. So an example of code would be:
Code:
trigger_error($_SESSION, E_USER_WARNING);
and this could be placed in the code stream where the error is generated as well as "after" the error handling for when the message is successfully "received".
Finding that location is now the "tough" part. There is email code at least in 1.5.5 under the vendors folder that in a recent search of email related operations I thought applied.
Hopefully that at least cleared up the thought behind my post, even if only a single step forward in a perhaps lengthy walk. :)
Bookmarks