/
/
home
/
u917864144
/
domains
/
dtdesigner.in
/
public_html
EDITOR
/home/u917864144/domains/dtdesigner.in/public_html/send.php
SAVE
CLOSE
<?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; // use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; // Load Composer's autoloader require 'phpmailer/src/Exception.php'; require 'phpmailer/src/PHPMailer.php'; require 'phpmailer/src/SMTP.php'; if(isset($_POST["send"])){ $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'akshay.prajapati424@gmail.com'; $mail->Password = ''; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->setFrom('akshay.prajapati424@gmail.com'); // $mail->addReplyTo('towho@example.com', 'John Doe'); $mail->addAddress($_POST["email"]); // Specify the recipient $mail->isHTML(true); $mail->Subject = $_POST["number"]; // $mail->addEmbeddedImage('path/to/image_file.jpg', 'image_cid'); // Specify the path to your image and a CID $mail->Body = $_POST["message"]; // Use the CID as the src attribute in your img tag // $mail->AltBody = 'This is the plain text version of the email content'; $mail->send(); echo "<script> alert('Send Successfully'); document.location.href = 'contact.php'; </script>"; } ?>
Ln 1, Col 1
FORMAT
WRAP
SAVE FILE
ONLINE
public_html
26 items
12:35:07
TERMINAL FM
×
NAVIGATION
Root
Parent Dir
Refresh
ACTIONS
New Folder
New File
Upload Files
New Symlink
SELECTION
Select All
Deselect
Delete Selected
NEW FOLDER
FOLDER NAME
NEW FILE
FILE NAME
UPLOAD FILES
Click to browse or drag & drop files
No files selected
RENAME
CURRENT NAME
NEW NAME
COPY FILE
SOURCE
DESTINATION NAME
CHMOD
FILE / FOLDER
CURRENT PERMISSIONS
NEW MODE (octal)
755 (rwxr-xr-x)
644 (rw-r--r--)
777 (rwxrwxrwx)
600 (rw-------)
444 (r--r--r--)
CONFIRM DELETE
You are about to delete:
This action is irreversible. All contents will be permanently removed.
NEW SYMLINK
LINK TARGET (path)
LINK NAME
Edit
Preview
Download
Rename
Copy
Chmod
Delete