I am having difficulty sending an e-mail using the PHP mail function with a message length exceeding 10,000 characters. A message with a length of 10,000 characters works, but one with a length of 20,000 characters doesn’t. I have checked with my Web Host Provider, 1and1 Internet, and have been told that they place no limit on the length of e-mails sent. I have also ensured that the line length does bot exceed 70 characters.

Any ideas please?

    Check the mail server logs ... it's unlikely that anything is occurring, at least on a 'Nix box, without some message in /var/log/maillog.

      dalecosp:

      Thank you. I checked my mail.log and sure enough there were a number of entries similar to this:

      2011-04-23 18:15:26 u62919862 3oUh0u-1QDl6r2kiQ-0004Cs EE transaction error
      after sending of mail text: msmtp.perfora.net[172.19.143.3] 500 Line limit

      I am following this up with 1and1 Internet.

      Thanx again.

      Paul

        You're quite welcome 🙂

        ... and, while we're on the subject of welcome, lemme be first to say Welcome to PHPBuilder!

          Write a Reply...