I need to create a link on a mail ID(say x#company.com) which would take you to Compose mail of the logged in e-mail such as outlook account and put x#company.com in To:____
Any suggestions on how it can be done in Ruby on Rails using ActionMailer?
If you're to display this link on a website, a simple mailto: link would work. eg.
Email me
You can as well provide the subject for it
...
If you're trying to display this link inside another email, (ie. an automatic email sent from your website, for example, a transactional email) you can simply display the email address and rely on your email client (eg. Gmail, Outlook) to pick it up.
A few examples can be found here
Related
I want to set a logo for the LCA Systems mail that I am sending from my application to be as the others bellow. Now it is showing just an Interrogation point. Is there any way to replace this interrogation to an image?
If you create a Google+ profile using your sending email address. If that address is noreply#lcasystems.com, simply create a Google+ account using that address.
https://accounts.google.com
Other email clients will use Gravatar. Sign up for an account using the email address you use to send messages.
https://gravatar.com
There is no universal method to get all email clients to use one central avatar for personalization.
Good luck.
I'm working on an app where I want the users to be able to send messages between each other via email. I checked Action Mailer but it allows me to send emails from my application not between two users.
I was thinking of doing it by displaying the user email so they can click on it and send that user email. Any idea about how i should do this?
If you're satisfied with only email-link, then you can just use mailto url-helper. It'll open your local default email-client.
For ex.
mail_to "where.to.send#mail.com", "Link name", cc: "send.here.as.cc#mail.com", subject: "Yep, it works"
will produce
Link name
Hi I have used devise for the authentication purpose and also made few changes in it such I have provided sign in using both email and mobile number. Refereed this link.
Here is my code
def self.find_for_database_authentication(conditions={})
find_by(mobile_number: conditions[:email]) || find_by(email: conditions[:email])
end
I am using confirmable module for sending confirmation instructions and they are working fine for email.
Now if user doesn't enter this email (only enters the mobile number) then he has to send the SMS (Confirmation instruction in SMS).
So I have following doubts
How can I achieve this functionality?
How can I generate the same confirmation link for the same.
EDIT (I tried following solutions for generating confirmation link)
As I have to send the confirmation link in SMS also, so I tried to generate the given link using following
http://localhost:3000/admin_users/confirmation?confirmation_token=#{#user.confirmation_token}"
it generates the follwing type of link
http://localhost:3000/admin_users/confirmation?confirmation_token=00b2880c9662c65dc6d276db08532ea42d4333e6b7d2357d036cb9233eed41e8
when I tired to use this link it gives me Confirmation token is invalid error. After searching I found this. So how can I generate the confirmation link out side the devise scope.
As for sending the instructions via SMS you might want to take a look at tropo service or restcomm if you want to setup your on server.
Tropo is particularly easy to use, you will need a small deposit (like $10) to enable the SMS sending feature.
Regarding the generation of the url, you might have to create a controller that extends Devise::ConfirmationsController and override the create method to add the logic to check for the existence of email or phone number and react properly.
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
Im really new to iOS development, but I have some experience in OSX. I am trying to make an app where the users fills out text fields with information and then presses a submit button. The contents of the fields that they filled out are then automatically sent to me via an email.
I built a similar OSX application that could do this, but I cannot figure out how to do it on iOS.
I do not want to use the MessageUI.framework because, as far as I can tell, the user must press the send button after it brings up the email form. I just want it to send in the background.
I have no problem hardcoding in the email address and password, or using the same email for send and receive. ex: to: me#gmail.com from: me#gmail.com
Any pointers would be sweet!
You have two options if you do not want to show the mail composer window to the user
Use an SMTP Client for iOS like this one and send the email from your app with the email id and password hard-coded in the app. But if you want to change the email id or change the password in the future, you'll need to update the app. So this is a less desirable solution
Create a web script on your server which accepts the form fields to be submitted by the user. Then from this web script, send the email to your email id (for instance, if you use a PHP script, use the mail function to send the email). Call this script in the app using NSURLConnection.
You are going to need to make a custom form and then send all of the fields in the form as POST parameters to a custom API that you make on some server. Then you can just redirect that as an email to yourself through something like SMTP