Joomla in WAMP

Posted on 2009-04-27
Last Modified: 2012-05-06

Installed Joomla in WAMP server for windows. The setup was smooth and I am able to use the administrator section perfectly.

When I created a new account, it gives error: Could not instantiate mail function
Also I didnot receive any email for activating the user account.
What should I do in my php setttings so that Joomal user registration works.
Question by:Haripriya Sathiish
    LVL 4

    Expert Comment

    Configure some smtp email account for sending mails at Joomla. Like google or hotmail.
    WAMP server does not has its own mail server.
    If you choose to work with gmail, you will also need to change default smtp port for your Joomla installation. Look here for details:
    LVL 16

    Author Comment

    by:Haripriya Sathiish

    Yes, I have used my gmail account for sending emails. Can you tell specifically what smtp address I should give?
    LVL 4

    Expert Comment

    gmail smtp server uses port 465 instead of 25 for sending mails.

    1. First way: In your smtp settings in Joomla try to input as your server

    2. Second way:

    If you look in the file here:  includes\phpmailer\     It's called: class.phpmailer.php

    Find line number  158 and you should see this:

    *  Sets the default SMTP server port.
    *  @var int
    var $Port      = 25;

    Change 25 to 465 for gmail.
    LVL 16

    Author Comment

    by:Haripriya Sathiish
    I get the same error.
    LVL 16

    Author Comment

    by:Haripriya Sathiish
    any one?
    LVL 2

    Accepted Solution

    Hi i do some research and found this...
    try this:

    1. download
    2. download Joomla
    3. download
    4. unzip
    5. edit php.ini at xampplite\apache\bin\php.ini




    6. delete files and folders in xampplite\htdocs\
    7. unzip Joomla in xampplite\htdocs\
    8. unzip in xampplite\htdocs\ ('Yes' to replace)
    9. execute setup_xampp.bat in xampplite\
    10. execute xampp-control.exe in xampplite\, then start Apache and MySql
    11. open web browser, then goto http://localhost/
    12. install joomla
    13. delete the folder xampplite\htdocs\installation\
    14. open web browser, then goto http://localhost/administrator/
    15. enter administration login, then goto Global Configuration
    16. select Server tab
    17. change Mailer = SMTP Server
    18. change Mail from =
    19. change SMTP Authentication = Yes
    20. change SMTP Security = TLS
    21. change SMTP Port = 465
    22. change SMTP Username = myadd
    23. change SMTP Password = mypwd
    24. change SMTP Host =
    25. click Save
    26. register in the front-end

    -under windows xp environment
    -gmail free account
    -myadd must be replaced by your gmail username
    -mypwd must be replaced by your gmail password

    you must use gmail accounts for this setup. yahoo free accounts doesn't allow us to access there
    smtp server. in registering, i think joomla connects first to your smtp server, from your
    smtp server it sends the mail to other mail servers (such as yahoo or gmail) depending on the
    email address that you specified to send you the activation letter.

    Other reference:

    Open in new window

    LVL 2

    Expert Comment

    Else try this...

    Goto Admin panel > Global Configuration > Server > Mail Settings > Mailer  and select SENDMAIL there,instead of PHP MAIL FUNCTION.
    If the above point doesnt solve your issue,then the last best thing is to contact your webhost and ask them to rectify the PHP Mail Function in the PHP in their server and also ask them to upgrade the PHP to the latest version.
    LVL 4

    Assisted Solution

    there is a patch for joomla to use gmail.
    U need to register to download files.
    LVL 16

    Author Comment

    by:Haripriya Sathiish
    Thank you so much for all your efforts.
    I will go through the suggestions and get back to you by this weekend.
    Many thanks.
    LVL 16

    Author Closing Comment

    by:Haripriya Sathiish
    Many Thanks

    Featured Post

    Course: HTML5 Specialist

    HTML5 development skills are critical to all developers. HTML5 is the foundation to almost any development process. That's why business, design studios, development shops and other organizations need HTML5 developers. Get your foot in the door as a HTML5 specialist.

    Join & Write a Comment

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now