Advice on my project - email service provider - ruby-on-rails

this is my first post on stack overflow.
First, I would like to apologize if previous posts solved a similar question but as you'll see, it can be a little tricky to search terms behind my question.
I just learned ruby on rails and I'm working on a project which requires a very good mailing tool.
Here's the actions of my project :
User1 fills a form with a User2 email
An email is automatically sent to UserB with inside a question and the answer needs to be form filled in the email by User2 (or
maybe a clicked image)
After that I need 2 things :
collect email's input and data from User2
resend automatically an email to User1 with the input and data (answer) from User2 email
Here's my 2 questions :
Using RoR, what email service can help me to create this scenario
and get the job done ?
I know that as User1 is giving User2 email, it's not very "permission-based" but User2 has a real incentive to get this email, open it and complete it, so what about deliverability in this case ?
Thanks a lot for your help,

This seems like more of a design question than an email service provider question. A solid email service provider is mailgun. Here is their rails api docs.
The explanation above is a bit confusing but it sounds like there are two controller actions. Once to send the initial e-mail and then one to store user2's response to the database and send off another e-mail to user1.

Related

I sent a link to a google form using a mail merge within google sheets, but the link defaults to an incorrect email address

My question is similar to this one that I found on Stack overflow, but the answer didn't quite fix my problem "How can I change accounts when I am trying to open up a restricted Google Form?" I thought I would add this for reference.
The specific issue I have isn't easy to describe, but I'll try my best (this is my first use of Stack overflow!)
I have set up a new Google form to be used as a membership form. I wanted this form to be pre-populated based on data in a spreadsheet. I have managed all this using a Mail merge addon in google sheets (Mail merge with attachments). Within the spreadsheet I have the recipient's email address, a bunch of other (pre-filled) information and a customised link to the google from, which starts with "=HYPERLINK("https://docs.google.com/forms/d/e/". The link works for the recipients, but it doesn't default to the email address I sent it to when they use the link to log into the google form. It defaulted to the email address that the form was created in (the club email address). As I only wanted one response from each recipient, when one person had completed the form others could not do so. The reason I mention the above question is that with a slight adjustment to the link - "=HYPERLINK("https://docs.google.com/forms/u/0/d/e/" ie adding in the u/0/ it will open up with the 'primary' email account of the user. However, this did not necessarily resolve the problem as some users had their primary and secondary accounts back to front. What I would really like is for the link to open using the same email account as the one I have sent the email to. Any help on achieving this would be greatly appreciated.
Thanks

Possible to get username for owner of mentioned comment?

I'm brand new to wrangling the IG Graph (and to API's, in general) and hoping someone might be willing to lend a hand. A bit of context: I am building a SaaS on Bubble.io. I have my authentication set up and am in the process of developing my FB App. In short, I want to enable the following:
Auth'd users curate content on IG by #mentioning my app's account in a comment to a post.
Those comments are intercepted via web hook (currently running smoothly on Integromat).
They payload is then passed to an API Workflow on Bubble, which parses the comment ID
The workflow then retrieves details of the comment and associated post.
The comment is correlated with the appropriate app user based on the username of the comment's owner.
The final two steps is where I'm confused. Based on my reading of FB's documentation, it seems impossible to retrieve a username or user id for the owner of a mentioned comment, which clearly presents a problem for me. Is this the case or am I just missing something? It seems to me there should be a way of getting at this data.
enter image description here
You can use the username field, as done followingly:
mentioned_comment.comment_id(COMMENT_ID){media,text,username}

Can you change the questions asked based on the delivery mechanism

I am building a survey using Survey Monkey that may be sent out via email as well as other channels such as a link in a web page or community or a Tweet. One of the questions asks if the responded would like us to follow up with them in more detail so we need to capture their contact info. That's easy enough if we email it to them as the survey will automatically capture their email address. However, if they have followed a link instead of responded from the email that won't happen. So, I want to be able to recognize that the survey responses come from a source other than email and then ask for contact info. If it's a response to the email survey I don't want to bother the respondent with asking them that info.
So, can I configure the survey to not display the page asking for contact info if the survey is sent via email.
No, the survey design cannot be impacted by the collection method. You would need to create two separate surveys and merge the results outside of SurveyMonkey.

create a basic contact form on the homepage of a rails app (step by step)

I would like to create a simple contact form on a one page site for the user, where the will write to the website owner.
I just need a basic form with this simple fields:
Name
Email
Message (text)
The logic is simple: a user write a feedback in the form >> the app check if everything is correct (I need a validation),take the form inputs and send a mail to a specific email (the admin email).
No data saved, just send a mail.
I am new to RoR (really at the beginning) and I have tried to find some tutorials and gems to create this form with controller, models etc.
But I didn't find a solution...
Everybody could help me?
Please let me know, thanks

Generating a new email address on the fly, but not really!

I have a blogging application. Once a blog-post is created by a user, it will be sent as an email to some of user's friends. I want a functionality where the friends will just reply to the email and the content of the email will go as comments for that particular blog-post.
One way to do this is to do something similar to what http://ohlife.com does. It basically creates a unique ID per user per day, has the reply-to attribute of the email set to post+{unique_id}#ohlife.com and probably parses this field to know which user is the email for, when it gets received. But it really has only 1 email address which is post#ohlife.com. The part after the "+" get's ignored by email servers. This also is applicable to gmail.
What I wanted to know, is whether this property is for particular email servers or is it universal? If it is not universal, is there is email server independent way of implementing this? I would not want this to be based on the email subject, as it's the trivial solution I know of.
it is depending on your mail server and how it is configured.. (although it is quite a standard) - for example in postfix:
recipient_delimiter = +
you could set it to anything you like .. i once configured it to be a dot so i can use it all over the web.. http://www.postfix.org/postconf.5.html#recipient_delimiter
but you could simply make it configurable in your application as well..
Besides using the email subject or address, one other easy way to accomplish this would be to just stick an identifier number at the bottom of the outgoing email's body. It would then come back to you in the quoted part of the response message. This is much less obtrusive than putting stuff in the subject or address, and if you're using HTML messages you can even make the code invisible.

Resources