SitePoint Sponsor

User Tag List

Results 1 to 22 of 22
  1. #1
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mail Server with PHP's mail()

    I don't think my server (on my computer) has the php mail() function. I also don't have an smtp server.

    I'm trying to install the Invision Power Board php forum. It is working fine, but it cannot send emails. How would I get it to work? Which way should I go? Can anyone please help?

    Forum Link:
    http://www.neofrotnier.com/forum/
    Content Writing Service - Get custom SEO articles for 10$

  2. #2
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you on a Windows or a Linux server?
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2001
    Location
    UK
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will absolutely need to either have a SMTP server installed, or at least access to one (your ISP?). Set this up either in your php.ini file (search for SMTP =) or you can specify it within your application like:
    PHP Code:
    <?php
      define
    ('MAILHOST''smtp.example.com');
      
    ini_set('SMTP'MAILHOST);
    ?>

  4. #4
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or just
    PHP Code:
    ini_set('SMTP''smtp.example.com'); 
    but that will only work on Windows anyways (which is why I asked.)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  5. #5
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Windows XP server, apache 1.3.27 and php 4.0.6

    No, I don't have a mail server setup, and I need help with that. Or, does anyone know of any place that would offer a free email server on their server? Whats an ISP?
    Content Writing Service - Get custom SEO articles for 10$

  6. #6
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In which folder should my php.ini file be located for it to work?
    Content Writing Service - Get custom SEO articles for 10$

  7. #7
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your windows directory.

    an ISP is your Internet Service Provider, you can use the SMTP server they provide you with (the one you use to access your email from your ISP)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  8. #8
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, for email I use hotmail... So, my internet service providers can provide me with a free smtp server, through which i can send emails from forms and forums?

    Also, which folder is the windows folder. I'm not sure about which one to look for. Kinda lame at Operating Systems and all... just good at servers :P
    Content Writing Service - Get custom SEO articles for 10$

  9. #9
    SitePoint Addict Clete2's Avatar
    Join Date
    Mar 2002
    Location
    Columbia, South Carolina
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most Linux distributions come with mail servers, along with almost all kinds of common servers. (As Linux is mainly used by people for servers/work)

    In erlier versions of win, the win folder would be C:\windows, not sure about xp...

    and if your ISP offers e-mail using SMTP, yes, you could set php.ini to use it.
    My Blog
    My Photography Website
    Linux user #339185

  10. #10
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But I don't think they do...
    Any programs that I could use? And what about the windows IIS SMTP server?
    Content Writing Service - Get custom SEO articles for 10$

  11. #11
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Windows 3.0/95/98/Me/XP/2003: C:\Windows\ (Default)
    Windows NT 3.0/4.0, Windows 2000: C:\WinNT\ (Default)

    (Windows 2000 might be C:\Windows, I can't remember now, lol, I don't usually use the defaults.)

    And yes IIS SMTP Server would work.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  12. #12
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh. Ok. Would I place the my.ini and the php.ini files into C:\Windows as well?
    Content Writing Service - Get custom SEO articles for 10$

  13. #13
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you run the MySQL install, it will place the my.ini file into C:\Windows, and PHP looks in there first, then if it doesn't find it, it will look in the directory where PHP is stored.

    But yeah, they both go into C:\Windows\
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  14. #14
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.
    Content Writing Service - Get custom SEO articles for 10$

  15. #15
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are freely available mail servers going about.... I used one on my own local dev box for a while until Windows died and I had to do a clean install... lost the mail server of course

    Try www.mailenabled.com I think the address was ?

    Failing that, go to google.com and search for 'email servers AND Windows' and see what that chucks up.

    Word of warning though - if you are not familiar with how an email server works from the point of view of configuring your own, you may well have trouble understanding the terminology....

    I made mistakes setting up mailenabled. Got it working but after some great difficulty as I didn't understand what a 'PostOffice' was for example, in relation to a 'PoP address', etc etc

  16. #16
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it is

    www.mailenable.com, and the download link your looking for is (version 1.7.03):

    http://www.mailenable.com/download.html#Standard

    Look at their FAQs and tutorials/articles on set up and using it. The download is free w/ no limitations.

  17. #17
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    MailEnable is what I use on my server, excellent software.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  18. #18
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again guys!
    Content Writing Service - Get custom SEO articles for 10$

  19. #19
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, so since you've already figured this one out, whats a Post Office Name?
    Content Writing Service - Get custom SEO articles for 10$

  20. #20
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Like I said - I had a lot of trouble trying to figure it all out

    Cyborg From Dh - Can you help ? If so, maybe I'll get around to installing the server again....

  21. #21
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Once you have a Post Office setup, you can setup domains within that Post Office, for which you can have accounts set up for. An account can recieve mail from however many domains you want within one Post Office. (Also as many addresses for each domain)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  22. #22
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, all I need it to do, is work as an outgoing SMTP mail server, nothing more. How do I get that to work, because I still can't figure it out...
    Content Writing Service - Get custom SEO articles for 10$


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
  •