Need Help With Php mail

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Howman

Thread Starter
Joined
Apr 6, 2008
Messages
1
I am running a website on my pc and I have a script i would like to run and it need the php mail fuction but I can not seam to get it to work my isp blocks port 25 so i was using godaddys email service which you get when you buy a domain name.

My Setup
IIS 7.5
Mysql 5.5.2
php 5.3.2

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtpout.secureserver.net
; http://php.net/smtp-port
smtp_port = 3535

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]
thats what i got in php.ini
now when i run a test php mail script


<?
$headers = 'From: [email protected]s';
mail('[email protected]', 'Test email using PHP', 'This is a test email message', $headers, '[email protected]');
?>

<?php
$to = '[email protected]';
$subject = 'Test email using PHP';
$message = 'This is a test email message';
$headers = 'From: [email protected]s'. "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail('$to', '$subject', '$message', '$headers', '[email protected]');
?>

this is what i get in my email box

Hi. This is the qmail-send program at p3plsmtpa01-05.prod.phx3.secureserver.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <[email protected]>
Received: (qmail 15847 invoked from network); 12 Apr 2010 22:29:30 -0000
Received: from unknown (HELO Mycomputer-PC) (My ip address)
by p3plsmtpa01-05.prod.phx3.secureserver.net (72.167.82.85) with SMTP; 12 Apr 2010 22:29:30 -0000
Date: Mon, 12 Apr 2010 18:29:27 -0400
From: [email protected]s
Subject: $subject
To: $to
X-PHP-Originating-Script: 0:test1.php
$headers

$message

No i heard that maybe pear or phpmailer might be able to help cause my mail might require authentication. I have no idea how to go about setting up ither of those

hoping some might beable to help.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top