English 中文(简体)
当域由媒体寺院主办,电子邮件由域名托管时,即与PHP发送电子邮件。
原标题:Send email with PHP when domain is hosted by Media Temple and email is hosted by domains.live.com

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

问题回答

如果你在别处重新收发邮件,你需要为服务器拨打当地邮件。

http://kb.mediatemple.net/questions/519/How+to+enable+or+++or+disable+or+andable+and+ mail+foryour+server%3F

由于生活是您的电子邮件的主机,它可能立即阻挡或发送即将到来的电子邮件,以便敲响钟。 您的网络服务器与活的电子邮件服务器不同,因此可能认为它正在发送假信。

You might also want to look into sendgrid; they put your server IP on a whitelist and your emails will DEFINITELY get through.

希望这一帮助!

你们可以使用像PHP邮递这样的东西,使自己更容易使用员工和管理当局协调会邮件。 这无疑是比使用PHP的邮电线上所建的更好的解决办法,因为PHP邮件使你更妥善地处理查封事宜、接收人处理等,而不必写你的负责人通过邮件发送。

You could also send from MediaTemple s server and just set the host name as your domain. It doesn t have to match the MX record although spam filters take notice of that and so you ll need to configure your domain for SenderID and SPF at the minimum so that the MediaTemple host is seen as a valid email sender for your domain.





相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...

热门标签