Sending emails from app without www

What I’m trying to do:

My app is published at https://www.edinburghfinancialanalytics.com
so the email setup in anvil forces my email to be sent from
anything@www.edinburghfinancialanalytics.com

Although this looked unprofessional I have continued to live with it until now!

However, Outlook (as an example) sees that as junk / unverified and I realise this may be causing problems for potential customers. According to chatGPT:

Technically, www.edinburghfinancialanalytics.com is a subdomain, and using that as your sending domain could cause SPF, DKIM, and DMARC issues — which would explain why your messages showed as “unverified” and went to junk initially.

What I’ve tried and what’s not working:

chatGPT’s recommended fix is to change the email sending address.

I’ve looked at “customise the domain settings” (including advanced) but there does not appear to be any way to differentiate the domain name from the email sending address.

Does anyone know how to fix this issue?

Thanks.

Dave

Yes, setting the sender email address is correct. But it needs to be allowed.
When it comes to email I would not mess around with dkim etc, it’s such a pain.

Who is your domain and email provider?

Also, setting sender email is done via script in a server side method. I am on a phone rn so I sadly cannot share an example :slight_smile:

Hello @davejubb!

Assuming that you want email messages sent from your app to appear as anything@edinburghfinancialanalytics, then:

  1. Within your registrar’s website, you’ll need to change your domain forwarding rules:
  • Change your domain name to edinburghfinancialanalytics.com
  • Create an @ subdomain (if you don’t already have one)
  • Create a www cname record. (This will redirect web browsers that try to load www.edinburghfinancialanalytics.com to edinburghfinancialanalytics.com.)
  1. Within Anvil.works, change your application so that it’s published as edinburghfinancialanalytics.com.
    (This will result in your app sending/receiving email messages to and from anything@edinburghfinancialanalytics.)

For more info, see the docs at https://anvil.works/docs/deployment/custom-domains.

2 Likes

Hi Tom,

Thanks for your comprehensive reply!

End of day here, will implement tomorrow.

Your help is much appreciated.

Dave