Forums / General Questions / Email Error: Could not instantiate mail function.

Email Error: Could not instantiate mail function.

Locked

Started by zc_fan on 29 Sep 2010, 12:42 AM · Views: 1,562

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
29 Sep 2010, 12:42 AM
#1
zc_fan avatar

zc_fan

New Zenner

Join Date:
Sep 2010
Location:
SF Bay Area
Posts:
54
Plugin Contributions:
0

Email Error: Could not instantiate mail function.

I am not sure if this is the right location for this thread. But I am running Zen Cart on my PC using localhost. When I try to login as a user to test the buying experieince I get the following error:

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.

Even though my Email transport method under Configuration is PHP.

Any help, thanks.

29 Sep 2010, 2:06 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Email Error: Could not instantiate mail function.

Your localhost PC almost certainly has no mailserver engine on it. And, since you won't be running a real live store from it, it's better that you turn off email functionality ("Enable Email" = False) until you actually put your site on a real webserver that's capable of email.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 5:02 AM
#3
zc_fan avatar

zc_fan

New Zenner

Join Date:
Sep 2010
Location:
SF Bay Area
Posts:
54
Plugin Contributions:
0

Re: Email Error: Could not instantiate mail function.

Great, will do that. So then how do I test checkout a product from my store on localhost?

29 Sep 2010, 2:02 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Email Error: Could not instantiate mail function.

Um ... add it to your cart and go through checkout.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 8:31 PM
#5
zc_fan avatar

zc_fan

New Zenner

Join Date:
Sep 2010
Location:
SF Bay Area
Posts:
54
Plugin Contributions:
0

Re: Email Error: Could not instantiate mail function.

Thanks, Dr Byte for helping me.

So when I try to login using my site login, Paypal Checkout or even register a new account I get the sane message. I know this has to do with some settings to make the localhost work, just don't know which one because it works when the site is live.

29 Sep 2010, 8:44 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Email Error: Could not instantiate mail function.

What message? If it's telling you about a problem sending emails, then you've still not turned off emailing as I mentioned earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Sep 2010, 8:07 AM
#7
mailbeez avatar

mailbeez

Zen Follower

Join Date:
Jun 2010
Location:
Copenhagen, Danmark
Posts:
479
Plugin Contributions:
2

Re: Email Error: Could not instantiate mail function.

zc_fan:

I am not sure if this is the right location for this thread. But I am running Zen Cart on my PC using localhost. When I try to login as a user to test the buying experieince I get the following error:

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.

Even though my Email transport method under Configuration is PHP.

Any help, thanks.

It might be caused by a missing mailserver.

I use smtp4dev (just google it) which is a low-weight, easy to install stmp server for development on windows

cord

30 Sep 2010, 4:13 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Email Error: Could not instantiate mail function.

I thought that's what I said already. :blush:

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.