vCard

Name:
$name
Email sender:
$email
Comment:
$message
Copyright $current_year vCard
"; //send email using PHPMailer $mail = new PHPMailer(true); //Recipients $mail->setFrom('no-reply@mydomain.com', 'Company Name'); // which email will be sent from $mail->addAddress('4in1telecommunications@gmail.com', 'Company Name'); // who needs to send a letter // Content $mail->CharSet = 'UTF-8'; $mail->IsHTML(true); $mail->Subject = 'Contact Form'; // subject of the letter $mail->Body = $body; $mail->AltBody = 'Name: $name, Email sender: $email, Comment: $message'; if ($mail->send() && $errorMSG == ''){ echo 'success'; } else { if($errorMSG == ''){ echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } else { echo $errorMSG; } }