Hello ,
Im running this code and not be able to receiving any email , does anyone know where is the problem?
at_exit do
Mail.defaults do
delivery_method :smtp, address:"myaddress", openssl_verify_mode:'none'
end
mail = Mail.new do
from 'te...@email.com'
to 'te...@email.com'
subject 'Here is the image you wanted'
body File.read(ROOT_DIR + '/result/test.txt')
end
mail.deliver!
end