bh_scripts:
I also found that the Welcome email is not sent when adding customers one at a time i.e. not through bulk upload. I looked at the code and found the error.
Change line 320 in add_customers_backend.php from:
$send_welcome = zen_db_prepare_input($_POST['send_welcome']);
>
> to
> ```php
$send_welcome = (isset($_POST['send_welcome']) && (strtolower($_POST['send_welcome']) == 'on')) ? 1 : 0;
and change line 406 in add_customers.php from:
<input type="checkbox" id="send_welcome" value="send" name="send_welcome" />
```
>
> to
> ```html
<input type="checkbox" id="send_welcome" name="send_welcome" />
```
>
> This fixes the email not sent problem.
I have an odd problem.
Without the above modification, the CSV import sends email but adding a customer via the web form does not.
However after doing the above, now adding a customer via the web form sends email but the CSV import does not.
What am I doing wrong?
Cheers,
Drew