From 8eca40d9ac78b4246b7210d4972543cb3b935fed Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Jun 2023 17:51:47 +0000 Subject: [PATCH] Fixed welcome e-mail --- lib/functions.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/functions.sh b/lib/functions.sh index 9169f75..7345b5b 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -195,6 +195,7 @@ start_service() { } print_details() { cat > /federated/apps/mail/data/root/certs/mailfile < Dear Federated Customer, Please read this note in its entirety since it has some important information for you to get the best use @@ -210,11 +211,8 @@ All documentation for your Federated Core can be found at https://documentation. There you'll find tips for how to use your Core and the various open source applications bundled with your Core. -This is your temporary domain: {$DOMAIN} -This is your temporary domain: |$DOMAIN| -This is your temporary domain: '$DOMAIN' -This is your temporary domain: "$DOMAIN" -This is your temporary domain: ($DOMAIN) +This is your temporary domain: $DOMAIN + When you are ready to switch over to your own domain.com send us an e-mail at support@federated.computer and let us know you are done migrating your data, have pointed DNS correctly, and ready for us to switch. We also need to know the domain.com you will be using. @@ -414,12 +412,13 @@ Support: https://support.federated.computer Phone: 415-779-5431 Email: support@federated.computer -It's your computer. Let's make it work for you! +It's your computer. Let's make it work for you! + EOF # Send out e-mail from mail container with details -docker exec mail bash -c "mail -r admin@$DOMAIN -s \"Welcome to Federated\" admin@$DOMAIN < /root/certs/mailfile" -docker exec mail bash -c "mail -r admin@$DOMAIN -s \"Welcome to Federated\" $EMAIL < /root/certs/mailfile" +docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" admin@$DOMAIN < /root/certs/mailfile" +docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" $EMAIL < /root/certs/mailfile" cat /federated/apps/mail/data/root/certs/mailfile rm /federated/apps/mail/data/root/certs/mailfile }