Advertisement

Could not instantiate mail function.

Discuss the development and implementation of Joomla! modules here.

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
mlabello
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Sun Jul 05, 2009 1:53 am

Could not instantiate mail function.

Post by mlabello » Wed Jul 22, 2009 12:08 am

Can't email out, always get this error "Could not instantiate mail function". I am in Go Daddy's as my server, and in the global functions the reading are as follows. Shouldn't some of this have filled in by itself. can anybody help?

Path to Temp-folder .tmp
GZIP Page Compression No
Error Reporting System Default
FTP SettingsEnable FTP No
FTP Host
FTP Port
FTP Username
FTP Password
FTP Root
Database Type mysql
Hostname ide0918705295534.db.2614367.hostedresource.com
Username ide0918705295534
Database ide0918705295534.
Database Prefix jos_
Mailer PHP Mail Functiion
Mail from my email address
From Name My ftp site name
Sendmail Path /usr/sbin/sendmail
SMTP Authentication No
SMTP Username
SMTP Password
SMTP Host

Advertisement
User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Could not instantiate mail function.

Post by wlrdq » Wed Jul 22, 2009 1:33 am

Some of this does not need to be filled in.

It sounds like mail is not working with Mailer set to "PHP Mail Function". Try switching it to Sendmail and see if that works. If not, you may have to do "SMTP Server", in which case you will need to fill out the "SMTP Authentication", "SMTP Username", "SMTP Password", and "SMTP Host". If you are supposed to be using "SMTP Server", GoDaddy should give you that information somewhere (like they do with the database).

I don't have much GoDaddy experience, so hopefully this helps. Let me know.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

mlabello
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Sun Jul 05, 2009 1:53 am

Re: Could not instantiate mail function.

Post by mlabello » Thu Jul 23, 2009 1:53 am

I've tried amny things nothing works. Now it's on Sendmil and it says you mail has been sent but I never get it, so I do not know where it is sending it to.

SMPT fails also. I see threads everywhere fir this and most lead nowhere....this should be this hard.

Anything else you can think of?

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Could not instantiate mail function.

Post by wlrdq » Thu Jul 23, 2009 5:18 pm

I think you will be better off looking for a GoDaddy solution to the problem rather than a Joomla solution. Searching on Google turned up a lot of pages where people talk about getting SMTP working on GoDaddy. I would try a few of these:
http://rtur.net/blog/post/SMTP-with-GoDaddy.aspx
http://tutorials.jm-experts.com/joomla- ... oomla.html
http://www.experts-exchange.com/Softwar ... 59405.html

You might also try contacting GoDaddy and see if they can help. I think once you have the host, username, and password, it should be a snap. From the posts, it sounds like there may be a few switches you need to turn on first on GoDaddy's side, though.

Let me know if you still can't figure it out and I can try to help.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
GODADDY
Joomla! Explorer
Joomla! Explorer
Posts: 382
Joined: Fri Sep 07, 2007 7:28 pm
Location: Arizona
Contact:

Re: Could not instantiate mail function.

Post by GODADDY » Fri Jul 24, 2009 12:26 am

mlabello,

If you're using the PHP Mail Function, you'll need to use the settings listed below. Let me know if you still need assistance.

