Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default email function question

    I have a question and I am new to zen cart.
    I installed zencart and I use apple zen template.
    The zen cart is installed on linux server

    When I go to create account and I fill out properly all blank box and I hit button create account. It shows me an error saying “Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.”
    When I go there to check the setting I see so many option; php, sendmail, sendmail-f, smtp, smtppauth, qmail. I tried option smtp and qmail but it doesn’t send welcome email after creating new account.

    I am not sure what I should do here and how to solve this problem.
    Could you please help me which option I should choose and how get working welcome email after creating new account as a new costumer?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: email function question


  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: email function question

    99% one of these will be your option >>php, sendmail, sendmail-f

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  4. #4
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: email function question

    Thank you for your quick respond but I tried 3 options; PHP, Sendmail and Sendmail-f but when I tested to send email to a fake customer i created, email is not delivered to the recipient however it says email successfully sent when I set to use option Sendmail or Sendmail-f but I get the error when I set to PHP option as I mentioned in my first post. I think I don't understand something here and I need more help from you guys. Could you please give me more information?

    Thank you

  5. #5
    Join Date
    Aug 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: email function question

    Contact your hosting company and see if they have a solution.

  6. #6
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: email function question

    I called my host company which is 1and1.com and they recommend to implament their code to my zen cart to get rid of the error. They told me to use PHP mail transport method.

    Here it is their code to implament:

    How do I setup PHP Mail?


    1. First you need to create a form to use the PHPmail script. A form will look something like the one below.
    It must be saved as an HTM or HTML file. You can edit the one below to suit your own needs.


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Contact Us</title>
    <link rel="stylesheet" type="text/css" href="../../css/nms.css" />
    </head>
    <body>
    <form method="post" action="mail.php">
    <table>
    <tr>
    <td>What is your name ?</td>
    <td><input type="text" name="name" /></td>
    </tr>
    <tr>
    <td>What is your e-mail address ?</td>
    <td><input type="text" name="email" /></td>
    </tr>
    <tr>
    <td> Comments:</td>
    <td><textarea name="data" cols=40 rows=6></textarea></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>




    2. Next you need to create a file named mail.php which will contain the following code.


    <?
    $to = '[email protected]';
    $subject = 'subject';
    $message = 'From: ' . $_REQUEST['name'] . "\n\n" . $_REQUEST['data'];
    $email = $_REQUEST['email'];
    $headers = 'From: ' . $email . "\r\n" .
    'Reply-To: ' . $email . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

    mail ($to, $subject, $message, $headers);
    header("Location: thanks.html");
    ?>



    Note: You will replace '[email protected]' with your e-mail account and 'subject' with what
    will be in the subject field of the e-mail. Replace "thanks.html" with the name of the page that the
    viewer will be redirected to after submitting the form.


    3. Upload both files into your webspace. Make sure to set the correct permission for the PHP file.


    I am not sure where I should apply these code and to which files?

    Can any one could help me with it?

    Thank you very much

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

    Default Re: email function question

    They've given you a canned response which would only be useful if you were using static .html webpages to run your site. What they've suggested is useless for database-driven sites such as Zen Cart.

    The only thing one can glean from what they've given you is that, if that script is really supposed to work on their servers, their servers use the PHP mail() function to send emails. In Zen Cart that's equivalent to setting your Email Transport to "PHP".
    .

    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.

  8. #8
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: email function question

    DrByte, I did setup email transport to PHP but when I try to send welcome email from Admin, tools, send email to costumers; I am getting error "Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport"

    Any thoughts?

  9. #9
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: email function question

    Any comments, thoughts?

    Thank you

  10. #10
    Join Date
    May 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: email function question

    I am still searching myself. I have the same issue now. My email stopped working. I have just uploaded the email archive as shown above. It says my emails were sent okay.
    I will let you know if i fix mine.
    I have the standard systems. 8a, with all security patches and super orders.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Cannot instantiate email function
    By westcoastflipp in forum General Questions
    Replies: 3
    Last Post: 7 Dec 2010, 09:48 PM
  2. Email Delivery function
    By jaishem in forum General Questions
    Replies: 3
    Last Post: 15 May 2010, 04:22 AM
  3. Replies: 4
    Last Post: 8 Sep 2008, 03:22 AM
  4. Tell a Friend Email Function
    By textileinnovations in forum General Questions
    Replies: 2
    Last Post: 7 Jun 2006, 08:10 PM

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