Windows Setup
Preface
At this stage of the development, there is no installer.
Currently the way to use OSA-Mailer is it have an external system to run its run script osa_mailer.cmd
Preparations
Download
Steps:
- Get to the releases page
- Pick the latest version of OSA-Mailer
- Expand the
Assets
title by clicking on it- Pick the
.7z
7-zip archive file for Windows and click on it to start downloading
Extract
In order to extract a 7-zip archive, you need an extractor that supports it. Your best bet is probably to download the official 7-zip from its website https://www.7-zip.org/
Steps:
- Extract the archived file from the
Download
section anywhere you like, but make sure you will have controlled access to the extractedoutbox
directory as this directory serves clients as a gateway for sending E-mails
Configure
osa_mailer.cmd
::: Configurations SET SERVER=localhost SET PORT=25 SET AUTH=noauth ::SET USERNAME=username ::SET PASSWORD=password
Steps:
- Edit the script file
osa_mailer.cmd
with your favorite text editor- Look for the
:: Configurations
comment- Notice the
SET
statements which set each environment variable for OSA-Mailer- Configure each environment variable accordingly
Environment Variable Description Mandatory SERVER
SMTP server IP address or hostname (e.g. Gmail, Outlook, SMTP relay-proxy, etc.) ✅ PORT
The TCP port number for the SERVER
variable✅ AUTH
Authentication method: TLS
,STARTTLS
orNOAUTH
✅ USERNAME
Provides the username when using an authentication method other than NOAUTH
❌ PASSWORD
Provides the password when using an authentication method other than NOAUTH
❌
- To uncomment a variable, remove the double-colons
::
from itsSET
statement (e.g.::SET USERNAME=username
becomesSET USERNAME=username
)
Setup a Task for Windows Task Scheduler
Windows Task Scheduler can be used as a means to trigger and activate OSA-Mailer, but it is not a requirement in case it doesn't fit your use-case.
Open the Windows Task Scheduler
Here are a few links to external articles on different methods to launch the Windows Task Schedular:
Here is one way to do this:
In order to open the Windows Task Schedular, we will use aRun
command:
- Hold the
Windows
button + press theR
button- This should open the
Run
window- Type in:
taskschd.msc
and either click theOK
button or press theENTER
key
Create a new Task
It is recommended to create the task within a dedicated folder so it will be easier to maintain and not mix-up with other unrelated tasks.
Steps:
- On the left pane, select the
Task Scheduler Library
directory by clicking on it once with theLEFT MOUSE BUTTON
- Once selected,
RIGHT MOUSE BUTTON
click on the already selectedTask Scheduler Library
, to open the actions menu- Select
New Folder...
from the actions menu
- Pick a proper name (
OSA-Mailer
is recommended) and either click on theOK
button or press theENTER
key
- Select the newly created folder by a single
LEFT MOUSE BUTTON
click
- Once selected,
RIGHT MOUSE BUTTON
click on it again to pop the actions menu- Select the
Create Task...
from the actions menu
- The
Create Task
window will pop-up- Provide the name for the task:
Check Outbox
(recommended)- Under
Security options
, select theRun whether user is logged on or not
and check theDo not store password. The task will only have access to local computer resources.
checkbox- Click on the
Triggers
tab
- On the
Triggers
tab, click on theNew...
button to create a new trigger
- The
New Trigger
window will pop-up- Make sure that
Begin the task:
is set toOn a schedule
- Make sure that
Settings
is set onOne time
- Under
Advanced settings
, make sure that theRepeat task every:
checkbox is checked- (Recommended): Manually copy the value
1 minute
and assign it- Make sure that
for a duration of:
is set toIndefinitely
- Make sure that the
Enabled
checkbox is checked- Click on the
OK
button to the add the trigger
- Click on the
Actions
tab
- On the
Actions
tab, click on theNew...
button to create a new action
- The
New Action
window will pop-up- Under the
Program/script:
textbox, assign the path to where theosa_mailer.cmd
file is located
- Optional: You can click on the
Browse...
button to locate theosa_mailer.cmd
file
- Click on the
OK
button to add the action
- Click on the
Conditions
tab
- Make sure that there are no conditions in place and all checkboxes are unchecked
- Click on the
Settings
tab
- Make sure that only the following checkboxes are checked:
Allow task to be run on demand
Run task as soon as possible after a scheduled start is missed
If the running task does not end when requested, force it to stop
- Make sure that the field
If the task is already running, then the following rule applies:
has the valueDo not start a new instance
in its dropbox- Make sure the rest of the checkboxes are unchecked
- Click on the
OK
button to create the task
- We are finished. You can close the Windows Task Scheduler