Mailer: PHP Mail Function
Mail from: Full email address
From Name: Whatever you want to appear from sender. (Can't be blank.)
Sendmail Path: /usr/sbin/sendmail
SMTP Auth: No
SMTP User: Blank
SMTP Pass: Blank
SMTP Host: localhost or Blank

mlabello
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Sun Jul 05, 2009 1:53 am

Re: Could not instantiate mail function.

Post by mlabello » Fri Jul 24, 2009 1:16 am

No sorry, tried that PHP version mentioned by Go Daddy many times........doesn't work. Anything else?

User avatar
GODADDY
Joomla! Explorer
Joomla! Explorer
Posts: 382
Joined: Fri Sep 07, 2007 7:28 pm
Location: Arizona
Contact:

Re: Could not instantiate mail function.

Post by GODADDY » Fri Jul 24, 2009 1:35 am

mlabello,

PM me with the domain name and I'll take a closer look.


Thanks,

mlabello
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Sun Jul 05, 2009 1:53 am

Re: Could not instantiate mail function.

Post by mlabello » Fri Jul 24, 2009 1:42 am


User avatar
GODADDY
Joomla! Explorer
Joomla! Explorer
Posts: 382
Joined: Fri Sep 07, 2007 7:28 pm
Location: Arizona
Contact:

Re: Could not instantiate mail function.

Post by GODADDY » Fri Jul 24, 2009 2:10 am

The server is processing mail without issue. Let's define the SMTP host as follows:

SMTP Host: relay-hosting.secureserver.net

mlabello
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Sun Jul 05, 2009 1:53 am

Re: Could not instantiate mail function.

Post by mlabello » Fri Jul 24, 2009 2:33 am

Already tried relay-hosting..... didn't do it. Let me tell you a few more settings. See what you think.

Server settings
Path to Temp-folder = .tmp
GZIP Page Compression = No
Error Reporting =System Default

FTP Settings
FTP SettingsEnable FTP =No
FTP Host = blank
FTP Port = 21
FTP Username = blank
FTP Password = blank
FTP Root = blank

Database
Database Type = mysql
Hostname = ide0918705295534.db.2614367.hostedresource.com
Username = ide0918705295534
Database = ide0918705295534.
Database Prefix = jos_

Mail Settings
Mailer = PHP Mail Functiion
Mail from = mikelabello@gmail.com
From Name = identitygi.com
Sendmail Path = /usr/sbin/sendmail
SMTP Authentication = No
SMTP Username = blank
SMTP Password = blank
SMTP Host = blank

thesheriff
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 07, 2009 8:01 pm

Re: Could not instantiate mail function.

Post by thesheriff » Fri Aug 07, 2009 5:20 pm

I tried writing a normal mail() script on my server. It works. So no host issues. But whenver I use the php mail func in joomla. It gives me a could not instantiate error.

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Could not instantiate mail function.

Post by wlrdq » Fri Aug 07, 2009 7:05 pm

I've seen sites where they have certain PHP functions disabled for Apache. Try going to Help -> System Info and look at the PHP Information tab. Look for disable_classes and disable_functions.

Did you try calling your php script from a web browser and see if it still works?
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

kabet1
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 07, 2009 11:01 pm

Re: Could not instantiate mail function.

Post by kabet1 » Sat Aug 08, 2009 4:21 am

Were you ever able to resolve this issue? I am using GoDaddy as well and have had the same issue since the beginning and have not been able to get any help for support at GoDaddy or the support from my template provider.

thesheriff
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 07, 2009 8:01 pm

Re: Could not instantiate mail function.

Post by thesheriff » Sat Aug 08, 2009 3:16 pm

I have windows hosting thats why the problem. I have found out that the problem lies in the phpmailer.php in library/phpmailer. Lets see how it goes.

kabet1
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 07, 2009 11:01 pm

Re: Could not instantiate mail function.

Post by kabet1 » Sun Aug 09, 2009 6:50 pm

Finally got form mail in my website hosted at GoDaddy working with the following settings:


Mailer SMTP Server
Mail from 'adress setup in form mailer settings in GoDaddy Hosting Control Center'
From Name 'whatever name you wish to display in e-mail as the sender'
Sendmail Path /usr/sbin/sendmail
SMTP Authentication No
SMTP Security None
SMTP Port 25
SMTP Username blank
SMTP Password blank
SMTP Host relay-hosting.secureserver.net

VAMP Research
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Aug 17, 2009 7:19 pm

Re: Could not instantiate mail function.

Post by VAMP Research » Mon Aug 17, 2009 7:21 pm

Strike that i got it to work! Wow what a trek! Thanks to EVERYONE!

I still can not get this to work. My Global Configuration screen stopped allowing me to save I get this error
"An Error has occurred! Unable to open configuration.php file to write!"

so i alter it manually, I see the changes reflected all except the Mailer it will only stay on PHP even when i put SMTP Server in the field.

I have altered all files like mentioned above, Has anyone had ANY luck?

please e-mail me at contact@vampresearch.com

User avatar
klinkz
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Thu May 21, 2009 4:20 am

Re: Could not instantiate mail function.

Post by klinkz » Tue Aug 18, 2009 9:45 pm

Greeting, I have the same problem.

I try STMP according to G.D. it's smtpout.secureserver.net
put


Mailer : SMTP Server
Mail from : user@mydomain.com
From Name : Blank
Sendmail Path : /usr/sbin/sendmail
SMTP Authentication NO
SMTP Security NONE
SMTP Port 25
SMTP Username : user@mydomain.com
SMTP Pass : mypass
SMTP Host : smtpout.secureserver.net

it works on weblaunch (godaddy account) but in joomla when i go to read mail nothing ..

help plz

User avatar
GODADDY
Joomla! Explorer
Joomla! Explorer
Posts: 382
Joined: Fri Sep 07, 2007 7:28 pm
Location: Arizona
Contact:

Re: Could not instantiate mail function.

Post by GODADDY » Wed Aug 19, 2009 3:37 am

klinkz,

For Mailer: SMTP Server

Instead of these:
SMTP Username: blank

SMTP Host: smtpout.secureserver.net

Try these:
SMTP From Name: Whatever you want to appear from sender. (Can't be blank.)

SMTP Host: relay-hosting.secureserver.net


Smtpout.secureserver.net is the relay setting used for mail clients such as outlook.

hightone
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Jul 18, 2009 9:56 pm

Re: Could not instantiate mail function.

Post by hightone » Wed Aug 26, 2009 2:37 am

Hi, can you please explain where this configuration file is?

Thanks.

GODADDY wrote:klinkz,

For Mailer: SMTP Server

Instead of these:
SMTP Username: blank

SMTP Host: smtpout.secureserver.net

Try these:
SMTP From Name: Whatever you want to appear from sender. (Can't be blank.)

SMTP Host: relay-hosting.secureserver.net


Smtpout.secureserver.net is the relay setting used for mail clients such as outlook.

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Could not instantiate mail function.

Post by wlrdq » Wed Aug 26, 2009 3:06 am

I think you can set these settings in Site -> Global Configuration on the Server tab or you can modify the Joomla configuration.php file that is in the root of your Joomla installation.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

madscience
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Sun Nov 16, 2008 7:42 pm

Re: Could not instantiate mail function.

Post by madscience » Fri Dec 31, 2010 12:48 am

GODADDY wrote:klinkz,

For Mailer: SMTP Server

Instead of these:
SMTP Username: blank

SMTP Host: smtpout.secureserver.net

Try these:
SMTP From Name: Whatever you want to appear from sender. (Can't be blank.)

SMTP Host: relay-hosting.secureserver.net


Smtpout.secureserver.net is the relay setting used for mail clients such as outlook.

I tried this configuration because just for now reason my mails was giving me the same error..

Just out of the blue stopped working.....

But now at least the error goes away, but I'm not getting any emails received from my website.

I have registered an account on my own website and the emails I have sent out are not going out...


Why would it just out of the blue stop working like that and give me this error?

Why has joomla not addressed this issue already?

BTW, LOVE JOOMLA!!!!!!!!

**UPDATE**

Ok, I am getting my emails sent out.. just to quick on the post....

But still, why would this happen out of the blue like that???

Advertisement

Locked

Return to “Modules”