www.webdeveloper.com
Results 1 to 5 of 5

Thread: sendmail function not sending out email

  1. #1
    Join Date
    Oct 2010
    Posts
    22

    sendmail function not sending out email

    I have this function iv edited my php.ini to link to my domain but it still does not send any mail iv also edited my sendmail.exe does anyone have any idea's on what i could do to make this work. Im using smtp to send out

    send_mail( 'info@myworld.com',
    $_POST['email'],
    'Registration System Demo - Your New Password',
    'Your password is: '.$pass);

    $_SESSION['msg']['reg-success']='We sent you an email with your new password!';
    }
    else $err[]='This username is already taken!';
    }

    if(count($err))
    {
    $_SESSION['msg']['reg-err'] = implode('<br />',$err);
    }

    header("Location: Home.php");
    exit;
    }

  2. #2
    Join Date
    Jan 2004
    Posts
    484
    What are you running php with?
    Natdrip :P
    "water go down the hole" - plucky duck

  3. #3
    Join Date
    Oct 2010
    Posts
    22
    I'm running the php on my wamp server

  4. #4
    Join Date
    Sep 2012
    Location
    serbia
    Posts
    62
    you need to change in php my ini [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = youprovider
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = your@gmail.com

  5. #5
    Join Date
    Jan 2009
    Posts
    3,346
    Where is send_mail() defined? The PHP built-in is mail().

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles