Rails: making an email pop-up box - ruby-on-rails

I need the functionality to allow a user to send an email to another user. It would be ideal if they get a gmail pop-up with the user's email pre-filled. However, I'm unsure how I to approach this feature.
1) Is this possible?
2) If it is. How would I go about it?

Well, assuming they have (and are signed into) Gmail, and have setup their machine to open mailto links with Gmail, just a mailto:some.guy#gmail.com link would do. You could also specify a subject by appending ?subject=This+is+a+test to the end of the mailto link.
<a href='mailto:some.guy#gmail.com?subject=This+is+a+test'>Email Some Guy</a>

Related

How to create a link to make it "write to a specific Gmail"?

I'm trying to make a footer, with Instagram link, Facebook link, Youtube link so on and so forth. My question is: How do I create a link that specifically refers to a state like write to an email account?
For instance, I have this email:
example#gmail.com
What I want is a link like this:
https://mail.google.com/write_to:example#gmail.com
And when someone clicks on it, the Gmail automatyli opens the "write letter tab" to example#gmail.com.
Thanks :)
Well you can't force somebody to gmail. You can use a normal link
<a href='mailto:example#gmail.com?subject=write letter>mail to</a>
This will open the users default mail app.
Details can be found at http://tutorialspark.com/html5/HTML5_email_mailto.php

Is it possible to launch a program from the TFS portal from a link or button on the dashboard?

Interested in trying to launch an email link where it launches Outlook and populates the recipients with the grp email account. Or something like a link to launch Notepad. I've done some looking and the best thing I've found that doesn't work is this in markup.
[Launch Notepad](file://c:/windows/notepad.exe)
Do you know if this is possible, and what is the method to do it?
If you're looking to send an email from a link, you want to use mailto: protocol links https://en.m.wikipedia.org/wiki/Mailto

Can't click on link inside an outlook email sent by Rails

I have a problem when i send email using Rails email text format, the email contains a link for password reset and all work fine, but when i open email in outlook the link is shown but can't click on. this problem is only when send an email to an hotmail/live/outlook account, is there a solution for that?
Check out this link. It may be a simple matter of changing your Outlook settings.
http://office.microsoft.com/en-us/outlook-help/enable-or-disable-links-and-functionality-in-phishing-e-mail-HA001229962.aspx

Rails: Specify email account that mail_to will open

I'm relatively new to Rails and would like to place a button on the admin-only part of my website that will open my company gmail account with the addresses of all of the registered users pre-populated in the 'bcc' field.
I almost have the mail_to helper working for this purpose except the mail_to link opens my personal gmail account instead of my company account.
Is there a way to use rails to trigger the log in to a specific gmail account and to pre-populate the "to" field as well?
I think, the link opens your personal gmail account just because you have it open in another browser window or tab.
AFAIK, Gmail does not allow to open different accounts in different windows at the same time. (Probably I miss something.)
Therefore, to make link open your corp account regardless of everything, the link handler should forcibly log out the current Gmail session and start a new one.
I don't think that you really want this behaviour (I mean closing the current session in such a rude way).

Altering the "From" or "Reply to" in google SMTP

I want to provided "Email a friend" functionality to my site. I have a ASP.MVC site and I am using GMail as our provider (google apps for business).
So, a user will press my "Email a friend" button and be asked to enter their "reply to email address" and the persons email the wish to send the email to. I then use our log in credentials to send the email. The problem is the the "reply to" address is changed to the credentials address.
So bob#home.com wants to send an email to tom#home.com. He enters the correct email addresses for both tom and himself. But when tom get the email its reply to is "sendingsite#gmail.com" which are the log in credentials.
I have done some research on this and as far as i understand this is not possible in gmail.... I believe.
My question is two fold.
Is this possible in gmail?
If not, how would i go about getting this functionality?
I know there are third party tools which do this and are free etc but we dont want to use these due to privacy issues.
Is this possible in gmail? AFAIK it is not possible to change the FROM address to anything that is not either the google apps account name for the SMTP settings or an alias of it. I believe you can change the REPLYTO address. In System.Net.Mail.MailMessage, there is a ReplyToList property. Are you setting the replyto there?
If not, how would i go about getting this functionality? Try something besides gmail / google apps for business. I have heard good things about SendGrid.
Also be careful with this. GA4B has a limit on the number of mails that can be sent in a specific time period. If you violate this, G will detect that you are abusing the service and lock the account you are sending mails from. They intend their service to be used by people, not machines, to send mail. All it takes is 1 automated attack on your send-to-friend page to disable your GA4B account, so consider a captcha or some other human-proof widget.

Resources