diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index c48334a51e..53c7ee7df5 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1716,6 +1716,10 @@ public class MessageHelper { if (!TextUtils.isEmpty(zeptomail)) return "zeptomail"; + String xmailer = imessage.getHeader("X-Mailer", null); + if (!TextUtils.isEmpty(xmailer) && xmailer.contains("PHPMailer")) + return "phpmailer"; + return null; } diff --git a/app/src/main/res/drawable/infra_phpmailer.xml b/app/src/main/res/drawable/infra_phpmailer.xml new file mode 100644 index 0000000000..0908dfbe9a --- /dev/null +++ b/app/src/main/res/drawable/infra_phpmailer.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 78c676fc55..b3f18bc55b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1813,6 +1813,7 @@ Mailjet Mandrill Pepipost/netcore + PHPMailer Postmark Salesforce SendGrid