Blame view

node_modules/nodemailer-wellknown/README.md 1.52 KB
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
  # Nodemailer Well-Known Services
  
  Returns SMTP configuration for well-known services
  
  ## Usage
  
  Install with npm
  
      npm install nodemailer-wellknown
  
  Require in your script
  
  ```javascript
  var wellknown = require('nodemailer-wellknown');
  ```
  
  Resolve SMTP settings
  
  ```javascript
  var config = wellknown('Gmail');
  // { host: 'smtp.gmail.com',
  //   port: 465,
  //   secure: true }
  ```
  
  ## Supported services
  
  Service names are case insensitive
  
    * **'1und1'**
    * **'AOL'**
    * **'DebugMail.io'**
    * **'DynectEmail'**
    * **'FastMail'**
    * **'GandiMail'**
    * **'Gmail'**
    * **'Godaddy'**
    * **'GodaddyAsia'**
    * **'GodaddyEurope'**
    * **'hot.ee'**
    * **'Hotmail'**
    * **'iCloud'**
    * **'mail.ee'**
    * **'Mail.ru'**
    * **'Mailgun'**
    * **'Mailjet'**
    * **'Mandrill'**
    * **'Naver'**
    * **'OpenMailBox'**
    * **'Postmark'**
    * **'QQ'**
    * **'QQex'**
    * **'SendCloud'**
    * **'SendGrid'**
    * **'SES'**
    * **'SES-US-EAST-1'**
    * **'SES-US-WEST-2'**
    * **'SES-EU-WEST-1'**
    * **'Sparkpost'**
    * **'Yahoo'**
    * **'Yandex'**
    * **'Zoho'**
  
  ### Example usage with Nodemailer
  
  > **NB!** This repo might be updated more often than Nodemailer itself, so in case
  > a wellknown host is not working, check that you have the latest version of
  > nodemailer-wellknown installed in your node_modules. Otherwise the data you try
  > to use might be still missing.
  
  ```javascript
  var transporter = nodemailer.createTransport({
       service: 'postmark' // <- resolved as 'Postmark' from the wellknown info
       auth: {...}
  });
  ```
  
  ## License
  
  **MIT**