annotate configuration.js @ 0:e459f344d8bd

First commit.
author Sonny Piers <sonny.piers@gmail.com>
date Wed, 15 Jun 2011 06:10:47 +0200
parents
children c1a19866a233
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
1 var config = exports;
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
2
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
3 //This is the configuraton for the XMPP component
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
4 config.XMPP = {
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
5 jid: "mailer.localhost",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
6 password: "54321",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
7 host: "localhost",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
8 port: "5347",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
9 name: "SMTP gateway that allows you to send mail"
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
10 };
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
11 //This is the default SMTP configuration used only if config.defaultSMTP is set to true
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
12 config.SMTP = {
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
13 host: "smtp.example.com",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
14 port: 465,
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
15 authentication: "login",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
16 username: "example(@example.com)",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
17 from: "example@example.com",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
18 password: "exemple",
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
19 ssl: true
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
20 };
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
21 //Enable easy SMTP configuration for user when register to the component (use http://ispdb.mozillamessaging.com/ database)
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
22 config.easySMTPConf = true;
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
23 //Enable user to send mail without registering to the component, will use config.SMTP settings
e459f344d8bd First commit.
Sonny Piers <sonny.piers@gmail.com>
parents:
diff changeset
24 config.defaultSMTP = true;