ihp
ihp copied to clipboard
IHP Cloud: `sendmail: createProcess: posix_spawnp: does not exist (No such file or directory) `
I've tried to get the example mail code from the Guide to run. I'm using SendGrid as described. It works flawlessly with my local development instance but deploying it over IHP Cloud throws a generic error message when trying to send. The logs show this error message:
sendmail: createProcess: posix_spawnp: does not exist (No such file or directory)
Thanks for reporting this 👍 Did you add sendmail
as a dependency in default.nix
?
Thanks for the quick response!
Adding sendmail
to default.nix
like this:
otherDeps = p: with p; [
sendmail
];
leads to this compile time error:
error: undefined variable 'sendmail'
I'm going to check if there is some other package missing. It seems to know about sendmail
but missing a subdependency
Try mailutils instead of sendmail as the Package Name
With mailutils
the project compiles but the error still remains
Until a solution is found for this, I'm looking for a workaround. I have been able to send mails from SendGrid via sendgrid-v3
. Is there a way for me to create confirmation tokens for account confirmation myself?
Clsoing as IHP Cloud was shutdown