mail въпрос |
|
|
|
|
Публикувано на: 10.08.2011 12:53 |
|
|
Чирак
Мнения: (10)
|
Как да поставя в тялото на маил форма текст и картинка чрез рнр?
Благодаря
|
| |
---------------------------
Потребител в Mytech.bg от: 26.05.07
|
|
|
|
|
|
|
Публикувано на: 10.08.2011 16:32 |
|
|
Калфа
Мнения: (47)
|
настрой си хедърите да приемат html и си задай въпроса по-разбираме
,как да ти помогнем като те мързи да го напишеш правилно.
пък и едно малко търсене показва в php.net
CODE1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| <?php
// multiple recipients
$to = 'aidan@example.com' . ', '; // note the comma
$to .= 'wez@example.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "rn";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>'
. "rn";
$headers .= 'From: Birthday Reminder <birthday@example.com>' .
"rn";
$headers .= 'Cc: birthdayarchive@example.com' . "rn";
$headers .= 'Bcc: birthdaycheck@example.com' . "rn";
// Mail it
mail($to, $subject, $message, $headers);
?> |
|
| |
---------------------------
Потребител в Mytech.bg от: 01.02.11
Уеб дизайн решения:
http://md-websitebuild.info/
|
|
|