How to configure SMTP Settings using Nepal Telecom/Local ISP
Quick Configurations
Here are the essential configuration parameters for quick reference:
Configuration | Value |
---|---|
Incoming Mail Server Type | POP |
Incoming Mail Server Address | pop3.ntc.net.np |
Outgoing Mail Server Address | smtp.ntc.net.np |
Incoming Mail Server Port | 110 |
Outgoing Mail Server Port | 25 |
Primary DNS | 202.70.64.5 |
Gateway IP Address | 202.70.64.10 |
Secondary DNS | 202.70.64.15 |
Proxy Server Name | proxy.ntc.net.np |
Proxy Server IP Address | 202.70.64.15 |
Proxy Server Port | 3128 |
Alternate Dial-in Numbers | 15050 |
Configuring Rails App Email Settings
To configure SMTP settings for a Rails application, modify the smtp_settings.rb
file in the config/initializers
directory:
# config/initializers/smtp_settings.rb
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.ntc.net.np",
:port => "25",
:authentication => "plain",
}