Hi,
Recently I kicked the ActiveMailer out the door to grab the Mail gem
as my new mail framework, however - there is on problem I cant get
around.
I have tried different ways of setting the return-path but it seems
not to work. Maby someone here can point me to the solution.
The odd think is that the return-path seems to be set, but when I
receive the email, it is set as the FromField.
mail = Mail.new do
to "
t...@someemail.com"
from "
fr...@someemail.com"
subject "Can't set the return-path"
self['return-path'] = "
bou...@someemail.com" #this
seems to set the return-path prior to sending
message_id "<#{
mail_id}@someemail.com>"
body "body"
end
#
# here the Return Path seems to be set as "
bou...@someemail.com"
#
mail.deliver!
#
# when the email is received, the return path is set as
"
fr...@someemail.com"
#
I also tried the new :headers => {} function.
Any help would be great - I have been struggling with this for days.
Christian