I'm creating a PHP form handler that will send an email to a user
based on form entries (a rather standard procedure). I've never had
any problems with this type of programming challenge before; however,
this is a very complex form. I save all of the form's data in a single
variable named $mailout and then call the mail() function with
$mailout as the body.
The information I'm sending is about 1200 characters long. I noticed
that in the email the user receives, there is an odd break at about
character 1000. It reads something like this:
Style: Red tu!
dor with attached garage
Everything else looks correct. The first 1000 characters are right and
any remaining characters are right. It's just at about character 1000
I get an exclamation point and then the data continue on the next line
(with a small indent).
I thought that maybe there was some sort of limit to the size of the
PHP variable, so I broke $mailout into two pieces, both well under the
magic size limit. That did not help.
I thought that maybe the mail() function was somehow breaking up this
message, so I created a small routine to write the output directly to
sendmail. That didn't help.
I wonder if this is a sendmail issue. Does anyone know of any reason
why I'm getting this odd break in my messages and how I can fix it?
--George 3 2199
"George Self" <gs***@gself.com> a écrit dans le message news: f7********************************@4ax.com... I'm creating a PHP form handler that will send an email to a user based on form entries (a rather standard procedure). I've never had any problems with this type of programming challenge before; however, this is a very complex form. I save all of the form's data in a single variable named $mailout and then call the mail() function with $mailout as the body.
The information I'm sending is about 1200 characters long. I noticed that in the email the user receives, there is an odd break at about character 1000. It reads something like this:
Style: Red tu! dor with attached garage
Everything else looks correct. The first 1000 characters are right and any remaining characters are right. It's just at about character 1000 I get an exclamation point and then the data continue on the next line (with a small indent).
I thought that maybe there was some sort of limit to the size of the PHP variable, so I broke $mailout into two pieces, both well under the magic size limit. That did not help.
I thought that maybe the mail() function was somehow breaking up this message, so I created a small routine to write the output directly to sendmail. That didn't help.
I wonder if this is a sendmail issue. Does anyone know of any reason why I'm getting this odd break in my messages and how I can fix it?
--George
I had the same problem.
Add \n every 500 characters.
--
denis
Hi George,
On Tue, 27 Apr 2004 22:21:05 -0700, George Self <gs***@gself.com>
wrote: I'm creating a PHP form handler that will send an email to a user based on form entries (a rather standard procedure). I've never had any problems with this type of programming challenge before; however, this is a very complex form. I save all of the form's data in a single variable named $mailout and then call the mail() function with $mailout as the body.
The information I'm sending is about 1200 characters long. I noticed that in the email the user receives, there is an odd break at about character 1000. It reads something like this:
RFC 2821 (SMTP) specifies the email to have a line break after at most
1000 chars.
HTH, Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces. http://sourceforge.net/projects/phpdbedittk/
On Tue, 27 Apr 2004 22:21:05 -0700, George Self <gs***@gself.com>
wrote: I'm creating a PHP form handler that will send an email to a user based on form entries (a rather standard procedure). I've never had any problems with this type of programming challenge before; however, this is a very complex form. I save all of the form's data in a single variable named $mailout and then call the mail() function with $mailout as the body.
The information I'm sending is about 1200 characters long. I noticed that in the email the user receives, there is an odd break at about character 1000. It reads something like this:
Style: Red tu! dor with attached garage
Everything else looks correct. The first 1000 characters are right and any remaining characters are right. It's just at about character 1000 I get an exclamation point and then the data continue on the next line (with a small indent).
I thought that maybe there was some sort of limit to the size of the PHP variable, so I broke $mailout into two pieces, both well under the magic size limit. That did not help.
I thought that maybe the mail() function was somehow breaking up this message, so I created a small routine to write the output directly to sendmail. That didn't help.
I wonder if this is a sendmail issue. Does anyone know of any reason why I'm getting this odd break in my messages and how I can fix it?
--George
Thanks to both of you. I'll change my code and add the occasional
break. I appreciate the help. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tony Meyer |
last post by:
.
Does anyone know of existing code to convert/format/flatten an email.Message
into the correct format for IMAP's BODYSTRUCTURE request? (it basically
breaks down all the MIME parts of the...
|
by: Stefan Behnel |
last post by:
Hi!
I'm trying to do this in Py2.4b1:
-------------------------------
import logging
values = {'test':'bla'}
logging.log(logging.FATAL, 'Test is %(test)s', values)...
|
by: Paul Cheevers |
last post by:
Hi,
This is driving me nuts to say the least!!!!!
I am trying to send an email from some server side ASP code and the CC field
is giving me some problems.
The code works fine if I have one...
|
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: Andrew Banks |
last post by:
I have a text box which allows users to input the content for a HTML email.
I need to maintain the line breaks as the user enters them in the text box
when I send the email.
I'm assuming I need...
|
by: Stick |
last post by:
Hi,
I am trying to start my email app (in this case Eudora) with a
programatically generated email. However, Eudora does not seem to recognize
any of the ways I have tried to create line...
|
by: bugmagnet |
last post by:
I am writing a simple email program in Python that will send out
emails containing Chinese characters in the message subject and body.
I am not having any trouble getting the email body displayed...
|
by: Steven Allport |
last post by:
I am working on processing eml email message using the email module (python
2.5), on files exported from an Outlook PST file, to extract the composite
parts of the email. In most instances this...
|
by: lundmark |
last post by:
When I send a plain-text message using Outook 2007, I want hard line breaks to be added to my outgoing message. I cannot seem to make this happen.
I have configured Outlook to Automatically wrap...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |