voodish logo
Skip to: Content | Navigation | Site map

Joomla E-mail could not be sent [FIXED]

joomla_logo.jpg

A lot of people are experiencing problems with Joomla not sending mail out, notably from the Email Pop window, the system simply returns “E-mail could not be sent”.
In this article we show how to fix the problem quickly and easily.

Problem

Joomla not sending out email via pop up window

Solution

To resolve this problem, open this file:

components/com_mailto/controller.php

Locate the following line of code (approximately line 57):

if($timeout == 0 || time() - $timeout < 20) {

Change the line to the following:

if($timeout == 0 || time() - $timeout > 20) {

Save, Upload and test.
You can also increase the time from 20 to say 50.

You can read more about this bug here

Told you it was an easy fix :D

Related Articles

Comments RSS Feed

15 Comments

  1. KIshan June 3, 2009

    Thanks a lot dude…

  2. Go to Top of the page

  3. Edwin July 6, 2009

    Thanks! Small fix for a big problem!

  4. Go to Top of the page

  5. Allegro July 29, 2009

    This was originally posted here: http://forum.joomla.org/viewtopic.php?f=471&t=376453&start=0

    There are additional fixes posted for users that are experiencing similar email issues.

  6. Go to Top of the page

  7. admin July 29, 2009

    Yes, and here it is in a simple, easy to understand format.

    The correct link is supplied in the post above as the Bug report, where the original fix was derived for your link!

  8. Go to Top of the page

  9. Patsy Caldwell August 20, 2009

    You are a lifesaver! This fixed the problem for me - no problem!

  10. Go to Top of the page

  11. jeanette November 23, 2009

    Thanks a lot!!! Fixed the problem immediately:-)

  12. Go to Top of the page

  13. Mario Juárez May 4, 2010

    Muchas gracias!

  14. Go to Top of the page

  15. Wine and Food Tips September 17, 2010

    Thanks a zillion, this information is useful.

  16. Go to Top of the page

  17. Kobe September 21, 2010

    Thank you!!
    That headache is gone!

  18. Go to Top of the page

  19. Robert October 1, 2010

    This is not a very good solution.

    the sentence :

    if($timeout == 0 || time() - $timeout
    ‘ );
    return false;
    }

    form.submit();
    }
    –>

  20. Go to Top of the page

  21. Robert October 1, 2010

    Sorry above too lengthy message. Fix the problem in mail_to/tmpl/default.php by creating a delay before form.submit().

  22. Go to Top of the page

  23. Shekhar Sagar Srivastava March 4, 2011

    Wohah!!!, Its Works, Thanks Man, Great Job

  24. Go to Top of the page

  25. Ben Jadue June 11, 2011

    After making the changes I still get the

    – Email could not be sent. –

    Using Joomla 1.6.3

  26. Go to Top of the page

  27. Celtica July 6, 2011

    Dude… Thanks so much.
    I have tweaked the mail settings for 3 hours now… nothing works.

    You are the first in like 100 search results that gives me this tip.

    I looked at you sollution for like 20 times to even notice the difference..

    Thanks!!!! This works like a charm.

  28. Go to Top of the page

  29. Amy January 12, 2012

    THANK YOU! Such a small thing was driving me NUTS!

  30. Go to Top of the page

Leave a comment