WebsiteBaker Support (2.8.x) > Bakery Shop

Not sending E-mail after Successful order

<< < (3/4) > >>

Ruud:

--- Quote from: ChochkoBG on May 10, 2014, 02:04:35 PM ---I understood that by the "German Laws" there are Laws, about the Sending Messages by unregistered users (I didn't get the point about the unregistered users), but anyway I'm using this is my local network.
Also all of my users are registered, so i think it will not be a problem to send messages.
Also this Law is "only about the Core", but anyway - Bakery Shop and Mini-Form - they are Modules.

--- End quote ---

Miniform (made by me) does not send email to the customer for a very practical reason.
Nothing to do with law ( it is not a German product ;) ). I just want my customers to be able to send emails tomorrow too.
A few form submissions with a spam-honeypot-address as customer and my mailserver will be blacklisted by a lot of spamlists.
Sending a "simple" (one step) form to email adresses you cannot control is a serious NO

ChochkoBG:
Exactly the same settings. I already told you that i tried all kinds of configurations in the php.ini file.
When i choose the PHP Mail Method in the WSB Settings E-mail sending is not working.

Only SMTP Configurations are working and only with Mini-Forum Module.

If the Baker Shop Module is using only PHP Mail Method, I can use SMTP in my Main settings and by default in the Bakery Shop Module it will work with PHP Mail Method.
My PHP Mail Method is working, but not with WSB...

Thanks!!!

jacobi22:
copy my text from the other thread about the same theme

its very simple to change the mail method in bakery from the normal (php-)mail to the WebsiteBaker methode. after this, you can use the mail sending method from the wb-settings, php-mail or smtp-mail

here my changings from a bakery 1.60, i cannot test it with bakery 1.7, but i think, the code is nearly the same. look to the differents between the original code and my changes and search in the bakery-file for the code with the mail-sending

original-code Bakery Vers 1.6
view_confirmation.p hp // ~~ line 177

--- Code: ---<?php
if (mail($cust_email, $cust_email_subject, $cust_email_body, $cust_email_headers)) {
                                $email_sent = true;
                        }
                        if (mail($setting_shop_email, $shop_email_subject, $shop_email_body, $shop_email_headers)) {
                                $email_sent = true;
                        }

--- End code ---
line 1 - check, if the mail was sending with these method to the customer - if yes - set email_sent to true in line 2

line 4  - check, if the mail was sending with these method to the shop owner - if yes - set email_sent to true in line 5

if email_sent == true, go to the next step, if not, show a error message

this methode  - mail() - use php-mail

changes to wb-methode (possible to change the mail methode in wb-settings - work also with smtp


--- Code: ---<?php
// Send confirmation e-mail to customer and shop - new Code
                        if ($wb->mail(SERVER_EMAIL,$cust_email, $cust_email_subject, $cust_email_body, $setting_shop_name, $shop_email,$shop_email)){
                                $email_sent = true;
                        }
                        if ($wb->mail(SERVER_EMAIL,$setting_shop_email, $shop_email_subject, $shop_email_body, $setting_shop_name, $shop_email,$shop_email)){
                                $email_sent = true;
                        }
--- End code ---

do the same, but with the wb-mail
search for a code like the original in the bakery 1.7 files,  (make a backup from this original file, if something goes wrong), set every line to a comment (maybe with a double Slash at the beginn from every line or  /* at the begin and  */ at the end from this code block, then copy my changes behind the old code in a new row and test it

ChochkoBG:
This is.


--- Code: ---// Send confirmation e-mail to customer and shop - new Code
                        if ($wb->mail(SERVER_EMAIL,$cust_email, $cust_email_subject, $cust_email_body, $setting_shop_name, $shop_email,$shop_email)){
                                $email_sent = true;
                        }
                        if ($wb->mail(SERVER_EMAIL,$setting_shop_email, $shop_email_subject, $shop_email_body, $setting_shop_name, $shop_email,$shop_email)){
                                $email_sent = true;
                        }
--- End code ---

This was the fix. Now it's sending and everything is working.
When a Order is complete, the Customer and the Administrator - both of them are receiving E-mail.

I want to tell you Thank you very much again. Just a nice team and a nice Open Source products.

Thank you!

jacobi22:

--- Quote ---This is.
--- End quote ---

cool
thx for replay

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version