Skip to content

Contact form for sending emails via PHP code with PHPMailer.

Notifications You must be signed in to change notification settings

Sabina1205/Send-email-with-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send-email-with-php

Contact form for sending emails via PHP code with open-source PHP library.

Connect PHPMailer with PHP code.

 use PHPMailer\PHPMailer\PHPMailer; 
 require_once "PHPMailer/PHPMailer.php";
 require_once "PHPMailer/SMTP.php";
 require_once "PHPMailer/Exception.php";

 $mail = new PHPMailer();

Include id attributes from contact form.

$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$body = $_POST['body'];

form-php

Set up SMTP and EMAIL settings.

Releases

No releases published

Packages

No packages published

Languages