Skip to content

Instantly share code, notes, and snippets.

@Asenar
Asenar / MailerFactory.php.diff
Last active July 18, 2017 09:45
Using DKIM to send mail with Thelia2 ( core/lib/Thelia/Mailer/MailerFactory.php )
diff --git i/core/lib/Thelia/Mailer/MailerFactory.php w/core/lib/Thelia/Mailer/MailerFactory.php
index a59ad40..7808a79 100644
--- i/core/lib/Thelia/Mailer/MailerFactory.php
+++ w/core/lib/Thelia/Mailer/MailerFactory.php
@@ -30,6 +30,12 @@ use Thelia\Model\MessageQuery;
*/
class MailerFactory
{
+ // {{{ added by @asenar - DKIM patch
+ // HOWTO
@Asenar
Asenar / gandi.sh
Created July 26, 2024 07:53 — forked from gbarre/gandi.sh
Update DNS A record with Gandi's API
#!/bin/sh
# Customize with your datas
APIKEY="secret_token"
DOMAIN="my_domain"
RECORD="my_record"
# DO NOT EDIT AFTER THIS LINE
CURRENTIP=$(curl -s ifconfig.co/ip)
IPLENGTH=$(echo -n ${CURRENTIP} | wc -m)