Send Email PHP script cannot receive

help!

I want to send an email with php this is a script

<?php if (isset($_POST['email'])) //if "email" is filled out, send email { //send email $email = $_POST['email'] ; $subject = $_POST['subject'] ; $message = $_POST['message'] ; mail(" faimaknyus@gmail.com ", $subject, $message, "From:" . $email); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='email.php'> Email: <input name='email' type='text'><br> Subject: <input name='subject' type='text'><br> Message:<br> <textarea name='message' rows='15' cols='40'> </textarea><br> <input type='submit'> </form>"; } ?> 

when I send im I don't get this link to my experiment → http://goo.gl/2bDcLL

+4
source share
1 answer

This code works. tested it. Make sure the SMTP settings on your website are set correctly. To do this, you can contact your hosting provider.

0
source

Source: https://habr.com/ru/post/1501848/


All Articles