Subject: | Message path ignored if Message passed in constructor |
If you create a new Mail::Bulkmail object with the parameter 'Message'=>'/path/to/message', Bulkmail ignores this stored path when trying to generate the message with buildMessage.
Secondly, because no path is found the arguments, $file is set to undef, so when running with warnings turned on, the error message "Could not open file..." is not returned because Bulkmail barfs on the undefined file argument.
The Message method expects the path the be passed in as an argument, so the only way to set the message is by using $bulk->Message('/path/to/message/);
I have added a statement which looks first in the argument list, then tries the _Message method, and if still not found, sets $file to an empty string.
Message body not shown because it is not plain text.