Jump to content

Sending emails via command line: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
==Summary==
==Introduction==


This chapter provides a guide on how to send emails via command line using RUT routers.
RUTxxx routers support the possibility of sending emails via command line. While you can already configure automated sending of emails via the router's WebUI, these configurations are usually restricted to specific functions and services. Sending emails via command line provides you with the most flexible options in customization and automatization for email related tasks.
 
This chapter provides a guide on how to send emails via command line using RUTxxx routers.


==Email service provider parameters==
==Email service provider parameters==
Line 7: Line 9:
First off, you'll need to be aware of some information about your email service (the one you'll be using to send the emails). The parameters in question are: '''SMTP Server''', '''SMTP Server port''', whether it uses '''SSL/TLS''', login '''username''' and '''password'''. You can find your email service provider's SMTP Server information online. For example, Gmail's SMTP settings are:
First off, you'll need to be aware of some information about your email service (the one you'll be using to send the emails). The parameters in question are: '''SMTP Server''', '''SMTP Server port''', whether it uses '''SSL/TLS''', login '''username''' and '''password'''. You can find your email service provider's SMTP Server information online. For example, Gmail's SMTP settings are:


  Gmail SMTP server address        smtp.gmail.com.
  Gmail SMTP server address        smtp.gmail.com
  Gmail SMTP username              Full Gmail address (e.g. yourusername@gmail.com)
  Gmail SMTP username              Full Gmail address (e.g. name.lastname@gmail.com)
  Gmail SMTP password              Gmail password.
  Gmail SMTP password              Gmail password
  Gmail SMTP port (TLS)            587
  Gmail SMTP port (TLS)            587
  Gmail SMTP port (SSL)            465
  Gmail SMTP port (SSL)            465
  Gmail SMTP TLS/SSL required      yes
  Gmail SMTP TLS/SSL required      yes


You probably already know your username and password and you can find the rest of the settings with a quick search. Just type "'''email_provider_name smtp settings'''" into the search field of your preferred engine.
You probably already know your username and password and you can find the rest of the settings with a quick Internet search. Just type "'''email_provider_name smtp settings'''" into the search field of your preferred search engine.


==Logging in to the router==
==Logging in to the router==