Horje
cpanel email to email send with php Code Example
cpanel email to email send with php
<? 

$to      = 'test@example.com'; 

$subject = 'The test for php mail function'; 

$message = 'Hello'; 

$headers = 'From: test@test.com' . "\r\n" . 

    'Reply-To: test@test.com' . "\r\n" . 

    'X-Mailer: PHP/' . phpversion(); 

mail($to, $subject, $message, $headers); 

?>
cpanel email to email send with php
<?php

$to      = 'nobody@example.com';

$subject = 'the subject';

$message = 'hello';

$headers = 'From: webmaster@example.com' . "\r\n" .

    'Reply-To: webmaster@example.com' . "\r\n" .

    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

?>
cpanel email to email send with php
<?php

//testing my first php mail()

mail('user@domain.com', 'Subject Line Here', 'Body of Message Here', 'From: info@domain.com');

?>




Php

Related
PHP if...else...elseif Statements Code Example PHP if...else...elseif Statements Code Example
if certain condition is met exit if block php Code Example if certain condition is met exit if block php Code Example
laravel apache2 Code Example laravel apache2 Code Example
laravel download file change name Code Example laravel download file change name Code Example
php strftime year 2 digits Code Example php strftime year 2 digits Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9