Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to make Email component in XAMPP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 244
    Comment on it

    Hello Reader! On using the PHP from your local host on XAMPP you can do several other things also and we will learn how to configure mail from localhost using its sendmail package ,

    The mail function is called sendmail, It's inbuild package of XAMPP. Below are are steps to configure mail in XAMPP

    Step 1: Open the location, C:\xampp\php\php.ini find extension=php_openssl.dll and you just have to remove the semicolon at the starting of that line to make SSL working for gmail for localhost.

    Step 2: Open file php.ini file find [mail function] and now you have to make some changes on it

    SMTP=smtp.gmail.com
    smtp_port=587
    sendmail_from = youremail@gmail.com
    sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
    

    Step 3: Open th sendmail.ini, you can find this on location:- C:\xampp\sendmail\sendmail.ini. You have to overright the exiting code with the code below

    [sendmail]
    smtp_server=smtp.gmail.com
    smtp_port=587
    error_logfile=error.log
    debug_logfile=debug.log
    auth_username=youremail@gmail.com
    auth_password= emailpassword
    force_sender=youremail@gmail.com
    

    Now you just have done all the configuration, you can execute any mail function and mails will work!

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: