Okay
  Public Ticket #1203788
mail and registration php not working
Closed

Comments

  • Priya started the conversation

    Hi

    I am using your product and the reservations and contact forms do not work. See below for the code – they used to work now and they are not working and I can’t seem to figure out why.

    Mail:

    <?php if(isset($_POST[‘email’])){ $mailTo = “[email protected]”; $subject = “mail from web”; $body = “New message from web

    FROM: ”.$_POST[‘email’].”
    NAME: ”.$_POST[‘name’].”
    COMMENTS: ”.$_POST[‘message’].”
    ”; $headers = “To: Elixir <”.$mailTo.”>\r\n”; $headers .= “From: ”.$_POST[‘author’].” <”.$_POST[‘email’].”>\r\n”; $headers .= “Content-Type: text/html”; //envio destinatario $mail_success = mail($mailTo, utf8_decode($subject), utf8_decode($body), $headers); } ?>

    Reservations:

    <?php if(isset($_POST[‘reservation_email’])){ $mailTo = “[email protected]”; $subject = “mail from web”; $body = “New message from web

    FROM: ”.$_POST[‘reservation_email’].”
    NAME: ”.$_POST[‘reservation_name’].”
    PHONE: ”.$_POST[‘reservation_phone’].”
    DATE: ”.$_POST[‘date’].”
    TIME: ”.$_POST[‘time’].”
    PARTY: ”.$_POST[‘party’].”
    COMMENTS: ”.$_POST[‘reservation_message’].”
    ”; $headers = “To: Nirvanis <”.$mailTo.”>\r\n”; $headers .= “From: ”.$_POST[‘author’].” <”.$_POST[‘reservation_email’].”>\r\n”; $headers .= “Content-Type: text/html”; //envio destinatario $mail_success = mail($mailTo, utf8_decode($subject), utf8_decode($body), $headers); } ?>

  •  840
    Jelly replied

    Hi,

    Maybe you can provide ftp information so I can check it with my self?

    Please provide your information via private reply.

    Best Regards,
    Jelly Team

  •   Priya replied privately
  • Priya replied

    Hi


    I sent a private message and havent heard back yet - were you able to take a look at the ftp?

  •  840
    Jelly replied

    Hi,

    Seems no problem with our code or functions PHP in your hosting provider but this issue maybe by the configurate in your hosting.

    Some case the email will go to the email box in Cpanel or they had block function send email PHP, please contact hosting provider and try get help from them.

    Best Regards,
    Jelly Team

  • Priya replied

    are you sure because I do not have email set up under Cpanel, i've tested it with multiple email addresses even my personal one and yet I do not receive anything

  •  840
    Jelly replied

    Hi,

    Because the server will allow or setup default the email function, so maybe you can take your time and ask your hosting provider about it first?

    Best Regards,
    Jelly Team

  • Priya replied

    i just spoke to the server for about 30 minutes and they have no idea why it isnt working, this used to work by the way

  • Priya replied

    this is what they said: 

    We recommend you to add SMTP verification and SMTP port in the settings of the file for the correct word and for using third-party email address.

    they are saying that the file does not have those settings in the file


  •  840
    Jelly replied

    Hi,

    You can get our smtp file and ask your hosting provider how to config it, because it's difference in each hosting server.

    Best Regards,
    Jelly Team