Fix Undelivered Mail Returned to Sender for hosteddomain.com
Gmail was responding with this message everytime I wanted to send an email on gmail account.
The MAIL FROM domain [gilacms.com] has an SPF record with a hard
fail 550-5.7.26 policy (-all) but it fails to pass SPF checks with the ip:
550-5.7.26 [21
Send bulk emails using sendgrid api in php
This is an example of how to send bulk emails to the users in chunks.
$users = DB::get("SELECT * FROM user;");
$chunks = array_chunk($users, 1000);
foreach ($chunks as $chunk) {
$personalizations = [];
foreach ($chunk as $user) {
$personalizations[] = [
How to get the size of linux folders
How to get the size of linux folders
To get the size of a directory you can use the du command. To get the total size of the disrectory (without the subdirectories) use the s argument. The h argument will display the number in human rea
Connect to vultr mysql databases from your machine
For security, mysql does not let incoming connections in the databases. So, if we want to connect to them from our local machine, we can use a firewall that will allow our public ip.
First we have to let connections to mysql server from other ips. We do it by adding bind-address option.
Using Gila CMS as a back-end service
Gila CMS is a content management solution I am building the last few years. It started as an open source project that would give the ability to small bus
Weblinks 2020#31
How to load asycronous css
https://www.filamentgroup.com/lab/load-css-simpler/
Tabler icons
https://tablericons.com/
10 modern layouts in 1