I have a mailer setup to receive messages for processing data. If the
message sent is not correct then I send back an email telling the user
of their problem. I want to attach the original message and I have it
sort of working, but if the original message has an attachment that
attachment doesn’t seem to display in my Email client (Thunderbird).
Here is what I have:
def invalid_email(error, email)
recipients email.from
from email.to
subject ‘Data Import Failed!’
body :error => error
part :body => email.to_s, :content_type => ‘message/rfc822’
end
In this method “error” is some error message (a string) and email is the
TMail object that came in from the receive method.
Any ideas?
Eric