in reply to Sending a large mail with Mail::sendMail

You could be using a here-doc to 'wrap' a multiline text in a single string, i.e.

my $message = <<'EOT'; institution Name: METALIB [...] EOT
Use <<"EOT" if you wish for variables to be interpolated. EOT can surely be named otherwise, as long as it is consistent (as in, start of here-doc (<<'EOT') & end of here-doc (EOT) share both the same 'identifier' and the ending identifier is placed on a single, ending line).

Have you verified the string didn't get accidentally truncated before handing it over to sendmail()?

If it didn't, would you care to paste the output of $Mail::Sendmail::error and $Mail::Sendmail::log?

Replies are listed 'Best First'.
Re^2: Sending a large mail with Mail::sendMail
by mrguy123 (Hermit) on May 20, 2007 at 10:41 UTC
    This is the log:
    log=Mail::Sendmail v. 0.78 - Sun May 20 13:40:53 2007 Date: Sun, 20 May 2007 13:40 +0300 Server: localhost Port: 25 From: guy.naamati@exlibris.co.il Subject: test email To: guy.naamati@exlibris.co.il

      The log looks okay to me.

      There is the possibility that Sendmail is rejecting your mail due to a too large message body in size. You might want to check whether 'root' did receive some according bounces (see /var/mail/root, /var/spool/mail/root, etc.).

      Can you verify that?

        I'd have to agree this is the problem. Can you do some logging to figure out what's the max size you can send successfully?

        -derby

        update: I would also suggest bcc'ing the large emails to an account you know doesn't have size limits (gmail, hotmail, a personal account).

Re^2: Sending a large mail with Mail::sendMail
by mrguy123 (Hermit) on May 20, 2007 at 11:01 UTC
    Hi there,
    this solution doesn't seem to work
    thanks, anyway