forked from QuentinCG/OVH-Email-Manager-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_example.php
39 lines (32 loc) · 1.68 KB
/
config_example.php
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
<?php
// IMPORTANT: THIS FILE MUST BE RENAMED "config.php"
require_once(dirname(__FILE__).'/vendor/autoload.php');
use Ovh\Api;
use GuzzleHttp\Client;
// ----------------- API credential application -----------------
// You need to create an OVH API key at
// https://api.ovh.com/createToken/index.cgi allowing those elements :
// GET /email/domain/YOUR_DOMAIN_HERE
// GET /email/domain/YOUR_DOMAIN_HERE/account/*
// POST /email/domain/YOUR_DOMAIN_HERE/account/*/changePassword
// GET /email/domain/YOUR_DOMAIN_HERE/account/*/usage
// (Replace YOUR_DOMAIN_HERE by your domain name (example: my_domain.com))
$application_key = ""; /*!< Application key */
$application_secret = ""; /*!< Application secret */
$consumer_key = ""; /*!< Consumer key */
// ----------------- Domain specific information -----------------
$domain = ""; /*!< Domain of your OVH email domain (example: my_domain.com) */
$admin_email_address = ""; /*!< Email used for support when a customer has issue on the website (example: support@my_domain.com) */
$email_server="https://ssl0.ovh.net"; /*!< Server name used as email web client for user (don't edit if you don't know) */
$imap_server="ssl0.ovh.net"; /*!< IMAP server name (don't edit if you don't know) */
$smtp_server="ssl0.ovh.net"; /*!< IMAP server name (don't edit if you don't know) */
$pop_server="ssl0.ovh.net"; /*!< IMAP server name (don't edit if you don't know) */
// ------------------- OVH API (do not touch) -------------------
$end_point = 'ovh-eu'; /*!< OVH API end point (don't edit if you don't know) */
// Load the OVH API once config is done
$api = new Api(
$application_key,
$application_secret,
$end_point,
$consumer_key);
?>