Jump to content


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


Mail problem

Recommended Posts

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

$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

$message = "  
Online sollicitatie via de FLEXTEP homepage

Functie:                $functie            
Ref.nr. vacature:            $refnr_vacature
Achternaam:                $achternaam
Voorletters:            $voorletters
Tussenvoegsels:            $tussenvoegsels
Roepnaam:                $roepnaam
Geboortedatum:            $geboortedatum
Geboorteplaats:            $geboorteplaats
Geboorteland:            $geboorteland
Nationaliteit:            $nationaliteit
Geslacht:                $geslacht
Adres:                $adres
Postcode:                $postcode
Plaats:                $plaats
Land:                    $land
Telefoonnummer:            $telefoonnummer
Mobielnummer:            $mobielnummer
E-mailadres:            $email
Homepage:                $homepage
Omschrijving opleidingen:    
Omschrijving cursussen:        
Omschrijving werkervaring:    
Omschrijving motivatie:        
Beschikbaarheid:            $beschikbaarheid
Salarisindicatie:            $salarisindicatie

     $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";


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

Share this post

Link to post
Share on other sites
I seem to have fixed it myself, appareantly there was a mimeboundary start/open thingy somewhere doubled.

Share this post

Link to post
Share on other sites


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.