I've got a strange problem I setup my SMTP server on windows server for my PHP IIS and I've been sending mails from there but while my gmail account receives this mail my PHP hosting server doesn't receives these mails. I thought it might be blocked or spammed on my PHP server but it seems clear. Any ideas anyone?
SOLVED IT with adding my domain's name on sent_from line in PHP.ini file
here is my PHP code:
if (isset($_POST['submit'])) {
$msg .= "Time: " . date("m/d/y g:ia", time()) . "\n";
$msg .= "Company Name: " . $compname . "\n";
$msg .= "Booking Name: " . $opp['opname'] ."\n" ;
$msg .= "Record Manager: " . $opp['recmanager'] ."\n" ;
$msg .= "Create Date: " . substr($opp['createdate'],0,-7) ."\n" ;
foreach ($_POST as $field=>$value)
{
if ($field != "submit") $msg .= $field . ": " . $value . "\n";
}
mail("xxxx@gmail.com", "Modification Request", $msg, "From:" . $_POST['email'] . "");
}
Gmail "Show Original" dump
Delivered-To: xxx@gmail.com
Received: by 10.49.3.103 with SMTP id b7csp172675qeb;
Tue, 26 Feb 2013 07:50:38 -0800 (PST)
X-Received: by 10.68.143.167 with SMTP id sf7mr24143724pbb.21.1361893838188;
Tue, 26 Feb 2013 07:50:38 -0800 (PST)
Return-Path:
Received: from CRMSRV01 (60-241-185-105.static.tpgi.com.au. [60.241.185.105])
by mx.google.com with ESMTP id ak6si1269596pbd.104.2013.02.26.07.50.36;
Tue, 26 Feb 2013 07:50:38 -0800 (PST)
Received-SPF: neutral (google.com: 60.241.185.105 is neither permitted nor denied by best guess record for domain of string@crmsrv01) client-ip=60.241.185.105;
Authentication-Results: mx.google.com;
spf=neutral (google.com: 60.241.185.105 is neither permitted nor denied by best guess record for domain of string@crmsrv01) smtp.mail=string@crmsrv01
Received: from CRMSRV01 ([127.0.0.1]) by CRMSRV01 with Microsoft SMTPSVC(7.5.7601.17514);
Wed, 27 Feb 2013 02:50:33 +1100
Date: Wed, 27 Feb 2013 03:50:33 +1200
Subject: Cancel Request
To: xxx@gmail.com
X-PHP-Originating-Script: 0:cancel.php
From:test@mail.com
Return-Path: string@CRMSRV01
Message-ID:
X-OriginalArrivalTime: 26 Feb 2013 15:50:33.0901 (UTC) FILETIME=[0328A5D0:01CE1439]
Time: 02/27/13 3:50am
Company Name: XXXX
Booking Name: XXXXXXXXXXXXXX
Dropped Message Detail:
Reporting-MTA: dns;CRMSRV01
Received-From-MTA: dns;CRMSRV01
Arrival-Date: Wed, 27 Feb 2013 04:09:30 +1100
Final-Recipient: rfc822;xxn@company.com
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Comments
Post a Comment