473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

PHPMailer issue

i'm using phpmailer, the variable that makes up the html body contains
other variables.
when one of these other variables contains more than 980 characters, it
stops rendering. any ideas on what would cause this limitation? is it
the mailer or might it be my code which basically prepends and appends
html (a table images etc.) around a message body containing the other
variables (like product info fields). any workarounds?

thanks,
s7

Mar 1 '06 #1
2 2707
On 1 Mar 2006 11:29:52 -0800, "st******@hotmail.com" <st******@hotmail.com>
wrote:
i'm using phpmailer, the variable that makes up the html body contains
other variables.
when one of these other variables contains more than 980 characters, it
stops rendering. any ideas on what would cause this limitation? is it
the mailer or might it be my code which basically prepends and appends
html (a table images etc.) around a message body containing the other
variables (like product info fields). any workarounds?


Is the content all on one line without linebreaks? If so, then you may be
hitting the maximum line length. RFC 2821, section 4.5.3.1:

http://www.ietf.org/rfc/rfc2821.txt
"
The maximum total length of a text line including the <CRLF> is
1000 characters (not counting the leading dot duplicated for
transparency). This number may be increased by the use of SMTP
Service Extensions.
"

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Mar 1 '06 #2

Andy Hassall wrote:
On 1 Mar 2006 11:29:52 -0800, "st******@hotmail.com" <st******@hotmail.com>
wrote:
i'm using phpmailer, the variable that makes up the html body contains
other variables.
when one of these other variables contains more than 980 characters, it
stops rendering. any ideas on what would cause this limitation? is it
the mailer or might it be my code which basically prepends and appends
html (a table images etc.) around a message body containing the other
variables (like product info fields). any workarounds?


Is the content all on one line without linebreaks? If so, then you may be
hitting the maximum line length. RFC 2821, section 4.5.3.1:

http://www.ietf.org/rfc/rfc2821.txt
"
The maximum total length of a text line including the <CRLF> is
1000 characters (not counting the leading dot duplicated for
transparency). This number may be increased by the use of SMTP
Service Extensions.
"


thanks, yes i believe it is all on one line. would adding BRs in the
string help since it is the HTML body, or \n\n linebreaks? any simple
solutions?

i did see this in the message source --> Sun-Java-System-SMTP-Warning:
Lines longer than SMTP allows found and truncated.

which might be a further confirmation.

thanks again,
s7

Mar 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
3
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
0
by: SirShurf | last post by:
Hi, I am using a phpmailer class to send some forms over the email... And the problem is, that some ppl (especially problematic for me is the buyer....) getting the email as rough data (sorce...)...
1
by: crescent_au | last post by:
I am developing a simple mailing system. This requires sending emails in HTML format to one or more recipient. I am currently using PHP's mail() function. It works alright but it doesn't seem...
2
by: prasenjit2007 | last post by:
Hello, can u help me sending Email with attachments using the Class phpMailer. On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name)...
9
by: Lucanos | last post by:
Hi All, I am currently using PHPMailer to send out a set of emails on the execution of a PHP Script (obviously). My problem is that the PHPMailer action is returning a "true" result each time...
5
by: Gilles Ganault | last post by:
Hello To handle an occasionnal flaky ADSL connection, I updated the database that handles incoming calls to have a column that is set to NULL, and then updated to either Y or N depending on...
4
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
0
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.