Jump to content

Mail problem


Thierry

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

[code]
$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:    
$opleidingomschrijving
  
Omschrijving cursussen:        
$cursusomschrijving
  
Omschrijving werkervaring:    
$werkervaringomschrijving
  
Omschrijving motivatie:        
$motivatieomschrijving
  
Beschikbaarheid:            $beschikbaarheid
Salarisindicatie:            $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

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.