ActionMailer SMTP settings in rails

1. Add following line to rails environment file ActionMailer::Base.delivery_method = :smtp2. Include your email authenticationCreate a ruby file called smtp_settings under config/initializers directory# config/initializers/smtp_settings.rbActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => "replies@gmail.com", :password => "_my_gmail_password_"}noTE** Keep starttls_auto always true3. Create sample mailer in order to ensure … Continue reading ActionMailer SMTP settings in rails

Email attachments in ruby & rails

1. Add ActionMailer configuration in environment.This configuration can be different for development and production.# Include your application configuration below# You can set two configurations sendmail as well as smtp# To use SMTP you need to provide your email account credentials# Sendmail is a unix package that needs to be installed and configured while # using … Continue reading Email attachments in ruby & rails

Spell Check in ruby and rails using BOSSMan

Wrong English is an often problem while developing any website product as it gives bad view to website user and thus does direct impact on product. BOSSMan is a ruby gem that interacts with yahoo web service and provides a simplest way to overcome such errors. Installation: gem sources -a http://gems.github.com gem install jpignata-bossman Apply … Continue reading Spell Check in ruby and rails using BOSSMan