Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6307cbb authored by Israel Yago Pereira's avatar Israel Yago Pereira
Browse files

Updating the emails to use less links

parent a289e4f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,6 @@ function sendWelcomeMail($authmail, $mbox, $domain)
function sendWelcomeMailWithPHPMail(string $to, string $mbox, string $domain, string $mailDomain)
{
    global $strings;
    $from = getenv("SMTP_FROM");
    $msg = $strings["success_account_created"];
    $subject = "$mbox@$mailDomain";
    $html = "<html> <body> <div> <h1>$msg</h1> </div> <div> <p> " . $strings[("success_message1")] . " </p> <p> " . $strings["success_message2"] . ' </p> <p> ' . $strings["success_message3"] . ' </p> <p> ' . $strings["success_message4"] . ' </p> <p> ' . $strings["success_message5"] . ' </p>  </body> </html>';
@@ -215,6 +214,7 @@ function sendWelcomeMailWithPHPMail(string $to, string $mbox, string $domain, st

    $body = $mime->get();

    $from = getenv("MAIL_FROM");
    $host = getenv("SMTP_HOST");
    $username = getenv("SMTP_FROM");
    $password = getenv("SMTP_PW");
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ function sendInviteMail($to, $secret, $lang)
function sendInviteMailWithPHPMail(string $to, string $signupURL, string $lang): bool
{
    $template = null;
    $from = getenv("SMTP_FROM");
    if (file_exists("/var/www/html/invite_template/$lang.json")) {
        $content = file_get_contents("/var/www/html/invite_template/$lang.json");
        $template = json_decode($content, false);
@@ -63,6 +62,7 @@ function sendInviteMailWithPHPMail(string $to, string $signupURL, string $lang):
        $template = json_decode($content, false);
    }
    $subject = $template->subject;
    $from = getenv("MAIL_FROM");
    $headers = ['From' => $from, 'To' => $to, 'Subject' => $subject,
        'Content-Type' => 'text/html; charset=UTF-8', 'Date' => date('D, d M Y H:i:s O')];

+2 −2
Original line number Diff line number Diff line
{
    "html":"<p><img alt=\"e-logo\" height=\"\" src=\"https://e.foundation/wp-content/uploads/e-logo.jpg\" width=\"120\" height=\"120\"/></p>\n\n \n<p>Willkommen,</p>\n\n<p>Sie haben sich für ein kostenloses Konto angemeldet, es ist jetzt bereit: es kann für alle /e/ Dienste genutzt werden, einschließlich E-Mail, Synchronisierung von Multimedia-Inhalten auf dem Laufwerk, Kalender, ...</p>\n\n<p>Sie können Ihr Konto innerhalb von /e/OS benutzen und sich einmal für alle diese Dienste authentifizieren. Sie können sich entweder während der Installation (Assistent für die Erstbenutzung) oder unter Einstellungen->Konten.</p> anmelden.\n\nAktivieren Sie nun bitte Ihr /e/ Konto über den folgenden Link:<br/>\n\n<a href=\"@@@TARGETURL@@@\">@@@TARGETURL@@@</a>\n\n<p>Eimal aktiviert:</p>\n<ul>\n<li>Sie können Ihren E-Mail-Dienst (Webmail, imap...) benutzen. Bitte lesen Sie die Anweisungen unter: <a href=\"https://e.foundation/email-configuration/\">https://e.foundation/email-configuration</a></li>\n<li>Sie können sich auch unter <a href=\"https://ecloud.global\">https://ecloud.global</a> anmelden. <b>Hinweis:</b> Ihr /e/ drive free Konto hat ein Kontingent von 1GB. </li>\n<li>Mit diesem Konto können Sie sich beim ROM-Kontomanager anmelden, entweder bei der Erstinstallation oder unter Einstellungen->Konten->...</li>\n</ul>\n\n<p>\n<b>Wichtiger Hinweis:</b> Ihr Konto wird mit <b>1GB kostenlosem Online-Speicherplatz geliefert</b>. Wir bieten kostenpflichtige Abonnements für zusätzlichen Speicherplatz an, den Sie <b> direkt über Ihre Kontoeinstellungen auf 256GB</b> aufrüsten können.\n</p>\n\n<p>\n<b>BITTE BITTE BEACHTEN SIE, dass /e/ Konten durch bezahlte Planspenden unterstützt werden! Bitte <a href=\"https://e.foundation/support-us/\">unterstützen Sie uns jetzt und erhalten Sie ein Geschenk</a>!\n</p>\n\n<br/>Wussten Sie, dass Sie ein Smartphone mit vorinstalliertem /e/OS kaufen können? Erfahren Sie mehr unter <a href=\"https://e.foundation/products/\">e.foundation</a>.\n<br/>\n\n<b>Berichten Sie über Ihre Erfahrungen!</b>\n\n<p>\nUnser Ziel ist es, /e/ das 3. mobile Ökosystem auf der Grundlage von Open Source und Privatsphäre zu schaffen. Sie können Teil dieser Geschichte sein! Wir erleben wahrscheinlich den aufregendsten Teil des Abenteuers mit seinem Beginn: nur wenige von uns gemeinsam - Entwickler & Benutzer - gestalten eine Revolution.\n<br/><br/>\nWeil Sie Teil dieser Revolution sind, möchten wir Ihre Geschichten mit /e/ und nicht nur unsere erzählen.\n<br/><br/>\nWir würden uns freuen, von Ihren positiven Erfahrungen zu hören, und wir werden die besten Geschichten über /e/ an die sozialen Medien in unseren Newslettern weiterleiten... Erwähnen Sie einfach @e_mydata für Twitter-Posts oder @e_mydata@mastodon.social für Mastodon-Posts, oder <a href=\"https://e.foundation/contact/\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">schreiben Sie uns, um über Ihre Geschichte zu berichten!</a>\n<br/><br/>\nTreten Sie unserem Community-Forum bei unter <a href=\"https://community.e.foundation/\">https://community.e.foundation</a> - registrieren Sie sich mit Ihrer brandneuen @e.email-Adresse!\n</p>\n\n<p>Vielen Dank nochmals für Ihre Unterstützung!</p>\n\n<p>-- Das /e/ Team.</p>\n\n<p>* Bitte beachten Sie, dass sich alle /e/ Dienstleistungen im Beta-Stadium befinden und ohne jegliche Garantie zur Verfügung gestellt werden *</p>",
    "text":"Herzlich willkommen,\n\nSie haben sich für ein kostenloses Konto angemeldet, es ist jetzt bereit: es kann für alle /e/ Dienste genutzt werden, einschließlich E-Mail, Synchronisierung von Multimedia-Inhalten auf dem Laufwerk, Kalender, ...\n\nSie können Ihr Konto innerhalb von /e/OS benutzen und sich einmal für alle diese Dienste authentifizieren. Sie können sich entweder während der Installation (Assistent beim ersten Mal) oder unter Einstellungen->Konten anmelden.\nJetzt aktivieren Sie bitte Ihr /e/Konto über den folgenden Link:\n@@@TARGETURL@@@\n\nEinmal aktiviert:\n\n    können Sie Ihren E-Mail-Dienst (Webmail, imap...) nutzen. Bitte lesen Sie die Anweisungen unter: https://e.foundation/email-configuration\n    können Sie sich auch unter https://ecloud.global anmelden. Hinweis: Ihr /e/ laufwerkfreies Konto hat ein Kontingent von 1GB.\n    Sie können dieses Konto verwenden, um sich beim ROM-Konto-Manager anzumelden, entweder bei der Erstinstallation oder unter Einstellungen->Konten->...\n\nWichtiger Hinweis: Ihr Konto wird mit 1 GB kostenlosem Online-Speicher geliefert. Wir bieten kostenpflichtige Abonnements für zusätzlichen Speicherplatz an, und Sie können diesen direkt über Ihre Kontoeinstellungen auf 256 GB aufrüsten.\n\nBITTE BEACHTEN SIE, dass /e/ Konten durch bezahlte Planspenden unterstützt werden! Bitte unterstützen Sie uns jetzt und erhalten Sie ein Geschenk!\n\nWissen Sie, dass Sie ein Smartphone mit vorinstalliertem /e/OS kaufen können? Erfahren Sie mehr unter e.foundation.\nBerichten Sie über Ihre Erfahrungen!\n\nUnser Ziel ist es, /e/ das 3. mobile Ökosystem auf der Grundlage von Open Source und Datenschutz zu schaffen. Sie können Teil dieser Geschichte werden! Wir erleben den wahrscheinlich aufregendsten Teil des Abenteuers mit seinem Beginn: nur wenige von uns gemeinsam - Entwickler & Benutzer - gestalten eine Revolution.\n\nWeil Sie Teil dieser Revolution sind, möchten wir Ihre Geschichten mit /e/ und nicht nur unsere erzählen.\n\nWir würden uns freuen, von Ihren positiven Erfahrungen zu hören, und wir werden die besten Geschichten über /e/ in unseren Newslettern an die sozialen Medien weitergeben... Erwähnen Sie einfach @e_mydata für Twitter-Posts oder @e_mydata@mastodon.social für Mastodon-Posts, oder schreiben Sie uns, um über Ihre Geschichte zu berichten!\n\nTreten Sie unserem Gemeinschaftsforum unter https://community.e.foundation bei - registrieren Sie sich mit Ihrer brandneuen @e.email-Adresse!\n\nNochmals vielen Dank für Ihre Unterstützung!\n\n-- Das /e/ Team.\n\n* Bitte beachten Sie, dass alle /e/ Dienste in der Beta-Phase sind und ohne jegliche Garantie zur Verfügung gestellt werden *",
    "html":"<p><img alt=\"e-logo\" src=\"https://e.foundation/wp-content/uploads/e-logo.jpg\" width=\"120\" height=\"120\"/></p>\n<p>Herzlich willkommen,</p>\n\n<p>Sie haben sich für ein kostenloses Konto angemeldet, es ist jetzt bereit: es kann für alle /e/ Dienste genutzt werden, einschließlich E-Mail, Synchronisierung von Multimedia-Inhalten auf dem Laufwerk, Kalender, ...</p>\n\n<p>Sie können Ihr Konto innerhalb von /e/OS benutzen und sich einmal für alle diese Dienste authentifizieren. Sie können sich entweder während der Installation (Assistent beim ersten Mal) oder unter Einstellungen->Konten anmelden.</p>\nJetzt aktivieren Sie bitte Ihr /e/Konto über den folgenden Link:<br/>\n<a href=\"@@@TARGETURL@@@\">@@@TARGETURL@@@</a>\n\n<p>Um Ihnen den Einstieg zu erleichtern, werfen Sie einen Blick auf https://e.foundation/de/get-started/.</p>\n\n<p><b>Wichtiger Hinweis:</b> Ihr Konto wird mit <b>1 GB kostenlosem Online-Speicher geliefert</b>. Wir bieten kostenpflichtige Abonnements für zusätzlichen Speicherplatz an, und Sie können diesen direkt über Ihre Kontoeinstellungen <b>auf 256 GB aufrüsten</b>.</p>\n\n<p>BITTE BEACHTEN SIE, dass /e/ Konten durch bezahlte Planspenden unterstützt werden! Bitte unterstützen Sie uns jetzt und erhalten Sie ein Geschenk!</p>\n\n<p>Berichten Sie über Ihre Erfahrungen!</p>\n\n<p>Wissen Sie, dass Sie ein Smartphone mit vorinstalliertem /e/OS kaufen können? Erfahren Sie mehr unter e.foundation.\nBerichten Sie über Ihre Erfahrungen!</p>\n\n<p>Unser Ziel ist es, /e/ das 3. mobile Ökosystem auf der Grundlage von Open Source und Datenschutz zu schaffen. Sie können Teil dieser Geschichte werden! Wir erleben den wahrscheinlich aufregendsten Teil des Abenteuers mit seinem Beginn: nur wenige von uns gemeinsam - Entwickler & Benutzer - gestalten eine Revolution.</p>\n\n<p>Weil Sie Teil dieser Revolution sind, möchten wir Ihre Geschichten mit /e/ und nicht nur unsere erzählen.</p>\n\n<p>Wir würden uns freuen, von Ihren positiven Erfahrungen zu hören, und wir werden die besten Geschichten über /e/ in unseren Newslettern an die sozialen Medien weitergeben... Erwähnen Sie einfach @e_mydata für Twitter-Posts oder @e_mydata@mastodon.social für Mastodon-Posts, oder schreiben Sie uns, um über Ihre Geschichte zu berichten!</p>\n\n<p>Nochmals vielen Dank für Ihre Unterstützung!</p>\n\n<p>-- Das /e/ Team.</p>\n\n<p>* Bitte beachten Sie, dass alle /e/ Dienste in der Beta-Phase sind und ohne jegliche Garantie zur Verfügung gestellt werden *</p>",
    "text":"Herzlich willkommen,\n\nSie haben sich für ein kostenloses Konto angemeldet, es ist jetzt bereit: es kann für alle /e/ Dienste genutzt werden, einschließlich E-Mail, Synchronisierung von Multimedia-Inhalten auf dem Laufwerk, Kalender, ...\n\nSie können Ihr Konto innerhalb von /e/OS benutzen und sich einmal für alle diese Dienste authentifizieren. Sie können sich entweder während der Installation (Assistent beim ersten Mal) oder unter Einstellungen->Konten anmelden.\nJetzt aktivieren Sie bitte Ihr /e/Konto über den folgenden Link:\n@@@TARGETURL@@@\n\nUm Ihnen den Einstieg zu erleichtern, werfen Sie einen Blick auf https://e.foundation/de/get-started/.\n\nWichtiger Hinweis: Ihr Konto wird mit 1 GB kostenlosem Online-Speicher geliefert. Wir bieten kostenpflichtige Abonnements für zusätzlichen Speicherplatz an, und Sie können diesen direkt über Ihre Kontoeinstellungen auf 256 GB aufrüsten.\n\nBITTE BEACHTEN SIE, dass /e/ Konten durch bezahlte Planspenden unterstützt werden! Bitte unterstützen Sie uns jetzt und erhalten Sie ein Geschenk!\n\nWissen Sie, dass Sie ein Smartphone mit vorinstalliertem /e/OS kaufen können? Erfahren Sie mehr unter e.foundation.\nBerichten Sie über Ihre Erfahrungen!\n\nUnser Ziel ist es, /e/ das 3. mobile Ökosystem auf der Grundlage von Open Source und Datenschutz zu schaffen. Sie können Teil dieser Geschichte werden! Wir erleben den wahrscheinlich aufregendsten Teil des Abenteuers mit seinem Beginn: nur wenige von uns gemeinsam - Entwickler & Benutzer - gestalten eine Revolution.\n\nWeil Sie Teil dieser Revolution sind, möchten wir Ihre Geschichten mit /e/ und nicht nur unsere erzählen.\n\nWir würden uns freuen, von Ihren positiven Erfahrungen zu hören, und wir werden die besten Geschichten über /e/ in unseren Newslettern an die sozialen Medien weitergeben... Erwähnen Sie einfach @e_mydata für Twitter-Posts oder @e_mydata@mastodon.social für Mastodon-Posts, oder schreiben Sie uns, um über Ihre Geschichte zu berichten!\n\nNochmals vielen Dank für Ihre Unterstützung!\n\n-- Das /e/ Team.\n\n* Bitte beachten Sie, dass alle /e/ Dienste in der Beta-Phase sind und ohne jegliche Garantie zur Verfügung gestellt werden *",
    "subject":"[/e/] Ihr @e.email-Konto ist bereit"
 }
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
{
    "html":"<p><img alt=\"e-logo\" height=\"\" src=\"https://e.foundation/wp-content/uploads/e-logo.jpg\" width=\"120\" height=\"120\"/></p>\n\n<p>Welcome,</p>\n\n<p>You have signed up for a free account, it is now ready: it can be used for all /e/ services, including email, multimedia content syncing on drive, calendar, ...</p>\n\n<p>You can use your account within /e/OS and authenticate once for all those services. You can login either during installation (first time wizard), or in Settings->Accounts.</p>\n\nNow, please activate your /e/ account using the following link:<br/>\n\n<a href=\"@@@TARGETURL@@@\">@@@TARGETURL@@@</a>\n\n<p>Once activated:</p>\n<ul>\n<li>you can use your email service (webmail, imap...). Please read instructions at: <a href=\"https://e.foundation/email-configuration/\">https://e.foundation/email-configuration</a></li>\n<li>you can also login at <a href=\"https://ecloud.global\">https://ecloud.global</a>. <b>Note:</b> your /e/ drive free account has a quota of 1GB. </li>\n<li>you can use this account to log into the ROM account manager, either during first installation or in Settings->Accounts->...</li>\n</ul>\n\n<p>\n<b>Important note:</b> your account comes with <b>1GB of free online storage</b>. We offer paid subscriptions for additional storage and you can <b>upgrade it to 256GB</b> directly from your account settings.\n</p>\n\n<p>\n<b>PLEASE KEEP IN MIND</b> that /e/ accounts are supported by paid plans donations! Please <a href=\"https://e.foundation/support-us/\">support us now and receive a gift</a>!\n</p>\n\n<br/>Do you know that you can purchase a smartphone with /e/OS preinstalled? Learn more at <a href=\"https://e.foundation/products/\">e.foundation</a>.\n<br/>\n\n<b>Report your experience!</b>\n\n<p>\nOur ambition is to make /e/ the 3rd mobile ecosystem based on open source and privacy. You can be part of this history! We are probably living the most exciting part of the adventure with its inception: few of us together - developers & users - shaping a revolution.\n<br/><br/>\nBecause you are part of that revolution we'd like to tell your stories with /e/ and not only ours.\n<br/><br/>\nWe would love to hear from your positive experience, and we will relay the best stories about /e/ to social medias, in our newsletters... Just ping us mentioning @e_mydata for Twitter posts or @e_mydata@mastodon.social for Mastodon posts, or <a href=\"https://e.foundation/contact/\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">write us to tell about your story!</a>\n<br/><br/>\nJoin our community forum at <a href=\"https://community.e.foundation/\">https://community.e.foundation</a> - register with your brand new @e.email address!\n</p>\n\n<p>Many thanks again for your support!</p>\n\n<p>-- The /e/ Team.</p>\n\n<p>* Please note that all /e/ services are in beta and are provided without any guarantee *</p>",
    "text":"Welcome,\n\nYou have signed up for a free account, it is now ready: it can be used for all /e/ services, including email, multimedia content syncing on drive, calendar, ...\n\nYou can use your account within /e/OS and authenticate once for all those services. You can login either during installation (first time wizard), or in Settings->Accounts.\nNow, please activate your /e/ account using the following link:\n@@@TARGETURL@@@\n\nOnce activated:\n\n   - you can use your email service (webmail, imap...). Please read instructions at: https://e.foundation/email-configuration\n   - you can also login at https://ecloud.global. Note: your /e/ drive free account has a quota of 1GB.\n   - you can use this account to log into the ROM account manager, either during first installation or in Settings->Accounts->...\n\nImportant note: your account comes with 1GB of free online storage. We offer paid subscriptions for additional storage and you can upgrade it to 256GB directly from your account settings.\n\nPLEASE KEEP IN MIND that /e/ accounts are supported by paid plans donations! Please support us now and receive a gift!\n\nDo you know that you can purchase a smartphone with /e/OS preinstalled? Learn more at https://e.foundation/products/\n\nReport your experience!\n\nOur ambition is to make /e/ the 3rd mobile ecosystem based on open source and privacy. You can be part of this history! We are probably living the most exciting part of the adventure with its inception: few of us together - developers & users - shaping a revolution.\n\nBecause you are part of that revolution we'd like to tell your stories with /e/ and not only ours.\n\nWe would love to hear from your positive experience, and we will relay the best stories about /e/ to social medias, in our newsletters... Just ping us mentioning @e_mydata for Twitter posts or @e_mydata@mastodon.social for Mastodon posts, or write us to tell about your story!\n\nJoin our community forum at https://community.e.foundation - register with your brand new @e.email address!\n\nMany thanks again for your support!\n\n-- The /e/ Team.\n\n* Please note that all /e/ services are in beta and are provided without any guarantee *",
    "html":"<p><img alt=\"e-logo\" src=\"https://e.foundation/wp-content/uploads/e-logo.jpg\" width=\"120\" height=\"120\"/></p>\n<p>Welcome,</p>\n\n<p>You have signed up for a free account, it is now ready: it can be used for all /e/ services, including email, multimedia content syncing on drive, calendar, ...</p>\n\n<p>You can use your account within /e/OS and authenticate once for all those services. You can login either during installation (first time wizard), or in Settings->Accounts.</p>\nNow, please activate your /e/ account using the following link:<br/>\n<a href=\"@@@TARGETURL@@@\">@@@TARGETURL@@@</a>\n\n<p>To help you get started, take a look at https://e.foundation/get-started/.</p>\n\n<p><b>Important note:</b> your account comes with <b>1GB of free online storage</b>. We offer paid subscriptions for additional storage and you can <b>upgrade it to 256GB</b> directly from your account settings.</p>\n\n<p>PLEASE KEEP IN MIND that /e/ accounts are supported by paid plans and donations! Please support us now and receive a gift!</p>\n\n<p>Report your experience!</p>\n\n<p>Our ambition is to make /e/ the 3rd mobile ecosystem based on open source and privacy. You can be part of this history! We are probably living the most exciting part of the adventure with its inception: few of us together - developers & users - shaping a revolution.</p>\n\n<p>Because you are part of that revolution we'd like to tell your stories with /e/ and not only ours.</p>\n\n<p>We would love to hear from your positive experience, and we will relay the best stories about /e/ to social medias, in our newsletters... Just ping us mentioning @e_mydata for Twitter posts or @e_mydata@mastodon.social for Mastodon posts, or write us to tell about your story!</p>\n\n<p>Many thanks again for your support!</p>\n\n<p>-- The /e/ Team.</p>\n\n<p>* Please note that all /e/ services are in beta and are provided without any guarantee *</p>\n",
    "text":"Welcome,\n\nYou have signed up for a free account, it is now ready: it can be used for all /e/ services, including email, multimedia content syncing on drive, calendar, ...\n\nYou can use your account within /e/OS and authenticate once for all those services. You can login either during installation (first time wizard), or in Settings->Accounts.\nNow, please activate your /e/ account using the following link:\n@@@TARGETURL@@@\n\nTo help you get started, take a look at https://e.foundation/get-started/.\n\nImportant note: your account comes with 1GB of free online storage. We offer paid subscriptions for additional storage and you can upgrade it to 256GB directly from your account settings.\n\nPLEASE KEEP IN MIND that /e/ accounts are supported by paid plans and donations! Please support us now and receive a gift!\n\nReport your experience!\n\nOur ambition is to make /e/ the 3rd mobile ecosystem based on open source and privacy. You can be part of this history! We are probably living the most exciting part of the adventure with its inception: few of us together - developers & users - shaping a revolution.\n\nBecause you are part of that revolution we'd like to tell your stories with /e/ and not only ours.\n\nWe would love to hear from your positive experience, and we will relay the best stories about /e/ to social medias, in our newsletters... Just ping us mentioning @e_mydata for Twitter posts or @e_mydata@mastodon.social for Mastodon posts, or write us to tell about your story!\n\nMany thanks again for your support!\n\n-- The /e/ Team.\n\n* Please note that all /e/ services are in beta and are provided without any guarantee *\n",
    "subject":"[/e/] Your @e.email account is ready"
 }
 No newline at end of file
+2 −2

File changed.

Preview size limit exceeded, changes collapsed.

Loading