Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configuration = {
- gmail: {
- username: 'example@gmail.com',
- password: 'pa$$word',
- host: 'imap.gmail.com',
- ssl: true,
- port: 993
- },
- ftp: {
- username: 'example@gmail.com',
- password: 'pa$$word',
- host: 'imap.gmail.com',
- ssl: true,
- port: 42
- }
- }
- mail = Mail.new host: configuration[:gmail][:host], port: configuration[:gmail][:port], username: configuration[:gmail][:username], password: configuration[:gmail][:password], ssl: configuration[:gmail][:ssl]
- ftp = FTP.new host: configuration[:ftp][:host], port: configuration[:ftp][:port], username: configuration[:ftp][:username], password: configuration[:ftp][:password], ssl: configuration[:ftp][:ssl]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement