How is your experience with the OutSystems Community?
24
Views
7
Comments
Missing application domain information, require domain in URL in email
Question

Hi there,

I am using a timer on ODC and i am trying to send an test emails but i am hitting this error:

Missing application domain information, you must have a valid domain to be used in email URL's.

The email i am sending is attached, it is just a email block with the words, no inputs.

I have also configured my smtp with a test sandbox in mailtrap.io as shown in the attachment.


Any help would be appreciated!



Screenshot 2026-08-23 at 11.10.46 AM.png
Screenshot 2026-08-23 at 11.11.50 AM.png
2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Fabian Bryant ,

This error usually means that the stage where your application is running doesn’t have a valid Default Domain configured. It isn’t related to your email logic or SMTP settings.

To check the configuration:

  1. Open the ODC Portal.
  2. Go to Management > Configure > Domains.
  3. Select the stage where the application is running.
  4. Make sure there is an active domain marked as Default.

You can also call GetDefaultDomain . If it returns an empty value, that confirms the domain configuration is the cause.

I also tested setting up smtp with a sandbox mailtrap in my personal environment and it works just fine.

UserImage.jpg
Fabian Bryant

Hi @Mihai Melencu 

Thanks for the reply. 

I have only one domain. Its build in and its marked as active. It is also default. Is there anything else i am missing?

Screenshot 2026-08-23 at 7.53.06 PM.png
2026-01-28 16-57-48
Mihai Melencu
Champion

Hi,

Thanks for sharing. Could you call GetDefaultDomain somewhere in your app ? Also, does the same email action work when triggered from a screen instead of the Timer?

If the domain is returned correctly and the error remains, please share the complete error details from the logs.

UserImage.jpg
Fabian Bryant

Hi,

I have tried triggering the action from both the timer as well as from a button on a screen. Both GetDefaultDomain returns empty. Please see the screenshots below for the error logs.

Once again thanks for your help.

TimerLogs.png
ScreenLogs.png
Action.png
2026-05-21 04-48-12
Deepa Tiwari

Hi @Fabian Bryant ,

Since you have already tried the domain configuration check, GetDefaultDomain(), and a simple Email Block, I would suggest checking a couple of additional things.

First, could you confirm whether you have a Home Screen configured in the Main Flow?

Also, try using:

GetOwnerURLPath() and GetBookmarkableURL()

and check what values they return.

I tried the same approach in my application, and everything is working as expected. I’m using Brevo SMTP for email delivery.

If these URL functions also return empty/null values and the simple email still fails, I would recommend raising this with the OutSystems Support team, as it may be related to the ODC application/domain configuration rather than the email implementation.

Regards
Deepa

UserImage.jpg
Fabian Bryant

Hi,

I have logged messages for GetOwnerURLPath() was able to get /{myappname}/ and GetBookmarkableURL() returns nothing. I also have a Home Screen configured.

Kindly refer to my screenshots attached. 

I will try to raise this to odc support.

Screenshot 2026-08-24 at 10.25.20 AM.png
Screenshot 2026-08-24 at 10.26.07 AM.png
2019-01-07 16-04-16
Siya
 
MVP

@Fabian Bryant : Looks like an infrastructure issue, as GetDefaultDomain is returning an empty value in your case. I tested the same setup on my end using Mailtrap, and it works as expected. GetDefaultDomain also returns the same domain name configured under Management -> Domains.

So, @Mihai Melencu  concluded correctly, and I suggest raising a support ticket to see whether there is an issue on the OutSystems side.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.