mikel / mail

A Really Ruby Mail Library
MIT License
3.61k stars 936 forks source link

Delivery with RCPT / NOTIFY not achievable #1588

Open sdalu opened 1 year ago

sdalu commented 1 year ago

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!