Jump to content

php mailing script


JustinCase

Recommended Posts

Trying to use Jack's Formmail.php 5.0! to create an order form on a website.  Works fine, but my problem occurs when the mail is actually being sent. Get an errormessage that points me to this document:

http://pobox.com/~djb/docs/smtplf.html

Seems there is some problem with the ending of the lines. In my script it is done like this:

 

define("NEWLINE", ($newline)?$newline:"\n");

 

Then it is used like so:

 

if (is_array($array[$field])) {

                  for ($z=0;$z<count($array[$field]);$z++)

                    $content .= $field.SEPARATOR.$array[$field][$z].NEWLINE;

              } else

                  $content .= $field.SEPARATOR.$array[$field].NEWLINE;

 

Anyone know how I can adjust it to fit the document explaining the problem?

Link to comment
https://forums.phpfreaks.com/topic/39476-php-mailing-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.