impact-graph icon indicating copy to clipboard operation
impact-graph copied to clipboard

Find a way to do email verification on project verification form through Ortto

Open divine-comedian opened this issue 9 months ago • 12 comments

Currently we are using dappmailer services for only this one feature:

When a user needs to verify their email on the project verification form image

image

Would it be possible to send this verification URL via an email sent by Ortto? If so we can switch to this method, shutdown the dappmailer service and save some $$$ on our monthly infra.

cc: @geleeroyale

divine-comedian avatar Apr 28 '24 13:04 divine-comedian

ok interesting. in my test I disabled the dappmailer service for a couple of minutes and donated to my own campaign (Muhaha). I only got emails when the service was enabled - so I think the hook to dappmailer is used in probably all email flows?

geleeroyale avatar Apr 28 '24 18:04 geleeroyale

ok interesting. in my test I disabled the dappmailer service for a couple of minutes and donated to my own campaign (Muhaha). I only got emails when the service was enabled - so I think the hook to dappmailer is used in probably all email flows?

Could you confirm if this is true @RamRamez ?

@geleeroyale by campaign do you mean project?

divine-comedian avatar Apr 29 '24 13:04 divine-comedian

@RamRamez - Can you please provide an update on this issue?

divine-comedian avatar Jun 21 '24 15:06 divine-comedian

@divine-comedian I need an Ortto activity for that with two inputs:

  1. the email address that form will be sent to (we don't use userId here)
  2. the link to the verifying email address
image

RamRamez avatar Jun 22 '24 18:06 RamRamez

endpoint

https://api-us.ortto.app/v1/activities/create

headers

headers: {
        'Content-Type': 'application/json',
        'X-Api-Key': '{{ APIKey }}',
        'Content-Length': data.length
    }

body

{
	"activities": [
		{
			"activity_id": "act:cm:verification-form-email-verification",
			"attributes": {
				"str:cm:email": {email},
				"str:cm:verificationlink": {verificationLink}
			},
			"fields": {
				"str::email": "[email protected]"
			},
			"location": {
				"source_ip": "172.217.4.1",
				"custom": null,
				"address": null
			}
		}
	],
	"merge_by": [
		"str::email"
	]
}

Then you should receive an email that looks like this: image

divine-comedian avatar Jun 23 '24 20:06 divine-comedian

@divine-comedian The activity is capturing the events but the campaign is not sending emails. Could you check please? image

RamRamez avatar Jun 24 '24 11:06 RamRamez

@RamRamez - sorry about that, the journey was published... but it wasn't turned on, WHO DESIGNED THIS SYSTEM!?!?!

should be working now

divine-comedian avatar Jun 24 '24 13:06 divine-comedian

@maryjaf please test and verify Ortto needs one minute to send the verification email.

RamRamez avatar Jul 01 '24 09:07 RamRamez

It seems "resend email" doesn't work, by tapping on this button I didn't receive any email @RamRamez

maryjaf avatar Jul 03 '24 07:07 maryjaf

@maryjaf I tested and it's ok for me

image

RamRamez avatar Jul 03 '24 10:07 RamRamez

It seems "resend email" doesn't work, by tapping on this button I didn't receive any email @RamRamez

Maybe @RamRamez can setup you with an API call you can make in postman and test if it works that way - I double checked the journey and email setup and you should be able to enter the journey and receive the email multiple times.

divine-comedian avatar Jul 03 '24 14:07 divine-comedian

I've checked again and it has been resolved for me. I've received this email for verification:

image

maryjaf avatar Jul 07 '24 06:07 maryjaf