success){ $toMail = "hello@hashtagdeveloper.com"; $header = "From: " . $name . "<". $email .">\r\n"; mail($toMail, $subject, $message, $header); $response = array( "status" => "alert-success", "message" => "Your mail have been sent." ); } else { $response = array( "status" => "alert-danger", "message" => "Robot verification failed, please try again." ); } } else{ $response = array( "status" => "alert-danger", "message" => "Plese check on the reCAPTCHA box." ); } } else{ $response = array( "status" => "alert-danger", "message" => "All the fields are required." ); } // $toTemplate = file_get_contents('mail.html'); $message = file_get_contents('inquiry_details.html'); require "PHPMailer-master/class.phpmailer.php"; //include phpmailer class // Instantiate Class $mail = new PHPMailer(true); // Set up SMTP $mail->IsSMTP(); // Sets up a SMTP connection $mail->SMTPAuth = true; // Connection with the SMTP does require authorization $mail->SMTPSecure = "smtp"; // Connect using a TLS connection $mail->Host = "smtp.zoho.in"; //Zoho SMTP server address $mail->Port = 465; //Zoho SMTP port $mail->Encoding = '7bit'; // Authentication $mail->Username = "hello@hashtagdeveloper.com"; // Your full Zoho address $mail->Password = '%Ha$htagdeveloper123!@#%'; // Your Zoho password // Compose //$mail->SetFrom($_POST['emailid'], $_POST['fullname']); $mail->SetFrom("hello@hashtagdeveloper.com", "Hashtag"); $mail->AddReplyTo($_POST['emailid'], $_POST['fullname']); $mail->Subject = "Inquiry - Email Trial"; // Subject (which isn't required) $path = ''; if($_FILES['file']['name']) { $path = 'uploads/' . $_FILES['file']['name']; $up = move_uploaded_file($_FILES['file']['tmp_name'], $path); } // print_r($_POST); $message = str_replace([ '##FULL_NAME##', '##EMAIL##','##TOPIC##', '##CONTACT##','##CONTACT_TYPE##', '##PREFERED_TYPE##','##MESSAGE##' ], [ $_POST['fullname'], $_POST['emailid'],$_POST['topic'], $_POST['contact'],$_POST['prefered_time'], $_POST['contact_type'],$_POST['message'] ], $message); $mail->MsgHTML($message); if($path){ $mail->addAttachment($path); } // Send To $mail->AddAddress("kailajaydeep9@gmail.com", "Kaila Jaydeep"); // Where to send it - Recipient $mail->AddAddress('himanshu.vaghela07@gmail.com', 'Himanshu Vaghela'); // Where to send it - Recipient // echo '
';
        // print_r($mail);
        $result = $mail->Send();  // Send!  
        // print_r($result); die;
        unset($mail);   
        header('Location:thankyou');
    }
?>
    

Let's build something amazing together

Hashtag Infrastructure Hashtag Developer

Ready to work with us?
Tell us more.

Hashtag Developer delivered a mobile-friendly platform to support digital marketing efforts. The team was responsive and provided effective solutions to challenges efficiently. Guided by industry expertise, they managed the project capably and exceeded expectations to deliver a satisfactory product.

Darko Stanimirov(Awwwards young Jury member)
Client Avatar

Let's build something amazing together.

Great people and great things are never there, they are always built. Your project should also be one such beauty, let us help you turn it into a reality.

Let’s do this!