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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.