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!
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:
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.
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?
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.
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.
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.RegardsDeepa
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.
@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.