Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
divine-comedian opened this issue Apr 28, 2024 · 12 comments
Assignees

Comments

@divine-comedian
Copy link
Collaborator

divine-comedian commented Apr 28, 2024

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

@geleeroyale
Copy link
Collaborator

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?

@divine-comedian
Copy link
Collaborator Author

divine-comedian commented Apr 29, 2024

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
Copy link
Collaborator Author

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

@RamRamez
Copy link
Collaborator

@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

@divine-comedian
Copy link
Collaborator Author

divine-comedian commented Jun 23, 2024

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

@RamRamez
Copy link
Collaborator

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

@divine-comedian
Copy link
Collaborator Author

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

should be working now

@github-project-automation github-project-automation bot moved this to New Issues in All-Devs Jun 26, 2024
@divine-comedian divine-comedian moved this from New Issues to Code Review/PR in All-Devs Jun 26, 2024
@RamRamez
Copy link
Collaborator

RamRamez commented Jul 1, 2024

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

@maryjaf
Copy link
Collaborator

maryjaf commented Jul 3, 2024

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

@RamRamez
Copy link
Collaborator

RamRamez commented Jul 3, 2024

@maryjaf I tested and it's ok for me

image

@divine-comedian
Copy link
Collaborator Author

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.

@maryjaf
Copy link
Collaborator

maryjaf commented Jul 7, 2024

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

image

@divine-comedian divine-comedian moved this from Code Review/PR to Done in All-Devs Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants