【问题标题】:SMTP address and portSMTP 地址和端口
【发布时间】:2015-09-15 06:19:15
【问题描述】:

我在 plesk 上有一个域,我想找出 smtp 地址和端口,以便在我的联系我们 Web 表单中使用它们 我使用过 webmail.domainname(也使用过 mail.domainname 和 smtp.domainname),但它不起作用 任何建议将不胜感激

【问题讨论】:

    标签: smtp


    【解决方案1】:

    您实际上并不需要使用它们,您可以尝试以下方法:

    $mail_to_send_to = "name@anydomain.tld";
            $your_feedbackmail = "from@yourdomain.tld";
    
            $sendflag = $_REQUEST['sendflag'];
            if ( $sendflag == "send" )
            {
                    $email = $_REQUEST['email'] ;
                    $message = $_REQUEST['message'] ;
                    $headers = "From: $your_feedbackmail" . "\r\n" . "Reply-To: $email" . "\r\n" ;
                    $a = mail( $mail_to_send_to, "Feedback Form Results", $message, $headers );
                    if ($a) 
                    {
                         print("Message was sent, you can send another one");
                    } else {
                         print("Message wasn't sent, please check that you have changed emails in the bottom");
                    }
            }
    

    【讨论】:

      猜你喜欢
      • 2014-03-14
      • 2023-04-06
      • 2010-10-30
      • 2021-12-11
      • 2014-12-29
      • 2014-04-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-02
      相关资源
      最近更新 更多