Subject: | odd send_by_testfile behavior |
Hi!
This is currently in the pod:
[quote]
send_by_testfile FILENAME
Instance method. Print message to a file (namely FILENAME), which will
default to mailer.testfile If file exists, message will be appended.
[/quote]
With the current implementation of send(), this doesn't work when
FILENAME is not given. send() will then default to smtp.
The high end solution to this would be a propper dispatching to the
possible sending methods. As this might be time expensive, the solution
I propose is to make FILENAME required.
The usage of send() using filename would then be: send('filename',
'my_testfile.txt');
So please exchange the pod of send_by_testfile with the following:
[quote]
send_by_testfile FILENAME
Instance method. Print message to a file (namely FILENAME). FILENAME is
required. If file exists, message will be appended.
[/quote]
Btw, the part "Sending" omitts the possibility to send into a testfile,
telling "only" about the methods of sendmail, smtp and a subref.
best regards, Alex