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.

Recommended Answers

Use the php mail() function.

Jump to Post

All 2 Replies

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 learning and sharing knowledge.