I am attempting to send an email to [mobile number]@vtext.com to send an SMS. Here is the code that I am using:
$headers = 'From: webmaster@notice.com' . "\n" .
'Reply-To: noreply@notice.com' . "\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, '', $body, $headers);
However, the message does not go through, I receive a message failure notification shortly after. The failure is as this:
Return-Path: <>
X-Original-To: loganwilliams@bazooka.dreamhost.com
Delivered-To: loganwilliams@bazooka.dreamhost.com
Received: from smarty.dreamhost.com (smarty.dreamhost.com [208.113.175.8])
by bazooka.dreamhost.com (Postfix) with ESMTP id D48DAD4728
for <loganwilliams@bazooka.dreamhost.com>; Wed, 25 Jul 2007 19:36:41 -0700 (PDT)
Received: by smarty.dreamhost.com (Postfix)
id C679DEE23C; Wed, 25 Jul 2007 19:36:41 -0700 (PDT)
Date: Wed, 25 Jul 2007 19:36:41 -0700 (PDT)
From: MAILER-DAEMON@smarty.dreamhost.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: loganwilliams@bazooka.dreamhost.com
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="CDE1EEE260.1185417401/smarty.dreamhost.com"
Message-Id: <20070726023641.C679DEE23C@smarty.dreamhost.com>
This is a MIME-encapsulated message.
--CDE1EEE260.1185417401/smarty.dreamhost.com
Content-Description: Notification
Content-Type: text/plain
This is the Postfix program at host smarty.dreamhost.com.
I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<[mobile number]@vtext.com>: host smtpsp1.vtext.com[66.174.3.30] said: 550 SMTP
connection refused (in reply to DATA command)
--CDE1EEE260.1185417401/smarty.dreamhost.com
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; smarty.dreamhost.com
X-Postfix-Queue-ID: CDE1EEE260
X-Postfix-Sender: rfc822; loganwilliams@bazooka.dreamhost.com
Arrival-Date: Wed, 25 Jul 2007 19:36:40 -0700 (PDT)
Final-Recipient: rfc822; [mobile number]@vtext.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host smtpsp1.vtext.com[66.174.3.30] said: 550 SMTP
connection refused (in reply to DATA command)
--CDE1EEE260.1185417401/smarty.dreamhost.com
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: from bazooka.dreamhost.com (apache2-ugly.bazooka.dreamhost.com [208.113.175.89])
by smarty.dreamhost.com (Postfix) with ESMTP id CDE1EEE260
for <[mobile number]@vtext.com>; Wed, 25 Jul 2007 19:36:40 -0700 (PDT)
Received: by bazooka.dreamhost.com (Postfix, from userid 1048828)
id CC039D4737; Wed, 25 Jul 2007 19:36:40 -0700 (PDT)
To: [mobile number]@vtext.com
Subject:
From: webmaster@notice.com
Reply-To: noreply@notice.com
X-Mailer: PHP/5.2.2
Message-Id: <20070726023640.CC039D4737@bazooka.dreamhost.com>
Date: Wed, 25 Jul 2007 19:36:40 -0700 (PDT)
test message 5
--CDE1EEE260.1185417401/smarty.dreamhost.com--
Sending an email in my email client works fine, and the message gets through as it should. Does anyone have any idea what I am doing wrong, and how I can fix it?
Any help would be appreciated.
Thanks,
Logan Williams