Class: MetaMailer
- Inherits:
-
Object
show all
- Defined in:
- lib/core.rb
Instance Method Summary
collapse
Instance Method Details
#send(from, to, subject, html, text) ⇒ Object
11
12
13
|
# File 'lib/core.rb', line 11
def send(from, to, subject, html, text)
false
end
|
#send_secure(uri, p) ⇒ Object
2
3
4
5
6
7
8
9
|
# File 'lib/core.rb', line 2
def send_secure uri, p
http = Net::HTTP.new(uri.host, uri.port)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.use_ssl = true
request = Net::HTTP::Post.new(uri.request_uri)
request.set_form_data(p)
response = http.request(request)
end
|