I would like to send an email with notification enabled, as parser is checking email address validity, I'm building the to field using Net::SMTP::Address but that's not working either.
mail = Mail.new do
delivery_method :smtp
to Net::SMTP::Address.new("dest@foo.bar", { :NOTIFY => 'SUCCESS,FAILURE,DELAY'} )
from 'src@foo.bar'
subject "Notify test"
body "test"
end
mail.deliver!
I would like to send an email with notification enabled, as parser is checking email address validity, I'm building the
to
field usingNet::SMTP::Address
but that's not working either.