SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    email configuration

    Hi guys, my computer is connected on the internet and I have an static IP address and using a proxy server. How am I be able to configure or create a PHP script that will send an email?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You need a mail server for PHP to be able to send mail. There is no mail server in a normal Windows install, so you either have to download, configure, and run one, or point PHP to the mail server of your ISP or another host.

    The associated settings (smtp, smtp_port) are in php.ini

    It might be a good time to find the contract you agreed to when signing up for your internet service. ISPs very much do not like spam originating from their networks, so they tend to have some strict rules about mail coming from your computer... some forbid it entirely.

  3. #3
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much Dan Grossman.

  4. #4
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On my windows development machine I configure PHP (in php.ini) to use my ISP to send mail. Looks a bit like this:
    Code:
    SMTP = mail.myisp.com.au
    smtp_port = 25
    sendmail_from = myaccountname@myisp.com.au
    The sendmail_from is the email address associated with my account at the ISP.
    The SMTP value is the outgoing server they provide.


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
  •