August 16, 201114 yr Hi There, would anyone be able to advise how I can add SMTP auth to this script? my host has recently dropped PHP Mail and i have become a bit stuck as the contact form i was using now no longer works <?php // Get Data $name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']); $phone = strip_tags($_POST['phone']); $url = strip_tags($_POST['url']); $message = strip_tags($_POST['message']); // Send Message mail( "yournameeeee@gmail.com", "Contact Form Submission", "Name: $name\nEmail: $email\nPhone: $phone\nWebsite: $url\nMessage: $message\n", "From: Forms <forms@example.net>" ); ?> Thanks for your time guys
Create an account or sign in to comment