AirBNB style email masking service implementation with AWS Lambda - laravel

I am building a small service application where users can cloak their email addresses using the service. Users who register to the website will have a unique email address to communicate with. I have tried to implement this relay service but i am stuck implementing it.
What i have tried
Catch all the emails coming for the domain with SES receiving rules and saving to the s3 bucket
Trigger lambda function to retrieve the original address of the designated user by calling an api call providing the email address user wanted to contact.
After a successful call the api call returns the original (unmasked) email address for lambda to forward the email to
Question: Is this an overkill when dealing with 1000s of emails handled like this ? Is there any way that you had implemented such as this ?
*AirBnB style communication

Related

How to get the "from address" from the user in spring boot

`how to get the from address from the user? As we know that the from address has been given by app id which we get from email of individual user who needs to be host the message. This will only be a one way communication and i need two way communication that is whoever can send mail to anybody.
I have tried to make one way of communication ie., one user can send to many receipient.
I need many to many form of email sending.

Use multiple sender address in Laravel Email

How to use different sender address in sending emails in Laravel. What i want is to send some emails from one email id and some mails from second email id but gmail is picking up every time the configuration done in env not from mailable class.
You can't replace sender with Google SMTP service.
Google rewrites the From and Reply-To headers in messages you send via it's SMTP service to values which relate to your gmail account.
GMail does allow sending via different addresses or alias but this is for sending via the GMail web app, see Here
If you own the domain you are supposedly sending from, use the Gmail for Domains , and setup a "myapp#mydomain.com" account.
Or, use another SMTP provider

Does Aweber have a send email API but broadcast does not solve the problem?

I was about to start developing my companies website which is currently in research phase. I was researching with the Aweber API (https://api.aweber.com/) but did not find the API for using a send mail function.
I came across Create Broadcast API here
https://api.aweber.com/#tag/Broadcasts/paths/~1accounts~1{accountId}~1lists~1{listId}~1broadcasts/post
but this requires a list to be used I want to send email to individual contact in the list separately. Any help would be appreciated.
AWeber's API can only send broadcast messages to a list, or a previously created segment of subscribers. You cannot send messages out to a single person solely using the API.
You could use the web UI to create a segment of "email address is ...", then get the segment and send the message to it using the API, but that requires an extra step.

Send Mailchimp Campaign to Single Email Address

I'm creating custom emails (many customizations) in MailChimp campaign builder. Looks like the only option to send is via a campaign, which I'd need to manually upload a list of email addresses. I honestly just want to use the builder to send a quality form email, that I customize for each recipient.
Is it possible to send an email to a specific email address without building a list, etc? This will probably be a one-time thing.
You can send campaign to single email address in mailchimp through this method. However you can't send the same campaign more than once to same email address.
create an automation email with API 3.0 as trigger.
Now, to send a campaign, make POST call to the given url with email address in your mailchimp
https://us19.api.mailchimp.com/3.0/automations/********/emails/********/queue
Now, To call that api you need to add HTTP BAsic Auth or OAuth 2 to API Request. See this answer MailChimp 3.0 HTTP POST Json Example
There's also a npm module to make life easier https://npmjs.com/package/mailchimp-api-v3
This is just a workaround as mailchimp was not built for single emails. In the longer run I'd suggest you to look into mandrill, sendgrid or other transactional email tool.
You are better off using Mandrill, MailChimp's transactional email app, to send one off emails. You can still use or at least make use of MailChimp campaigns but you can send one off emails that are customised and you do not need to send to a list

How does the CRM Email router set the RegardingObjectId on incoming emails

We have a system setup where complaints from a website form are emailed to an address and subsequently picked up by the email router and placed in a queue. Users then create a case from these emails (custom code create the case and populates it based on the email content and the queue it arrived into)
Some of the emails are coming in and the regarding object is set to an existing case even though the email and the case are not related. My guess is that this is something to do with the fact that the emails are coming into the queue from the same web address (complaints#abc.com)
Can somebody explain to me the criteria the email router uses for setting the regarding object of an incoming email
Thanks,
Neil
Looks like you are another "victim" of a feature called Smart Matching. For info on what that is and how to disable it, look here.

Resources