W
Wasp2mo ago
Xuban

app.emailSender must not be set to Dummy

❌ --- [Error] Your wasp project failed to compile: ------------------------------- - app.emailSender must not be set to Dummy when building for production. ❌ --- [Error] Building of wasp project failed: ----------------------------------- 1 errors found.
4 Replies
kapa.ai
kapa.ai2mo ago
Hi @Xuban. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- This error occurs because you are trying to build your Wasp project for production while using the Dummy email provider. The Dummy provider is not meant for production use and is only intended for development purposes. To resolve this issue, you need to change the email provider in your main.wasp file to a production-ready provider before building for production. Wasp supports several email providers out of the box, including SMTP, Mailgun, and SendGrid. Here's how you can fix this: 1. Open your main.wasp file. 2. Locate the emailSender configuration. 3. Change the provider from Dummy to one of the production-ready providers. For example, if you want to use SendGrid, you would modify your main.wasp file like this:
app Example {
...
emailSender: {
provider: SendGrid,
}
}
app Example {
...
emailSender: {
provider: SendGrid,
}
}
After changing the provider, you'll need to set up the necessary environment variables for the chosen provider in your .env.server file. For more information on setting up email providers in Wasp, you can refer to these resources: - Sending Emails - Using the SendGrid Provider - Using the Mailgun Provider - Using the SMTP Provider Remember, the Dummy provider is only for development use, as stated in the documentation: Using the Dummy Provider By switching to a production-ready email provider, you should be able to successfully build your Wasp project for production. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Xuban, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Xuban
XubanOP2mo ago
which one of these email senders are free ? @kapa.ai which one of these email senders are free ?
kapa.ai
kapa.ai2mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Based on the information provided in the knowledge sources, I can offer some insights about free email sender options for Wasp: 1. Dummy Provider: This is a free option, but it's important to note that it's only meant for development purposes. The Dummy provider simply logs emails to the console instead of actually sending them. It's great for testing during development, but cannot be used in production. Sending Emails 2. SMTP: While SMTP itself is a protocol and not a service, many email providers offer SMTP services with free tiers. However, the knowledge sources don't specify any particular free SMTP providers. 3. Mailgun and SendGrid: These are commercial email service providers. While they often offer free tiers for low volume sending, they typically require account creation and may have limitations. The knowledge sources don't provide specific information about their pricing or free tiers. For a completely free option that works in production, you might want to consider using a free tier of an email service that supports SMTP. However, it's worth noting that many community members have suggested using external newsletter services for certain use cases. For example: - MailChimp was mentioned as having a good free plan (up to 1000 subscribers). Discord support thread - Sender.net was also recommended for its quick setup and generous free plan. Discord support thread Keep in mind that while these services were mentioned in discussions, they are not directly integrated with Wasp's email sending feature. You would need to use their APIs or SMTP services separately. For the most up-to-date and accurate information on free email sending options compatible with Wasp, I recommend checking the official Wasp documentation or reaching out to the Wasp community on their Discord channel. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Xuban, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
A³Learn
A³Learn5w ago
I am using sendgrid and will eventually move to AWS ses

Did you find this page helpful?