Shard HTML – CONTACT FORM

Home Forums Shard – HTML5 Template Shard HTML – CONTACT FORM

This topic contains 1 reply, has 2 voices, and was last updated by  ab-themes 8 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14280

    tareina
    Participant

    hey guys, I’m finally finishing this project. I only edited ONE spot – do I really need to add my actual email password? I ask because I’ve never had a form like this. Here’s what I’ve edited in the php file:

    *Please let me know what I’m doing wrong. I made the CHMOD permissions 755 – but the form is not working.

    It’s LIVE here: http://saskwebsites.com/IRE/contact.html

    THANK YOU!!!!!

    if($message==’’ && (isset($_POST[‘action’]) && $_POST[‘action’]==’js’)){ require_once(‘class.phpmailer.php’); include(“class.smtp.php”);

    $mail = new PHPMailer();
    $mail->IsSMTP(); // telling the class to use SMTP
    $mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
    $mail->SMTPAuth = true; // enable SMTP authentication
    $mail->SMTPSecure = “tls”; // sets the prefix to the server
    $mail->Host = “smtp.example.com”; // sets GMAIL as the SMTP server
    $mail->Port = 587; // set the SMTP port for the GMAIL server
    $mail->Username = “[email protected]”; // GMAIL username
    $mail->Password = “”; // GMAIL password
    $mail->SetFrom(‘[email protected]’, ‘Mailer’);
    $mail->Subject = $subject;
    $mail->MsgHTML($body);
    $mail->AddAddress(“[email protected]”, “IRE”);
    if(!$mail->Send()) {
    // echo “Mailer Error: ” . $mail->ErrorInfo;
    echo “Error while sending message…”;
    } else {
    echo “OK”;

    #14308

    ab-themes
    Keymaster

    Hi,

    we have similar problem in this ticket. Please read the solution here:

    https://magnior.com/forums/topic/file-uploat-from-a-form-project-planner/

    I hope this help you.

    Kind regards

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Shard HTML – CONTACT FORM’ is closed to new replies.