Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2009
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to track an event

    Hi

    The line of code below is not working.

    sendMail($to,$name, $subject, $from, $message);

    All variables tested just below the line with echo command. I see no reason for it not to work.

    I have more of this code in other parts of the .php and it works fine.

    No error message as I run the page. But the e-mail is not sent.

    It there a way to track this line of code to see details of what is happening to it ?

    Something as see a log file of this event or even erros stored to a variable ?

    Moises

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    SendMail isn't a PHP function. Assuming that the error handling is correct (since there is no code definition here I can only assume) and the mail verified as queued, than this isn't a PHP issue, its an issue with the smtp server. You can check your smtp error logs to see what it did with the message.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •