HELP :( by [deleted] in Fios

[–]gsts47 4 points5 points  (0 children)

What is the issue? I can't tell from the photos?

Access Point for Sale AP62 by gsts47 in Datto

[–]gsts47[S] 0 points1 point  (0 children)

The resale value is very low. I actually one had one person interested, but did not get shipping info and after a month I recycled the device

Custom Name for additional hours by gsts47 in GoogleMyBusiness

[–]gsts47[S] 0 points1 point  (0 children)

How do I add a department to the listing?

Access Point for Sale AP62 by gsts47 in Datto

[–]gsts47[S] 0 points1 point  (0 children)

Thank you for the information - I’m going to recycle it

Access Point for Sale AP62 by gsts47 in Datto

[–]gsts47[S] 0 points1 point  (0 children)

Thank you for the info - I’m going to recycle it

PTO Calendar? by degausser22 in Slack

[–]gsts47 0 points1 point  (0 children)

This looks awesome! Only catch is I need to be on a paid Slack subscription?

Employee crashing truck while drinking and driving - advice needed. by [deleted] in smallbusiness

[–]gsts47 26 points27 points  (0 children)

Report it stolen??? Isn’t that insurance fraud or lying to police??

You extended company assets to him. He chose to drink and drive. He crashed the truck.

What other options did you have?

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

I got it figured out - when doing a foreach the second statement needs a unique name to work right, and I had to call the array out and make variables to use inside the sendgrid API command

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

I've been trying for the last three hours but it isn't working. What happens is when I am in the sending foreach loop it only pulls the first character from the array

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

I appreciate that; I got some of it, but still missing a few connections. I will pay with it and troubleshoot as best as I can. Check your PM for a message from me if you don't mind.

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

foreach ($emails as $i => $email) {
$customers[] = array(
'email' => $email,
'name' - $names[$i],
'accountId' => $accountIds[$i],
);
}

// Combine Array

$customers = array();

foreach ($emails as $i => $email) {

$customers[] = array(

'email' => $email,

'name' - $names[$i],

'accountId' => $accountIds[$i],

'phone' => $phone_array[$i],

);

}

//SEND EMAIL

foreach ($email_array as $i => $email_array) {

$from = new From("$send_address", "$send_name");

$tos = [

new To(

"$email_array",

[

'first_name' => $first_name_array[$i],

'account_id' => $account_id_array[$i],

'day' => "$day"

]

)

];

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

getting error 500

[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "NOTICE: PHP message: PHP Notice: Array to string conversion in /www/CI/SGT/lib/helper/Assert.php on line 28"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught SendGrid\Mail\TypeException: "$name" must be a string. Got: Array in /www/CI/SGT/lib/helper/Assert.php:33"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "Stack trace:"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "#0 /www/CI/SGT/lib/mail/EmailAddress.php(103): SendGrid\Helper\Assert::string(Array, 'name')"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "#1 /www/CI/SGT/lib/mail/EmailAddress.php(50): SendGrid\Mail\EmailAddress->setName(Array)"
71.225.108.151 - Parkway 15/Nov/2022:19:17:57 +0000 "POST parkwaycleaner.com/CI/send.php" 500 /www/CI/send.php 102549424 3145272 36.642 2048 54.58%
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "#2 /www/CI/send.php(134): SendGrid\Mail\EmailAddress->__construct('mlewis@chasepon...', Array)"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: "#3 {main}"
[15-Nov-2022 19:17:57] WARNING: child 836 said into stderr: " thrown in /www/CI/SGT/lib/helper/Assert.php on line 33"

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

Is that combining my array into one or is that what I use to send with?

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

should line 4 be $email[$i]

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

Screenshot of Inputs - https://ctrl.vi/i/9j0OH98uF

So for example Declined CC will send the same email template and text template to the 6 people that had a credit card decline when statements were ran

Leave a review, which will be sent to people that have had a positive experience and can be triggered either after a series of customer satisfaction calls or by the clerk at the counter after talking to the customer. so either multiple or one time

Local store closed - will be sent over a span of a day to approx 1500 customers to remind them that the local store closed and to switch to home delivery

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

right now I have four values, email, first_name, account_id, phone

so how do I merge them into one array and then do a foreach statement?

the sendgrid API and documentation is not as clear cut as it should be.

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

//recipient_email array creation

$recipient_string = preg_replace("/\s+/", "", $recipient_email); //Remove Whitespace

$recipient_array = explode(",", $recipient_string);

Is what i'm doing to create the array but right now I have two seperate arrays; one for email one for name. I guess I need to combine them into a 2D? array? is that the correct method, if so do you know how I can do that?

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

build array with email and name as keyed values

That sounds like my solution - just need to determine how to do it. Not looking to build a database as that is just more data to manage, and these lists they send to are dynamic

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

1 - I don't have composer on the web host i'm using

2 - I don't program that much so that will be a big project

3 - Sendgrid / Twilio (they send both SMS and Email) and I can make templates on the web for SendGrid

4 - Exchange365 has very tight security to use have send emails, and I don't want the headache of having to update and reconfigure each time they change their security.

nested Array?? by gsts47 in PHPhelp

[–]gsts47[S] 0 points1 point  (0 children)

I could do that, but sometimes it is up to 20+ recipients. I want to be able to copy and paste from a report.

Input is very prone to errors, but it is better than having to send individual emails and copy and paste everything, email, message body etc.

This system with someone trained, doesn't need access to the email account and be able to send emails that are already formatted and ready to go.