Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Add getEndpoint and setEndpoint methods to the MailgunTransport class #29312
If you need to switch (on the fly) your mailgun domain while sending emails you can do it by updating the MailgunTransport "domain" property using the setDomain() method. But if your mailgun domain region is EU, you should also change the endpoint property value from "api.mailgun.net" to "api.eu.mailgun.net".
This PR adds setEndpoint method to MailgunTransport class, so you can do it like this (in your Mailable-class, for example):