If you notice, the example I posted above specifically leaves out the IS_ADMIN_FLAG === true
Why did you add it back in?
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.
Hi Dr. Byte, I added it back because when I used your code as-is, it gave me a blank page.
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.
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!!
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.
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...
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.
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?
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.
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.