-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgmail_account.module
28 lines (21 loc) · 945 Bytes
/
gmail_account.module
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
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
function gmail_account_install() {
if (module_exists('smtp')) {
include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'gmail_account') . '/gmail_account.inc';
variable_set('smtp_host', $gmail_account_info["smtp_server_host"]);
variable_set('smtp_port', $gmail_account_info["smtp_server_port"]);
variable_set('smtp_protocol', $gmail_account_info["smtp_server_protocol"]);
variable_set('smtp_username', $gmail_account_info["smtp_auth_username"]);
variable_set('smtp_password', $gmail_account_info["smtp_auth_password"]);
variable_set('smtp_fromname', $gmail_account_info["sent_from_name"]);
variable_set('smtp_from', $gmail_account_info["sent_from_email"]);
variable_set('smtp_on', 1);
};
drupal_set_message("gmail account configured.");
}
function gmail_account_uninstall() {
}