I have setup a simple form on my website to test sending email using PHP.
The form posts the input of three text fields to email-form-process.php, which looks like this:
<?php
$email = $_POST[ email ];
$subject = "Test Email Worked";
$msg = $_POST[ comment ];
mail ( $email , $subject , $msg );
header( Location: email-form-confirm.php );
exit();
?>
I echoed out the three inputs in a test to make sure email-form-process.php is receiving them from the form, which it is.
The problem I am having is that the email isn t being received at any of my emails. I have tested it going to a @live.com email and to two custom domains hosted by domains.live.com.
我利用领域.live.com为我的网站提供我的所有电子邮件。 我通过我的东道方——媒体Temple,为处理我的电子邮件的域名建立了我的国家安全局记录。 这对于定期的电子邮件来说确实是巨大的,但我不敢肯定,利用我的习惯领域电子邮件,在PHP发出电子邮件的最佳方式是什么。
www.un.org/Depts/DGACM/index_spanish.htm 当我的领域由媒体Temple主办,我的电子邮件以领域为主时,我如何通过PHP发送我@mydomain.com?。
I have not tried using the SMTP method yet. Would the solution found at the following link be a good direction for me to go? http://www.9lessons.info/2009/10/send-mail-using-smtp-and-php.html
Thank you in advance for any help you can offer!
-Mark