Jump to content


Mail problem

  • Please log in to reply
1 reply to this topic

#1 Thierry

  • Members
  • PipPipPip
  • Advanced Member
  • 85 posts
  • LocationNetherlands

Posted 30 March 2006 - 12:48 PM

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
Have you tried....a reset?

#2 Thierry

  • Members
  • PipPipPip
  • Advanced Member
  • 85 posts
  • LocationNetherlands

Posted 30 March 2006 - 01:10 PM

I seem to have fixed it myself, appareantly there was a mimeboundary start/open thingy somewhere doubled.

Have you tried....a reset?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users