Thread: PHP-mail

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    PHP-mail


    hello everyone,

    i have created a registration form in php,which after registration sends an email to the users mail-id.
    but the thing is i dont know what all server settings are needed for doing this,i have my outlook configured to send n recieve mails.
    what should i do to send mail.
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6351
    Well (a) it has nothing to do with outlook.

    How do you plan on sending the email? Where is this site hosted? What account are you sending from?

    Look into phpmailer, it's a class that handles much of this for you.

    Comments on this post

    • badger_fruit agrees : phpmailer for the win
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0
    Originally Posted by ManiacDan
    Well (a) it has nothing to do with outlook.

    How do you plan on sending the email? Where is this site hosted? What account are you sending from?

    Look into phpmailer, it's a class that handles much of this for you.

    currently m not hosting anywhere, m running my scripts on localhost (xampp)..i m new to this can u guide me the steps for mailing.
  6. #4
  7. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6351
    use mail(). See if it works.

    If not, you need to install a mail server, configure it properly, and point PHP to it. There are tutorials and manuals out there for it.

    There's also articles on how to configure PHP mailer to use gmail as an outgoing host.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo