Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP] invio mail avanzata

2 views
Skip to first unread message

NG

unread,
Dec 5, 2007, 4:17:43 PM12/5/07
to
Salve sono in attesa che Aruba approvi l'iscrizione alla community per
questo sono qui a spiegarvi il mio problema. Dovrei spedire email (in html e
testo alternativo) con php e ho appurato che aruba consente l'invio di email
solo se seguono una rigorosa struttura. Mi chiedevo cosa potesse impedire
l'invio di una email strutturata nel seguente modo:

From: Mario Rossi <mario...@email.zz>;
Return-Path: mario...@email.zz
X-Mailer: Sitoweb
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="==String_Boundary_xc9e74a7cfc683b5404537c8088546ab9x";

--==String_Boundary_xc9e74a7cfc683b5404537c8088546ab9x
Content-Type: multipart/alternative;
boundary="==String_Boundary2_yc9e74a7cfc683b5404537c8088546ab9y";

--==String_Boundary2_yc9e74a7cfc683b5404537c8088546ab9y
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Messaggio alternativo solo testo

--==String_Boundary2_yc9e74a7cfc683b5404537c8088546ab9y
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Messaggio html <img src="cid:logo" width="100" height="100">

--==String_Boundary2_yc9e74a7cfc683b5404537c8088546ab9y--
--==String_Boundary_xc9e74a7cfc683b5404537c8088546ab9x
Content-ID: <logo>
Content-Type: image/jpeg
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAZAAA/+4ADkFkb2JlAGTAAAAAAf/b
AIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgIC
(cut)

--==String_Boundary_xc9e74a7cfc683b5404537c8088546ab9x--


NG

unread,
Dec 5, 2007, 4:23:09 PM12/5/07
to
"NG"

> Mi chiedevo cosa potesse impedire l'invio di una email strutturata nel
> seguente modo:

dimenticavo di dirvi che il codice precedentemente riportato corrisponde
all'output delle variabili $message e $headers date in pasto alla funzione:
mail($destinatario, $subject, $message, $headers)


0 new messages