java.lang.Object | |
↳ | com.atlassian.jira.mail.JiraMailQueue |
A com.atlassian.mail.queue.MailQueue that ensures the baseURL
for all e-mails is correct. When
sending e-mails the baseURL
should always use JIRA's configured URL.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
When sending e-mails the
baseURL should always use JIRA's configured URL. | |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||||||||||||||||||||||
From interface
com.atlassian.mail.queue.MailQueue
|
When sending e-mails the baseURL
should always use JIRA's configured URL.
JIRA normally uses the incoming HTTP request to generate the baseURL
. JIRA's configured baseURL
is used
when no request exists (e.g. executing on a scheduled thread). This means that e-mails are normally rendered
using the configured static baseURL
as they are sent in a scheduled task. This is the correct public URL
for e-mails.
It is also possible send e-mails on a thread with a request (e.g. MailQueueAdmin.jspa "Send Now", or REST send now).
In this case we want the baseURL
to come from the configured baseURL
and not from the HTTP request
to keep things consistent with the scheduled e-mail runner.