SMTP multi/part

Secţiune dedicată începatorilor.

Moderatori: Moderatori, Start Moderator

Avatar utilizator
egroeg
Senior Member
Mesaje: 326
Membru din: Joi Iun 16, 2005 3:31 pm
Localitate: Bucuresti
Contact:

SMTP multi/part

Mesajde egroeg » Lun Apr 10, 2006 3:17 pm



george, cel scris invers
It's hard to take over the world when you sleep 20 hours a day

http://www.djtiesto.ro/

diablo
Senior Member
Mesaje: 345
Membru din: Vin Mai 20, 2005 10:20 am
Localitate: Bucuresti

Mesajde diablo » Lun Apr 10, 2006 3:35 pm


smorosanu
Junior Member
Mesaje: 32
Membru din: Vin Ian 21, 2005 12:36 pm

Mesajde smorosanu » Lun Apr 10, 2006 3:55 pm


Avatar utilizator
Birkoff
Senior Member
Mesaje: 6380
Membru din: Joi Mar 18, 2004 2:34 pm
Localitate: Bucuresti
Contact:

Mesajde Birkoff » Lun Apr 10, 2006 4:18 pm

pentru a atasa fisiere la mail tre sa p[ui niste headere speciale vezi functia sunt niste exemple acolo

[php]
$headers .= 'MIME-Version: 1.0'.$eol;
$headers .= "Content-Type: multipart/related; boundary=\"".$mime_boundary."\"".$eol;
$msg = "";

# Attachment
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: application/pdf; name=\"".$letter."\"".$eol; // sometimes i have to send MS Word, use 'msword' instead of 'pdf'
$msg .= "Content-Transfer-Encoding: base64".$eol;
$msg .= "Content-Disposition: attachment; filename=\"".$letter."\"".$eol.$eol; // !! This line needs TWO end of lines !! IMPORTANT !!
$msg .= $f_contents.$eol.$eol;
# Setup for text OR html
$msg .= "Content-Type: multipart/alternative".$eol;

# Text Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= "This is a multi-part message in MIME format.".$eol;
$msg .= "If you are reading this, please update your email-reading-software.".$eol;
$msg .= "+ + Text Only Email from Genius Jon + +".$eol.$eol;
[/php]
1) )
2)
3) (open source)
4) Vrei un magazin virtual la cheie, usor de folosit, cu api-uri incluse pentru maximizarea vanzarilor si multe alte facilitati? Da un semn si discutam.


Înapoi la “PHP Incepători”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 20 vizitatori