1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Need Help With Php mail

Discussion in 'Web Design & Development' started by Howman, Apr 12, 2010.

Thread Status:
Not open for further replies.
  1. Howman

    Howman Thread Starter

    Apr 6, 2008
    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]');

    $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 ( 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


    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.
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/916495

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice