D
|
DealerModulesDevClub member 1/27/2021 |
Hello, The example "Send an eamil to selcted users" in the manual does not work. see the php list below controle syntax => OKE Designation of 2 users Get the following error. Array{"txt":"Error happened: File: Line: Description: "} Is there anyone who can say what's wrong? thanks
|
D
|
dirk author 1/28/2021 |
Hi Dirk, I was having a similar problem and got some help from Fernando. The code is at this post, maybe you can use it as an example for your project. https://asprunner.com/forums/topic/27915-need-some-direction-on-sending-email-to-multiple-records-selected-in-a-list/pagep93050&#entry93050 Paul Sorry Paul, But this presents the same problem. |
D
|
dirk author 1/28/2021 |
The code below no longer gives an error, but also does not send an email. while( $data = $button->getNextSelectedRecord() ) { // Send only if email field not empty if( $data['email'] ) { // This no longer should be an array of emails $result['email'] = $data["email"]; $email = $result['email']; $body = "test"; $subject = "test"; // Email will be sent for each record $arr = runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $body)); $result["txt"] = "Email verzonden naar ".$email; } }
|
S
|
smez 1/28/2021 |
The code below no longer gives an error, but also does not send an email. The email settings are set in the misc Can someone tell me why no mail is being sent thanks
|
![]() |
Sergey Kornilov admin 1/28/2021 |
The code in the manual does work. |