I was trying to use my own email sending service f...
# support-questions-legacy
p
I was trying to use my own email sending service for email verification, but not receiving any email, but the same script when used independtly works fine
n
Hi @paras Can you show us samples of what you tried and any errors you ran into?
p
https://supertokens.com/docs/thirdpartyemailpassword/email-delivery/custom-method using it for email verification, I guess it returning at
return  originalImplementation.sendEmail(input);
without sending email
here it is
.
n
If you are sending a custom email setup you dont need to call original implementation. You only need that if you want SuperTokens to send the email
Can you send the full config, with the parent of
emailDelivery
p
what am I missing here
I wrote a script named ses_sendemail.js , or can I call that in sendEmail
n
What does
console.log("Response : "+ response);
output?
p
not getting any output
nothing is logged, I even tried putting a console statemnt, just when it enters the sendEmail function, nothing is logged there also
so the return statement : return originalImplementation.sendEmail(input);, should it be removed?
n
How are you trying to trigger the email?
p
I enabled email verification, so when signup api is hit, it should trigger it
n
signup does not automatically trigger the email unless you use our pre built UI. For custom UI you need to handle the flow yourself
p
So I enabled email verification, how will that be triggered if not while signing up?
n
Refer to our API spec to know which API to call for this: https://supertokens.com/docs/fdi
p
I am using core in docker, I checked docker logs for core and it shows this email/verify api being called
just after signup
I resolved that one
How can I get the user email id, when sending custom email in sendEmail?
resolved
5 Views