SMTP Error! Could not connect to SMTP host.

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
jessiered
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Sat Jan 10, 2009 4:50 am

SMTP Error! Could not connect to SMTP host.

Post by jessiered » Tue Jan 20, 2009 9:21 am

SMTP Error! Could not connect to SMTP host.

I would like to know the solution to this problem. I encountered this problem during creation of account in the site (got it from the tutorial Joomla 1.5 essential training).

Please help

Thank you! :)

Jessiered
D * Jessiered * Smile
:: Never Finish a Negative Statement ::

User avatar
dizzi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3136
Joined: Fri Dec 21, 2007 9:36 pm
Location: Yorkshire, UK

Re: SMTP Error! Could not connect to SMTP host.

Post by dizzi » Tue Jan 20, 2009 1:46 pm

This can result from a number of factors pertaining to your SMTP settings. Are you on a local machine or a hosted account? Is there an SMTP erver installed on the web server you are using? Have you configured you SMTP settings? This is specific to your mail provider or ISP.

If you are not up-to-speed with SMTP, you can try the PHP mail() function which is easier to use. Go to: Global Configurations > Server > Mail Settings >
Mailer : PHP Mail Function
Mail from : your_email_address
From Name : your site_name
Sendmail Path : /usr/sbin/sendmail
SMTP Authentication No
SMTP Username :
SMTP Password :
SMTP Host : localhost

Hope this helps
Freedom of expression ... some may try to suppress it but they can never take it away ...
There is no problem a good miracle can't fix.

User avatar
jessiered
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Sat Jan 10, 2009 4:50 am

Re: SMTP Error! Could not connect to SMTP host.

Post by jessiered » Wed Jan 21, 2009 1:26 am

Hi! Thank you for your reply!

I still did not install my site to a webserver as I am still on a localhost (local machine). Yes, I have configured my local settings as I have also received certain error when I did not configured it.

When I do what you told me to do the error now becomes

* Could not instantiate mail function.
* Could not instantiate mail function.

whenever I try to create a new account.

BUT: I haven't placed any username and password on it.
What username and password should I put on it? I tried the admin username and lynda for the password (joomla essential training) but still it did not work. In the Joomla training they did not tell me to put anything on it.


That is what the error it tells me:

But when I go to the User Manager, the created accounts where there. I do not really know the answer for this problem.

Thanks in advance
D * Jessiered * Smile
:: Never Finish a Negative Statement ::

User avatar
dizzi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3136
Joined: Fri Dec 21, 2007 9:36 pm
Location: Yorkshire, UK

Re: SMTP Error! Could not connect to SMTP host.

Post by dizzi » Wed Jan 21, 2009 11:16 am

The username and password values are only required for SMTP. These represent the Email account and login details you used to setup the SMTP through you Email provider. Since you mentioned that you are on a local machine and were receiving this error message Could not instantiate mail function, I will presume that you are using Windows since most Linux distros are supplied with a pre-configured mail server usually sendmail (at least the one I use does). If you are using Linux then it is possible that sendmail service has not been started or not installed.

If you are using WIndows, then you can either install a mail server (Xmail is a good choice) or use your ISP's SMTP server (if restrictions have not been placed for using from localhost). The second option is much easier and you can find a good guide there.

Regards
Freedom of expression ... some may try to suppress it but they can never take it away ...
There is no problem a good miracle can't fix.

User avatar
jessiered
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Sat Jan 10, 2009 4:50 am

Re: SMTP Error! Could not connect to SMTP host.

Post by jessiered » Wed Jan 21, 2009 11:20 am

Can you give an example for people using windows. please.
Thanks in advance
:pop
D * Jessiered * Smile
:: Never Finish a Negative Statement ::

User avatar
dizzi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3136
Joined: Fri Dec 21, 2007 9:36 pm
Location: Yorkshire, UK

Re: SMTP Error! Could not connect to SMTP host.

Post by dizzi » Wed Jan 21, 2009 12:07 pm

