Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

php mail() function

  • 23-07-2006 09:42PM
    #1
    Closed Accounts Posts: 161 ✭✭


    im trying to get the mail() function working on my apache2.0 server running on window XP home edition, i have php5, so far i think i might have it down to that i still need something like my SMTP isp server to enter it into the php.ini file...where do i get this , or what is it(if i have given it the right name??) and also is there anything else i'd need to get all this to work??


    any help please:)


Comments

  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    Who is your ISP?

    You could always install an SMTP server on your machine and point the php.ini file to localhost.


  • Closed Accounts Posts: 161 ✭✭nude_hamster


    seamus wrote:
    Who is your ISP?

    You could always install an SMTP server on your machine and point the php.ini file to localhost.


    em any idea how i do that?


  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    You could download a free one - www.hmailserver.com is a full-featured mail server, but you could switch off everything up the SMTP server.


  • Closed Accounts Posts: 161 ✭✭nude_hamster


    seamus wrote:
    You could download a free one - www.hmailserver.com is a full-featured mail server, but you could switch off everything up the SMTP server.

    em i can run my mail() function after i have that set up...if yes what will need to change in the php.ini file??


  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    You'll see a line, not sure where, that allows you to insert the name of the mail server, and the email address that you want the mails to come from.


  • Advertisement
  • Closed Accounts Posts: 161 ✭✭nude_hamster


    seamus wrote:
    You'll see a line, not sure where, that allows you to insert the name of the mail server, and the email address that you want the mails to come from.


    ya i assume its the line SMPT =

    [mail function]
    ; For Win32 only.
    SMTP = smtp.isp.net


    but what do i put in??


  • Closed Accounts Posts: 6,151 ✭✭✭Thomas_S_Hunterson


    localhost

    or

    127.0.0.1


  • Closed Accounts Posts: 161 ✭✭nude_hamster


    localhost

    or

    127.0.0.1

    {Warning: mail() [function.mail]: SMTP server response: 550 550 Delivery is not allowed to this address. in C:\.....\email3.php on line 14}

    that is pointing the mail() function in my php code where i just called it
    [mail($to, $subject, $message, $headers);]


Advertisement