i used to have gmail_smtp plugin in my rails application. and nearly time , i change to mandrill. however the heroku still keeps using gmail and search my gmail username and password. Does anybody know how to change that in heroku ? it is really annoying for me.
thanks a lot!
Related
I want to integrate Swift Mailer in Phalcon 3 using dependency injection. I have already seen various ways to do solve this issue in Phalcon and Phalcon 2.
It would be great if you can help me with this issue.
Use https://github.com/phalcon-ext/mailer and follow its instruction and you will get a working solution to send emails through Swift Mailer in Phalcon 3.
That being said there were a few issues which I had to tackle to get things up. So here is a list of changes that you have to make on your end:
If you are going to use smtp then change the port to 587 and encryption to tls
Apart from it you are going to face error from google and it will send a security alert to attached gmail id. In the security email which I received; I clicked on allowing access to less secure apps
And then it took me to a google sign-in page where I was able to lower security by allowing less secure apps to access my gmail account.
There might be a better way to send email without lowering security access. If you find one then please let me know.
The github page says to add in your code require_once('vendor/autoload.php'); you can do it in index.php located inside the public folder.
I am using twitter gem 4.8.1 http://rdoc.info/gems/twitter
It will not send stuff locally for some reason (all credentials the same and set up) saying "unable to verify your credentials" ... when the code is pushed to Heroku though it tweets with no problem.
Any reason for this? Would be nice to test out stuff locally with the gem.
Thanks!
Usually sites like Twitter or Facebook require that you register the domain you will use when publishing. If you registered www.mydomain.com with Twitter, that is the only domain it will accept connections from.
So you will need your Tweets to come from the website you entered here:
https://dev.twitter.com/apps/new
I've been trying to develop a facebook app. But since 1 oct 2012 facebook needs secured (https / SSL) connections. before i start the real app and get a server with SSL i really want to test creating an facebook app.
So i foun openSSL and thought i might install that on my easyphp (apache) local server.
Only problem is that its a bit tricky to find out how to. I'm no server/apache/ssl pro. i create web apps. So is there anyone who has some info on how to do this.
Or maybe other (better) suggestions of going at it.
thanks a lot in advance!
Ok i found a way to test building an facebook app without needing a server with SSL.
Just use a public dropbox link. Dropbox is secured.
The simple tutorial can be found here:
http://www.wpcode.net/fb-app-dropbox.html/
I have to add one thing though. Facebook requires a folder instead of a file. To cheat this add yourfile.html?fakevar=1 to your dropbox public link.
p.s. dropbox cant parse php/asp so its just for js and basic testing.
I hope this saves someone some time ;)
Though it is too late to answer but Using Open SSL in facebook app is not a good idea . There are many cheap SSL there you can buy one of them . For Example I bought Positive SSL ( only for one domain or on sub-domain ) for 9$ .
You Try Heroku to deploy and test your app
I'm working on an application which should import all e-mails from a user's e-mail-account and store them in its own database for further use. The collection of all the e-mails should be done in a background job (via Delayed Job or similar).
To achieve this I'll need to store the user's email-password somewhere in my application. As this is going to be an internal application trusting my app won't be the problem.
I am looking for a best practice on how and where to store these e-mail passwords as securely as it gets.
Encrypting the e-mail password with the user's login password to my app is not an option, because I have to run the job in the background.
Any advice on this? Thanks in advance.
Env: Rails 3.2 with MongoDB
I solved it by using the attr_encrypted Gem. Be sure to use the encoding: true option when using MongoId.
As the key for the encryption I use my application's secret token. I think that's secure enough for my purpose.
Thanks to this answer: https://stackoverflow.com/a/6686132/1437361
I am trying to add the facebook connect to an existing site in rails 3 that uses authlogic.
so that existing users can sign in via their facebook account (I'll find existing account via email id in facebook ) and new users can sign up using facebook too.
I am trying to use authlogic connect
( I found other alternative like omniauth , facebooker2 etc , omniauth plays well with devise but I dont want to move to devise & it seems only authlogic connect plays well with authlogic and rails3 )
But I am unable to find some proper tutorial where I could understand how to use it.
I looked at their project site :
https://github.com/viatropos/authlogic-connect
I used the little help on their site and tried to do a little.
Now when the facebook login button is clicked it goes to facebook page asks for all the permission and then it comes back to a url with code as a paramater. what do I do with the code param ?
Can someone suggest me a proper tutorial (not example) for using the authlogic connect
Thank you
I really gave up on authlogic connect.
Though it seems its the best solution, It integrates so much iwht the authlogic that I am unable to customize it.
I finally got omniauth working with authlogic , though a lot of things were manually done
railcasts simple omniauth authentication helped a lot,