Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 55

Thread: PHP SMTP_port. . . huh?

  1. #41
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Just a quick question. Are you using your local server to test before uploading to the live site? If so, why don't you just upload your web hosting server so that you can see for sure if it works. As said before, your code is fine and should work; but you need to have an actual mail server running for it to work perfectly.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  2. #42
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can't, sendmail doesn't exist for Windows.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #43
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Twey: Noooooooooooooooooooooooooo!!!

    thetestingsite: There's the problem. I am going to be hosting the site myself (on a windows XP as far as I know-- but it may be linux). Does it make a difference if it's not actually a site yet when I am hosting it myself?

    Speaking of, Twey, would it work on a linux?
    Otherwise, what should I do now? I really need this function.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  4. #44
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Well, if you are going to be hosting it yourself, you will need to make the machine a functional server. This usually means having a web "server" (apache), some server side languages (php, asp, perl, etc), database (mysql, postgresql, etc), and a mail server (hmailserver, iMailServer, sendmail, postfix, etc). I recommend running it on a linux machine as it is usually more reliable; however, I have run hosting machines with Win XP before and it worked fine. I recommend finding a host that already has the server set up for optimal performance and functionality.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #45
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Speaking of, Twey, would it work on a linux?
    Yes.
    I recommend running it on a linux machine as it is usually more reliable
    Also one heck of a lot easier to set up. The basic LAMP environment can usually be installed and configured in a single command.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #46
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by Twey View Post
    Yes.Also one heck of a lot easier to set up. The basic LAMP environment can usually be installed and configured in a single command.
    I couldn't agree more.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #47
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Hate to interupt the bash on microsoft but that's not what I am interested in. I need a fix to make this emailing function work. How do I do it, even if it isn't with gmail? (preferably on windows for now.) Nothing has been going right on this one. . .

    But while we're on servers, what do I need (besides wamp) to turn either an XP or a linux into a server?
    (emailing is still the priority here, though )
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  8. #48
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    as said before:

    This usually means having a web "server" (apache), some server side languages (php, asp, perl, etc), database (mysql, postgresql, etc), and a mail server (hmailserver, iMailServer, sendmail, postfix, etc).
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  9. #49
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hate to interupt the bash on microsoft
    That was an objective statement. It seems you are having quite a lot of trouble setting up a working webserver on Windows. I do too. There's a lot of effort required, which is why packages like WAMP exist, but you're still having issues. On Fedora, this would be:
    Code:
    yum install httpd php
    ... and you're ready to start serving pages (complete with emails if necessary, everything includes sendmail). It's not necessarily a bad point of Windows, but Apache, PHP, and MySQL were all designed for UNIX-like platforms and are used most often on those platforms, and it's consequently a lot easier to work with them there.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #50
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    That's great, but in a nutshell you're saying that I need WAMP (which obviously has apache and PHP and MySQL) and a mail server. My question is: do I need anything else? And, I don't need a mailserver if I am using another site's SMTP, do I?

    EDIT: thanks Twey.
    EDIT2: So, if I did this on a UNIX, what would I need to change in my original script, and would I be able to host the SMTP myself, or would my ISP still mess it up? (if it messes it up, how do I use gmail?)
    Last edited by Jas; 12-22-2007 at 10:59 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

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
  •