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

Update an email address for an existing contact #310

Open
EwenH opened this issue Oct 19, 2024 · 1 comment
Open

Update an email address for an existing contact #310

EwenH opened this issue Oct 19, 2024 · 1 comment

Comments

@EwenH
Copy link

EwenH commented Oct 19, 2024

Hi, we have a database of members numbering about 1,000 and we try to do the right thing by keeping our email addresses as up to date as possible and we use the API where possible.

The scenario is [email protected] has moved jobs to [email protected] and we just want to update his address easily and in both our db and MailJet. Unfortunately you cannot (see mailjet/mailjet-apiv3-nodejs#64)

Would it be possible to create a new call of
replaceEmailAddress(old email address {string required},
new email address {string required},
Delete old Address {boolean default True}
)

This would 
    1. Check if old email address exists and fails if it doesn't exist 
    2. Check if new email address exists and fails if it does exist <- too many other considerations re lists, history etc.
    3. Create the new email address 
    4. Find all the lists the old contact was in and add new contact to the same lists. 
    5. Same as above re segmentation
    6. No email history is brought over from the old contact but it would be good to show that it was a replacement for the old   email address 
    7. Adds old contact to exclusion list
    8. If "Delete old Address" is true then purge the entire old contact details.

Reasoning: I am finding that it takes about 10-15 minutes per replacement email address to update the db, confirm what lists they are on and manually add them. This way it could be do easily and also provided by the MJ website. It would reduce the number of bounced emails and increase rates of delivery.

@oleksandr-mykhailenko
Copy link
Collaborator

Hi, we have a database of members numbering about 1,000 and we try to do the right thing by keeping our email addresses as up to date as possible and we use the API where possible.

The scenario is [email protected] has moved jobs to [email protected] and we just want to update his address easily and in both our db and MailJet. Unfortunately you cannot (see mailjet/mailjet-apiv3-nodejs#64)

Would it be possible to create a new call of replaceEmailAddress(old email address {string required}, new email address {string required}, Delete old Address {boolean default True} )

This would 
    1. Check if old email address exists and fails if it doesn't exist 
    2. Check if new email address exists and fails if it does exist <- too many other considerations re lists, history etc.
    3. Create the new email address 
    4. Find all the lists the old contact was in and add new contact to the same lists. 
    5. Same as above re segmentation
    6. No email history is brought over from the old contact but it would be good to show that it was a replacement for the old   email address 
    7. Adds old contact to exclusion list
    8. If "Delete old Address" is true then purge the entire old contact details.

Reasoning: I am finding that it takes about 10-15 minutes per replacement email address to update the db, confirm what lists they are on and manually add them. This way it could be do easily and also provided by the MJ website. It would reduce the number of bounced emails and increase rates of delivery.

Hello. Sorry for the delay, but looks like your request is for another wrapper, am I right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants