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
Related
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
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
I am designing an application for a society.
In this application, there is a feature to send the contents of the particular page via mail by clicking of a button. There is no custom mail app designed. The feature uses iPad's native mail app to send the mail.
I want to restrict the user to send the mail only from the society's domain registered mail account and not from his/her personal gmail/yahoo/msn id.
How do I put this restriction from my app?
Thanks in advance
I suggest you send the email from your server, as you won't (and shouldn't) be able to control the user's email app. In other words, you allow the user to enter one or more email addresses into your app and then put the contents of the page into an email that you send from your email server to the specified addresses.
I followed this tutorial to send emails from rails and it works just fine. But I want to improve this for my application. I don't really want to receive emails from myself all the time, if someone were to use the contact us page. Currently I have the mail settings set as my own email and sent to my own email. My question is, is there a way to set it up such that the mail I receive from the email sent through the contact us page is the email they put in in the form?
To clarify, for example in a standard contact us page, there is the name, email, subject, body. Right now when I route the mail to myself, the :from and :to parameter are my own email, is there a way to set the :from parameter of the mail to the email specified on the page? I have tried changing mail(:subject => "[YourWebsite.tld] #{message.subject}") to mail(:from => "#{message.from}", :subject => "[YourWebsite.tld] #{message.subject}") but that didn't seem to work, I'm not really sure what to google for this specific problem because most of the contact us page tutorials I have come up with are similar to the one I already tried, which is more specific for sending mail to others instead of receiving.
Thanks!
You should not attempt to change the from field; most mail servers will not let you for obvious reasons. What you should be able to do is add a reply-to header with the email given in the address box (though often this will be bogus, esp on spam). Be very careful of course to validate your input.
Incidentally I'd set up a separate email user for your server to send from, to avoid issues with using your own email account. So use:
:reply_to => message.from