SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: hosting help

  1. #1
    SitePoint Zealot
    Join Date
    May 2002
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hosting help

    I am thinking of trying to host my small site on my own machine. I am using IIS 5.0 and php. However I would like to use the "mail();" feature in php. What mailer program do I use? Did I make sense?

    Thanks

  2. #2
    ********* Celica Lover Coomer's Avatar
    Join Date
    Apr 2002
    Location
    Not worth the drive
    Posts
    474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll need to go into your php.ini file and modify this line:

    SMTP = smtp.yourmailserver.com

    Your isp probably provided you with a smtp server to send email. You'll just need to change the SMTP line to that in your php.ini file.
    + Celica =
    6G Celicas :: My '94-99 Toyota Celica resource

  3. #3
    SitePoint Zealot
    Join Date
    May 2002
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the quick reply, I have one more questions. Is it possible to have one mail server for in comming mail and one for online forms? The reason I has is that I use everyone.net for my regular emails, and only need the "mail()" for online forms. Is that a possibility?

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you use the mail function, you can define who the sender is. If you leave it blank it will default to the name of your machine. In this manner you really don't need more than one smtp server.

    Sketch
    Aaron Brazell
    Technosailor



  5. #5
    ********* Celica Lover Coomer's Avatar
    Join Date
    Apr 2002
    Location
    Not worth the drive
    Posts
    474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Isn't everyone.net just used for offering email to your site's visitors? It doesn't look like it uses PHP, so I think that you'd be fine using mail() for sending email from your form as long as you changed the SMTP line in your php.ini. I don't think it'd affect the everyone.net mail, but you might want to ask them to be sure.
    + Celica =
    6G Celicas :: My '94-99 Toyota Celica resource

  6. #6
    SitePoint Zealot
    Join Date
    May 2002
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GREAT thanks everyone. Just so it is clear in my mind, all I have to do is change the php.ini with smtp.yourmailserver.com, Is there anything else I need to do with IIS? As you can see, this will be my firt time setting something like this up.

    Thanks for everyone's help.


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
  •