Send email from a website to a specified email. I am using user@puruinvestech as an email (Google Email Apps is setup). Email contains fields like Name, Mobile, Email of the user in feedback form.

Use the php mail() function.

$to = "user@puruinvestech";
$subject = "Enter subject here";
$body = $_POST['name'] ." ".$_POST["mobile"];
if(mail($to, $subject, $body))
{
echo "mail send";
} else {
echo "error sending email";
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.