The guide available via the provided link (http://roshanbh.com.np/2007/12/sending- ... nment.html) is Windows based.

If you discover you are able to send Emails via localhost after following the guide, try the PHP Mail function first in Joomla! and perform a test registration. If that does not work, use sendmail instead and fill in your ISP provided details for the following fields as shown:

SMTP Authentication Yes (if this does not work try "No")
SMTP Username : your isp email address (or username)
SMTP Password : your account password
(The following is an example for BT Broadband)
SMTP Host : smtp.btclick.com (if this does not work try "localhost")

A list of SMTP Hosts can be found there:
http://www.internetsimplicity.net/resou ... implicity/
Freedom of expression ... some may try to suppress it but they can never take it away ...
There is no problem a good miracle can't fix.

User avatar
knucklesmcfly
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 198
Joined: Thu Jan 15, 2009 4:28 am

Re: SMTP Error! Could not connect to SMTP host.

Post by knucklesmcfly » Sat Jan 24, 2009 6:50 pm

Worked for me dizzi thanks. :D

jughead_ankul
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 24, 2009 10:31 pm

Re: SMTP Error! Could not connect to SMTP host.

Post by jughead_ankul » Tue Feb 24, 2009 10:36 pm

HI I am facing exactly the same problem. I tested the link

http://roshanbh.com.np/2007/12/sending- ... nment.html

It worked perfectly fine for me. But still when I set the settings as mentioned above in the global cofiguration I get the error Could not instantiate mail function.

Please let me know if there are any changes in joomla configuration to get this thing running

I am using php mail function

luisraposo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Apr 04, 2009 6:26 pm
Location: Portugal
Contact:

Re: SMTP Error! Could not connect to SMTP host.

Post by luisraposo » Fri Jul 10, 2009 9:37 am

hello,
also I get this error message

I am on a local installation, and trying to use Mercury SMTP server

- mercury is on
netstat -a -b >> smtp / LISTENING

- Global Configuration:
Mailer: SMTP server
mail from: newuser@localhost
SMTP authentication: yes
SMTP security: none
SMTP port: 25
SMTP username: newuser
SMTP password: xampp
SMTP host: localhost

> if I test with Tools / Mass Mail then I get the mentioned error message :S

config: Joomla! 1.5.12


Can you provide me some tips?

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14704
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: SMTP Error! Could not connect to SMTP host.

Post by humvee » Sat Jul 11, 2009 11:29 am

[Mod note Moved from installation forum]

namangarg88
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Feb 07, 2010 6:03 am

Re: SMTP Error! Could not connect to SMTP host.

Post by namangarg88 » Sun Feb 07, 2010 6:06 am

try the following link to solve the mailing problem in joomla
http://community.joomla.org/blogs/commu ... lable.html

northstarone
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Sep 20, 2009 12:57 pm

Re: SMTP Error! Could not connect to SMTP host.

Post by northstarone » Wed Jul 07, 2010 6:37 pm

The solution it seems is far simpler than we can imagine!

I am with Hostgator.com and checked this problem out with a technician and all he did was to

"Just had to allow your domain in the firewall for smtp"

simple as that..


miocara.com - social networking with a difference.

thecrossroads
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Thu Oct 07, 2010 11:05 am

Re: SMTP Error! Could not connect to SMTP host.

Post by thecrossroads » Thu Apr 28, 2011 1:47 pm

dizzi wrote:The guide available via the provided link (http://roshanbh.com.np/2007/12/sending- ... nment.html) is Windows based.

If you discover you are able to send Emails via localhost after following the guide, try the PHP Mail function first in Joomla! and perform a test registration. If that does not work, use sendmail instead and fill in your ISP provided details for the following fields as shown:

SMTP Authentication Yes (if this does not work try "No")
SMTP Username : your isp email address (or username)
SMTP Password : your account password
(The following is an example for BT Broadband)
SMTP Host : smtp.btclick.com (if this does not work try "localhost")/
Hi there, maybe you can help out with some advice, please.

I have now the SMTP serve setting selected and i can use the contact form on my site. But my users cannot complete registration as tehy do NOT receive the confirmation mail.

IF i set it up to PHP the Joomla site is telling the user that a mail has been sent.. but it never arrives.

I use Joomla 1.5 and my mail server is on google.

can you please help ? did anyone fixed this issue?
Thank you ,
Mike

donparis
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jun 08, 2009 3:01 pm

Re: SMTP Error! Could not connect to SMTP host.

Post by donparis » Thu Jun 02, 2011 12:07 pm

This same problem just started. I have used the mass mail for 2 years and then it just started with this error message. I am with Godaddy and they could not find anything wrong on their end.
I saw one message that said I just have to add it to my firewall, but I do not exactly understand how to do that.

Any help would be greatly appreciated.

thanks,
Don

doad
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jun 09, 2011 5:56 am

Re: SMTP Error! Could not connect to SMTP host.

Post by doad » Thu Jun 09, 2011 6:04 am

Hello friends.. i have same problem with joomla smtp configure.
i used following values and got error msg:


Mailer: smtp server
Mail from : mymail
From Name: from my site
Sendmail Path:/usr/sbin/sendmail
SMTP Authentication: no
SMTP Security: none
SMTP Port: 25
SMTP Username: [email protected]
SMTP Password: #######
SMTP Host:relay-hosting.secureserver.net

what there is error msg..

plzzz help me...


Locked

Return to “Administration 1.5”