SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member AMC's Avatar
    Join Date
    Jul 2001
    Location
    Sesimbra/Portugal
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP mail function

    Hi, I'm trying to implement the mail function :
    -------
    $message =...

    mail($newemail,"Here is your Password",
    $message, "From:AMC <amc@netc.pt>");
    -------

    but I'm always getting this error :

    Failed to obtain socket handle in...

    I'm running the script in my home PC (win2k) for debuging purposes.
    I already changed the PHP.ini :

    -------
    [mail function]
    ; For Win32 only.
    SMTP = smtp.netc.pt ; for Win32 only

    ; For Win32 only.
    sendmail_from = amc@netc.pt ; for Win32 only

    ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
    ;sendmail_path =
    -------

    Where did i go wrong ?
    Can someone help ?

  2. #2
    code addict Abstraction's Avatar
    Join Date
    Apr 2001
    Location
    Des Moines, IA
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure you have your SMTP service up and running.

    -Just an idea.


Bookmarks

Posting Permissions

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