skazat has asked for the wisdom of the Perl Monks concerning the following question:
In Net::SMTP, there's a method called, data(), which you can call to send the actual email message you went send out, out.
According to the Net::SMTP docs, it will automatically plop the termination string:
data ( DATA )
Initiate the sending of the data from the current message.
DATA may be a reference to a list or a list. If specified the contents of DATA and a termination string ".\r\n" is sent to the server. And the result will be true if the data was accepted.
If DATA is not specified then the result will indicate that the server wishes the data to be sent. The data must then be sent using the datasend and dataend methods described in Net::Cmd.
Question is - does the data() method also automatically parse out the termination string from the string you pass it?
I'm discovering email messages that are cut short and - wouldn't you know it, they're being cut exactly where there's a dot, following two lines (haven't seen which type of carriage return-type-thing)
If it's supposed to and it's not - is this a bug? (ie: *should* it?)
If it's not supposed to, shall I annotate the the module? and say it's your responsibility?
-justin simoni
skazat me
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Termination String in Net::SMTP
by Krambambuli (Curate) on May 07, 2007 at 22:18 UTC | |
Re: Termination String in Net::SMTP
by kyle (Abbot) on May 07, 2007 at 21:17 UTC |