Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    If you notice, the example I posted above specifically leaves out the IS_ADMIN_FLAG === true
    Why did you add it back in?
    .
    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. #12
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: How to Create an additional Custom Email?

    Hi Dr. Byte, I added it back because when I used your code as-is, it gave me a blank page.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    Then you must have made a typo.
    The admin-flag part will cause it to not run, so I'm not surprised it didn't work when you added it.
    .
    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.

  4. #14
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: How to Create an additional Custom Email?

    Ok so I took it out and now have this code:

    $mail->Subject = $email_subject;

    if ($module == 'ccnotice') {
    $mail->AddBCC(STORE_OWNER_EMAIL_ADDRESS, STORE_NAME);
    }


    $mail->From = $from_email_address;


    And I get this error:

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

    I'm testing on local host computer to test. If I add the admin flag then it works.

    Really don't know why this error is happening? Please help! Thanks!!

  5. #15
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    Testing email on localhost computer probably gives you that error on ALL email messages, doesn't it?
    .
    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.

  6. #16
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: How to Create an additional Custom Email?

    Nope, all my emails are going out normally testing on localhost. I get confirmations emails etc. Except for when I added that code bit on BCC then that is when I started to get that error. When I take the code out, it works fine. When I add the Admin flag in, it works fine...

  7. #17
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    In Admin->Configuration->Email Options, what do you have set for the "Store Owner Email Address" option? How does that compare with the rest of the email addresses listed on that screen?
    .
    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. #18
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: How to Create an additional Custom Email?

    They are all [email protected], I get all of our test mails using the local host in my local mail set up for that account. I have mercury mail set up.

    Will the coding only work on a live site then?

  9. #19
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    Shouldn't be any difference on local vs live.
    .
    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.

  10. #20
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to Create an additional Custom Email?

    Hmmm ... looking back at the define() for EMAIL_TEXT_CC_MSG I had given you earlier ... Go in and change the "We're" to "We are" (ie: remove the extra ' in there, as it causes a syntax error)
    .
    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 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v151 How to make a custom HTML create account confirmation email
    By abdulpatesh in forum General Questions
    Replies: 1
    Last Post: 1 Dec 2015, 07:06 PM
  2. Create Custom Page with Email Form
    By bparker in forum General Questions
    Replies: 2
    Last Post: 17 Jan 2014, 05:54 PM
  3. v151 Create custom mass-email script
    By strelitzia in forum General Questions
    Replies: 6
    Last Post: 16 Mar 2013, 04:48 PM
  4. Replies: 5
    Last Post: 9 Aug 2012, 09:57 PM
  5. How to create additional product listing filters?
    By kwright in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2011, 01:31 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