Page 1 of 2 12 LastLast
Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Could not instatiate mail function

    Email Error: Could not instantiate mail function
    This means that the selected mail transport method cannot be used to launch email services and connect to an email server.

    Since you've selected PHP as mail-transport method, it's relying on your server's PHP configuration for sending email. If your server does not have email functions enabled to allow "sending" email, then the above error is to be expected.

    You'll need to install some sort of mailserver service on your localhost server if you wish to send mail this way.

    You could try using the SMTPAUTH method and then enter all the relevant SMTP credentials at the bottom of the Email Options listing to match the email authorization info for another mailserver. The default mail port is 25, but many ISP's block this, so you may need to ask your email server's host about alternate ports they may have available.
    Sending mail from a localhost server is not always easy, due to a multitude of challenges typically encountered. Using a live webserver typically solves the problem.
    .

    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.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Could not instatiate mail function

    http://www.argosoft.com/RootPages/Ma...r/Default.aspx
    Above mail programme works fine with zencart on localhost

  3. #3
    Join Date
    Apr 2007
    Location
    Sydney
    Posts
    109
    Plugin Contributions
    0

    Default Re: Could not instatiate mail function

    Following DrByte's advice I changed the Email Transport Method to smtp, left the port at 25, and it worked!

  4. #4
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Could not instatiate mail function

    I got this message when I had forgot to setup the email account I was using in the shop

    All I had to do was set up email forwarding or an inbox for the email account I specified in the set up and I no longer got this message

  5. #5
    Join Date
    Aug 2005
    Posts
    12
    Plugin Contributions
    0

    Default Re: Could not instatiate mail function

    After working fine for many months, I am now seeing this error with no changes having been made to my configuration (using PHP to send mail). Does anyone know of a reason why this problem would suddenly pop up?

    It is affecting messages sent via the contact us page and also appears at the conclusion of a transaction which would normally generate a confirmation e-mail before showing the "transaction complete" page. Instead, I just get this error.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Could not instatiate mail function

    Quote Originally Posted by brennon View Post
    After working fine for many months, I am now seeing this error with no changes having been made to my configuration (using PHP to send mail). Does anyone know of a reason why this problem would suddenly pop up?
    Usually such "sudden" malfunctions are a result of changes to your server, made by your hosting company.
    .

    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.

  7. #7
    Join Date
    Aug 2005
    Posts
    12
    Plugin Contributions
    0

    Default Re: Could not instatiate mail function

    Well, my hosting service has been unresponsive so far, but I changed the transport method to sendmail, and it seems to be working now.

  8. #8
    Join Date
    Nov 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: Could not instatiate mail function

    Quote Originally Posted by DrByte View Post
    Usually such "sudden" malfunctions are a result of changes to your server, made by your hosting company.
    "Email Error: Could not instantiate mail function."

    i just got this message after sending a whole bunch of newsletters out. i have myself in the contact list so i can verify everything and i did get mine. obviously, i can't check everyone else's email to see if it went through so how would i konw if everyone received theirs?

    just to make sure i'm clear, the screen filled up w/ a bunch of green checkmarks indicating sent mail, and toward the end of the page, the error message popped up.

    i'm wondering if i "overloaded" the mail server somehow? i haven't looked at the code but it looks like the newsletter opens and closes the mail() function over and over again for each iteration/record (rather than just sending out one big BCC email). is that the case? and is it possible that half my emails went out and the other half "crapped out" before completing?

    any advice would be great. thx.

  9. #9
    Join Date
    May 2005
    Posts
    41
    Plugin Contributions
    0

    Default Re: Could not instatiate mail function

    Quote Originally Posted by DrByte View Post
    This means that the selected mail transport method cannot be used to launch email services and connect to an email server.
    I have the same problem. I also use PHP like the orig poster. The strange thing is that I use a hand-coded page on the same domain/server outside of ZenCart where PHP mail works perfectly fine:
    Code:
    <?php
    $kontakt = $_POST["kontakt"];
    $to = "[email protected]";
    $subject = "Neuer Kontakt eingegangen";
    $headers = "From: [email protected]";
    mail($to,$subject,$kontakt,$headers);
    ?>
    Obviously, the selected mail transport method CAN be used. Seems very straight-forward. But on ZenCart, when I try to send myself an email through Contact Us, I get:
    "Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport."

    Why?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Could not instatiate mail function

    Quote Originally Posted by dude_s View Post
    when I try to send myself an email through Contact Us, I get Email Error ...
    What do you have set for your Admin->Configuration->Email Options->Contact us Pulldown? What happens if you leave it blank?
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Could not instantiate mail function
    By veronicathecow in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 16 Nov 2011, 06:52 PM
  2. Could not instantiate mail function
    By yenmax in forum General Questions
    Replies: 6
    Last Post: 7 Dec 2010, 09:50 PM
  3. Could not instatiate mail function
    By pixelpadre in forum General Questions
    Replies: 17
    Last Post: 29 Apr 2010, 05:25 PM
  4. Could not instantiate mail function
    By hookah in forum General Questions
    Replies: 1
    Last Post: 21 Dec 2009, 09:32 AM
  5. Could not instantiate mail function
    By stage in forum General Questions
    Replies: 1
    Last Post: 10 Aug 2007, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg