Jump to content

MainStWebGuy

Members
  • Posts

    59
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

MainStWebGuy's Achievements

Member

Member (2/5)

0

Reputation

  1. Dear all powerful and all knowing Jacques, I don't know much, as i'm a noob (stated earlier), so calm down lol. I appreciate your feedback and will look into alternatives. thank you hail, long live, blah blah
  2. I'm hoping to receive tips or hints as to why it might be failing. I, of course, try to fix any and all bugs before launch through multiple rounds of testing, but, as i'm sure you know, that doesn't always cover everything. I was hoping to add some code that will, in the event of the form not sending, at least get a clue as to where to start looking.
  3. Awesome info, and thanks mac_gyver - can you give me a simple code example (I'm a noob man ) would i just do something like .... ... $failedMessage .= $php_errormsg; $failedMessage .= $ErrorInfo; ... something like that?
  4. Thanks Ginerjm I haven't checked into phpmailer in a while, and now i'm wondering if my host already has it as an option for me... i'll check into it. I guess i was wondering if there was a way i can collect php error(s) and send them along in the email, just like how i can "echo" them to the screen while i'm developing to help catch random mistakes in my code. Thanks again! Jason
  5. Hello all, I have a couple of simple php mail forms i use on a couple sites for sending basic contact information in email form when submitted. The code is pretty simple, and i use an IF statement to check to be sure the email has been sent, and if it fails, I am notified by email: #send the email if(mail($to, $subject, $message, $headers)) { ... send confirmation message... } else { #notify webmaster mail($toWebmaster, $failedSubject, $failedMessage, $failedHeaders); } My question is... in the $failedMessage, is there a way i can include any error information on why the form might be failing? If so, how would i do something like that? Thanks in advance, Jason
×
×
  • 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.