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?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|