Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

TheLovableCodeyMan's Achievements


Member (2/5)



  1. Oohhh yes, what was that saying exactly? Let's see - oh yes, that's right: something about a workman being unable to do a job with shit tools & a shit platform? That the one?
  2. I'm sorry but when one email is sent and one isn't, then that's just absolutely stupid and ridiculous. They use the same server credentials and this has works flawlessly before. I am genuinely so angry, so fuming, right now I could absolutely scream! I am so so sick to the back teeth of ripping my hair out just because someone one day said "Hey, I know what I will do, I'm going to invent a code that will piss everyone off and waste everyone's time, because I'm a total psychopath. I'm going to invent coding language that will just have a mind of it's own!" . OK so my code has decided "I know what I'm going to to, I'm going to send one email, but you know what? Just because I feel like a total arse today, I'm just not going to send the other email" That is the only explanation I can come up with. I have tried to be calm, I have tried to be patient but this piece of crap is getting on my last nerve. It's code, not a disobedient child! I tell it to do something, it does it. It gives me errors through diagnostic coding, I correct those errors, it's fixed. But oh no, because as soon as I fix one error it says "Oh, sorry, me had, I forgot to tell you, there's also this error as well..." It's code. It's not an emotional, indecisive human, IT'S BLOODY CODE! It's that simple. The sooner code starts behaving like code and not a stupid dumb human being, the happier everyone will be.
  3. Lol you're telling me! Finicky isn't the word, the words "absolute" and "pig" more like! 😄
  4. I appreciate that, but this was worked flawlessly previously, now it's decided it doesn't want to know. This is why I'm fuming.
  5. I did, it's going to the Thank You page, but when I do: I get the "echo" message but no diagnostic information - so still no idea why the code/server is deciding to not do as it's told. I'm going to come back to this tomorrow but I'm trying to keep my cool with this but it's just not working. Everything I try just does not want to know and even the diagnostics is giving me no reason for this, & right now I'm really beginning to lose my patience with this, I'm getting no error messages, warnings etc but I am getting just the: "Message failed. Try again"; which helps about as much as a chocolate fireguard.
  6. Sorry, just reread your post. This is what happens when you code and servers decide they're going to take a day off and I'm famished, the issues still persists, I'm getting the confirmation email but not getting the form information, and yes, I have turned on at the top of the page right after the first opening tag.
  7. The website is for the UK market, so its irrelevant for over here, but it's going to be integrated into a US branch soon. so was easier to just disable this as opposed to coding in later on. Could this be a problem for this situation? Because I can feel my blood pressure starting to rise now, every time I run the suggested diagnostic testing, it throws up more errors, which I rectify, only to throw up even more errors.
  8. UPDATE - Revised Code, same problem <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $title = $_POST['title']; $first = $_POST['first']; $surname = $_POST['surname']; $email = $_POST['email']; <!--sender@xyz.com--> $internationalCode = $_POST['internationalCode']; $number = $_POST['number']; $userMessage = $_POST['userMessage']; $company = $_POST['company']; $Industrytype = $_POST['Industrytype']; $inc_status = $_POST['inc_status']; $state = $_POST['state']; $email_from = "$first $surname <apikey>"; $Password = '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'; $email_subject = "Website Enquiry from $first $surname"; $messageTo = "sender@xyz.com"; $email_body = "User title: $title. \n". "User First Name: $first. \n". "User Surname Name: $surname. \n". "User email: $email. \n". "International Dialing Code: $internationalCode. \n". "User Contact Number: $number. \n". "Company Name: $company. \n". "Incorporation Status: $inc_status. \n". "Industry type: $Industrytype. \n". "User Message is: $userMessage. \n". "State of Incorporation: $state. \n"; $headers = "From: $email_from"; mail($messageTo, $email_subject, $email_body, $headers, "-fweb-support@xyz.co.uk"); header('Location: https://www.xyz.com/help/thank_you.html'); $respond_subject = "Thank you for your message"; /* Prepare autoresponder message */ $respond_message = " Hi $first, Thank you for messaging to us. We will aim to reply to you within 24 hours. In the meantime, why not follow our other stories via, as well as following, our Facebook page. Simply go to https://www.facebook.com/xyz/ or Message us on Facebook at http://m.me/xyz To see how your data is processed, please visit our Data Protection Policy here: https://www.xyz.com/privacy/privacy_central.html Yours sincerely, xxx"; $headers = 'From: xyz <notifications@xyz.co.uk>' . "\r\n" . 'Reply-To: $email' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); /* Send the message using mail() function */ mail($email, $respond_subject, $respond_message, $headers, "-fno-reply@xyz.co.uk"); //} ?>
  9. Ah, first or second? If your first, people have varying side effects but I was fine, had what felt like a bruise for a few days but other than that I was perfecto. So I did the following: & had the following message Line 34 is: I don't see why this, of all things, wound hinder the process. But it looks like this is the culprit.
  10. Lol not quite, the confirmation email is being sent to sender@xyz.com - which is brilliant - but no form information is being sent to receiver@xyz.com. Looking at the SMTP activity records with SendGrid, the "receiver" email address is not mentioned anywhere, so the server is not even attempting to send the form data. There are no block or suppressions on SendGrid either - I checked as I have been caught out by that before 😄 The receiver@xyz.com is still the issue 😄
  11. So a wee update for you's all (No idea why I launched into Scottish there - I'm from nowhere near Scotland!) 😄 I'm no longer receiving error messages - which is good - It goes straight to the "Thank you" page - which is good, and the Confirmation Email is being received with no issues. Looking at the SMTP activity, the receiver@xyz.om is not recorded anywhere, so it's not even attempting to send the form information.
  12. Awesome, so placing immediately after the: so therefore: Is that correct? Regards The LovableCodeMan
  13. Sure, I've tweaked some changed and have managed to reduce this down to: Notice: Array to string conversion in /homepages/4/d860010751/htdocs/scripts/mail.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /homepages/4/d860010751/htdocs/scripts/mail.php:32) in /homepages/4/d860010751/htdocs/scripts/mail.php on line 42 Which makes no sense because line 32 is ""State of Incorporation: $state.\n"."
  • 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.