You can send e-mails in PHP thanks to the mail() function. (See PHP website)

This function needs the following information:
mail (
to (the address to who you want to e-mail),
subject (the subject of the e-mail),
message (your e-mail message),
extra (extra information, such as the sender (FROM))
);

You can send a simple e-mail with the following code:

<?php
     $from = "name@mydomain.be";
     $to = "receiver@theirdomain.be";
     $subject = "My PHP E-mail";
     $message = "Dear Receiver,n";
     $message .= "This is a simple e-mail!n";
     $message .= "Regards";
 
     mail($to, $subject, $message);
?>
Kunnen we je nog ergens anders mee helpen?

Bel of mail ons. We helpen je snel met een antwoord.

Contacteer ons