View source for Mail

{{anchor href="top"}}
Hits :  **{{hits}}**

== Function Mail ==

{{ToC from="h2" to="h3"}}

=== Mail Example ===

Το παρακάτω είναι ένα μικρό παράδειγμα υλοποίησης αποστολής ενός email μέσω php.
Πρέπει να προσέξουμε ότι σε αρκετά συστήματα χρειάζεται ο αποστολέας να έχει valid email address
και να υπάρχει για λόγους ασφαλείας :

PHP must have access to the sendmail binary on your system during compile time

%%(html)
<html>

<head>
  <title>Test email</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</head>
<body>

<?php 

$to      = 'ebalaskas@ebalaskas.gr';
$subject = 'the email subject';
$message = 'the email message : hello';
$headers = 'From: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'Reply-To: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'CC: : ebalaskas@ebalaskas.gr' . "\r\n" .
	   'BCC: : ebalaskas@ebalaskas.gr' . "\r\n"  ;

echo "Mail : " . mail($to, $subject, $message, $headers);

?>

</body>
</html>
%%

((#top))
-----------


== Function Mail ==

{{ToC from="h2" to="h3"}}

=== Mail Example ===

Το παρακάτω είναι ένα μικρό παράδειγμα υλοποίησης αποστολής ενός email μέσω php.
Πρέπει να προσέξουμε ότι σε αρκετά συστήματα χρειάζεται ο αποστολέας να έχει valid email address
και να υπάρχει για λόγους ασφαλείας :

PHP must have access to the sendmail binary on your system during compile time

%%(html)
<html>

<head>
  <title>Test email</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</head>
<body>

<?php 

$to      = 'ebalaskas@ebalaskas.gr';
$subject = 'the email subject';
$message = 'the email message : hello';
$headers = 'From: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'Reply-To: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'CC: : ebalaskas@ebalaskas.gr' . "\r\n" .
	   'BCC: : ebalaskas@ebalaskas.gr' . "\r\n"  ;

echo "Mail : " . mail($to, $subject, $message, $headers);

?>

</body>
</html>
%%

((#top))
-----------


== Function Mail ==

{{ToC from="h2" to="h3"}}

=== Mail Example ===

Το παρακάτω είναι ένα μικρό παράδειγμα υλοποίησης αποστολής ενός email μέσω php.
Πρέπει να προσέξουμε ότι σε αρκετά συστήματα χρειάζεται ο αποστολέας να έχει valid email address
και να υπάρχει για λόγους ασφαλείας :

PHP must have access to the sendmail binary on your system during compile time

%%(html)
<html>

<head>
  <title>Test email</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</head>
<body>

<?php 

$to      = 'ebalaskas@ebalaskas.gr';
$subject = 'the email subject';
$message = 'the email message : hello';
$headers = 'From: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'Reply-To: ebalaskas@ebalaskas.gr' . "\r\n" .
	   'CC: : ebalaskas@ebalaskas.gr' . "\r\n" .
	   'BCC: : ebalaskas@ebalaskas.gr' . "\r\n"  ;

echo "Mail : " . mail($to, $subject, $message, $headers);

?>

</body>
</html>
%%

((#top))
-----------