var emailClientMultiAccount = new EmailClientMultiAccount
{
ReceiveAccounts = new List<EmailClientAccount>
{
new EmailClientAccount
{
Host = "imap.gmail.com",
Port = 993,
SecurityOptions = "SSLAuto",
Credentials = new EmailClientAccountPasswordCredentials
{
Password = "password",
Login = "example@gmail.com"
}
},
new EmailClientAccount
{
Host = "exchange@outlook.com",
Port = 443,
ProtocolType = "EWS",
Credentials = new EmailClientAccountOauthCredentials
{
ClientId = "clientId",
ClientSecret = "clientSecret",
RefreshToken = "refreshToken",
Login = "example@outlook.com"
}
}
},
SendAccount = new EmailClientAccount
{
Host = "smtp.gmail.com",
Port = 465,
SecurityOptions = "SSLAuto",
ProtocolType = "SMTP",
Credentials = new EmailClientAccountPasswordCredentials
{
Password = "password",
Login = "example@gmail.com"
}
}
};
EmailClientMultiAccount emailClientMultiAccount = Models.emailClientMultiAccount()
.receiveAccounts(Arrays.<EmailClientAccount>asList(
Models.emailClientAccount()
.host("imap.gmail.com")
.port(993)
.securityOptions("SSLAuto")
.credentials(Models.emailClientAccountPasswordCredentials()
.password("password")
.login("example@gmail.com")
.build())
.build(),
Models.emailClientAccount()
.host("exchange@outlook.com")
.port(443)
.protocolType("EWS")
.credentials(Models.emailClientAccountOauthCredentials()
.clientId("clientId")
.clientSecret("clientSecret")
.refreshToken("refreshToken")
.login("example@outlook.com")
.build())
.build()))
.sendAccount(Models.emailClientAccount()
.host("smtp.gmail.com")
.port(465)
.securityOptions("SSLAuto")
.protocolType("SMTP")
.credentials(Models.emailClientAccountPasswordCredentials()
.password("password")
.login("example@gmail.com")
.build())
.build())
.build();
email_client_multi_account = models.EmailClientMultiAccount(
receive_accounts=[
models.EmailClientAccount(
host='imap.gmail.com',
port=993,
security_options='SSLAuto',
credentials=models.EmailClientAccountPasswordCredentials(
password='password',
login='example@gmail.com')),
models.EmailClientAccount(
host='exchange@outlook.com',
port=443,
protocol_type='EWS',
credentials=models.EmailClientAccountOauthCredentials(
client_id='clientId',
client_secret='clientSecret',
refresh_token='refreshToken',
login='example@outlook.com'))],
send_account=models.EmailClientAccount(
host='smtp.gmail.com',
port=465,
security_options='SSLAuto',
protocol_type='SMTP',
credentials=models.EmailClientAccountPasswordCredentials(
password='password',
login='example@gmail.com')))
email_client_multi_account = EmailClientMultiAccount.new(
receive_accounts: [
EmailClientAccount.new(
host: 'imap.gmail.com',
port: 993,
security_options: 'SSLAuto',
credentials: EmailClientAccountPasswordCredentials.new(
password: 'password',
login: 'example@gmail.com')),
EmailClientAccount.new(
host: 'exchange@outlook.com',
port: 443,
protocol_type: 'EWS',
credentials: EmailClientAccountOauthCredentials.new(
client_id: 'clientId',
client_secret: 'clientSecret',
refresh_token: 'refreshToken',
login: 'example@outlook.com'))],
send_account: EmailClientAccount.new(
host: 'smtp.gmail.com',
port: 465,
security_options: 'SSLAuto',
protocol_type: 'SMTP',
credentials: EmailClientAccountPasswordCredentials.new(
password: 'password',
login: 'example@gmail.com')))
let emailClientMultiAccount = Models.emailClientMultiAccount()
.receiveAccounts([
Models.emailClientAccount()
.host('imap.gmail.com')
.port(993)
.securityOptions('SSLAuto')
.credentials(Models.emailClientAccountPasswordCredentials()
.password('password')
.login('example@gmail.com')
.build())
.build(),
Models.emailClientAccount()
.host('exchange@outlook.com')
.port(443)
.protocolType('EWS')
.credentials(Models.emailClientAccountOauthCredentials()
.clientId('clientId')
.clientSecret('clientSecret')
.refreshToken('refreshToken')
.login('example@outlook.com')
.build())
.build()])
.sendAccount(Models.emailClientAccount()
.host('smtp.gmail.com')
.port(465)
.securityOptions('SSLAuto')
.protocolType('SMTP')
.credentials(Models.emailClientAccountPasswordCredentials()
.password('password')
.login('example@gmail.com')
.build())
.build())
.build();
$emailClientMultiAccount = Models::emailClientMultiAccount()
->receiveAccounts(array(
Models::emailClientAccount()
->host('imap.gmail.com')
->port(993)
->securityOptions('SSLAuto')
->credentials(Models::emailClientAccountPasswordCredentials()
->password('password')
->login('example@gmail.com')
->build())
->build(),
Models::emailClientAccount()
->host('exchange@outlook.com')
->port(443)
->protocolType('EWS')
->credentials(Models::emailClientAccountOauthCredentials()
->clientId('clientId')
->clientSecret('clientSecret')
->refreshToken('refreshToken')
->login('example@outlook.com')
->build())
->build()))
->sendAccount(Models::emailClientAccount()
->host('smtp.gmail.com')
->port(465)
->securityOptions('SSLAuto')
->protocolType('SMTP')
->credentials(Models::emailClientAccountPasswordCredentials()
->password('password')
->login('example@gmail.com')
->build())
->build())
->build();