def new_vm_email(args)
ActionMailer::Base.smtp_settings = {
:address => args[:mail_server],
:port => args[:mail_port],
:domain => "redhat.com"
}
recipients args[:email]
from "genome-list-bounces@redhat.com"
subject "New Genome VM provisioned"
body "Your new system is being provisioned #{args[:host]}\n" +
"The IP address of the new system is #{args[:ip]}\n\n" +
"Check the status of the VM: #{args[:cloud_master_fqdn]}/cloud/status.html\n" +
"View the system configuration: http://#{args[:genome_appliance]}/genome/nodes/#{args[:system_name]}.html"
end