Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3743907
D68.id157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D68.id157.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -109,6 +109,14 @@
PHABRICATOR_DOMAIN | mailgun.domain | The domain of the Phabricator instance
PHABRICATOR_MAILGUN_APIKEY | mailgun.api-key | Your Mailgun API key
+Environment you should pass if you use the legacy SendGrid mail adapter:
+
+Variable | Phabricator config variable | Description
+------------------------------|---------------------------------|------------
+PHABRICATOR_USE_SENDGRID | metamta.mail-adapter | If set, use SendGrid as mail adapter
+PHABRICATOR_SENDGRID_APIUSER | sendgrid.api-user | Your SendGrid API username
+PHABRICATOR_SENDGRID_APIKEY | sendgrid.api-key | Your SendGrid API key
+
Environment from linked containers:
Variable | Phabricator config variable | Description
diff --git a/files/usr/local/bin/setup-phabricator b/files/usr/local/bin/setup-phabricator
--- a/files/usr/local/bin/setup-phabricator
+++ b/files/usr/local/bin/setup-phabricator
@@ -25,6 +25,15 @@
bin/config set mailgun.api-key $PHABRICATOR_MAILGUN_APIKEY
fi
fi
+if [ -n "$PHABRICATOR_USE_SENDGRID" ]; then
+ bin/config set metamta.mail-adapter PhabricatorMailImplementationSendGridAdapter
+ if [ -n "$PHABRICATOR_SENDGRID_APIUSER" ]; then
+ bin/config set sendgrid.api-user $PHABRICATOR_SENDGRID_APIUSER
+ fi
+ if [ -n "$PHABRICATOR_SENDGRID_APIKEY" ]; then
+ bin/config set sendgrid.api-key $PHABRICATOR_SENDGRID_APIKEY
+ fi
+fi
# Installation
if [ -z "$PHABRICATOR_NO_INSTALL" ]; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 01:26 (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246961
Default Alt Text
D68.id157.diff (1 KB)
Attached To
Mode
D68: Improve SendGrid integration
Attached
Detach File
Event Timeline
Log In to Comment