Thierry Posted March 30, 2006 Share Posted March 30, 2006 I have a mail problem with my script, I can send File 1, or File 2 alone, but if I try them both it wont work.And for some reason I cant post the code, when I do I get a forbidden error on this forum :/Ill see if I can post it in bits and leave out the stuff thats probably not it[code]$semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $message = " Online sollicitatie via de FLEXTEP homepageFunctie: $functie Ref.nr. vacature: $refnr_vacatureAchternaam: $achternaamVoorletters: $voorlettersTussenvoegsels: $tussenvoegselsRoepnaam: $roepnaamGeboortedatum: $geboortedatumGeboorteplaats: $geboorteplaatsGeboorteland: $geboortelandNationaliteit: $nationaliteitGeslacht: $geslachtAdres: $adresPostcode: $postcodePlaats: $plaatsLand: $landTelefoonnummer: $telefoonnummerMobielnummer: $mobielnummerE-mailadres: $emailHomepage: $homepage Omschrijving opleidingen: $opleidingomschrijving Omschrijving cursussen: $cursusomschrijving Omschrijving werkervaring: $werkervaringomschrijving Omschrijving motivatie: $motivatieomschrijving Beschikbaarheid: $beschikbaarheidSalarisindicatie: $salarisindicatie Opmerkingen: $opmerkingen "; $headers = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\""; // next, we'll build the message body // note that we insert two dashes in front of the // MIME boundary when we use it $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; [/code]Nope...sorry...whenever I try to add the part about the email file I get a nice Forbidden error on the forum. Great....just great Link to comment https://forums.phpfreaks.com/topic/6172-mail-problem/ Share on other sites More sharing options...
Thierry Posted March 30, 2006 Author Share Posted March 30, 2006 I seem to have fixed it myself, appareantly there was a mimeboundary start/open thingy somewhere doubled. Link to comment https://forums.phpfreaks.com/topic/6172-mail-problem/#findComment-22276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.