I have a very simple code like this
<?php
$to = "somobe@yahoo.ca";
$subject = "I am sending an image";
$txt = "Get the Image";
$headers = "From: someone else";
mail($to,$subject,$txt,$headers);
?>
can you please let me know how I can attach an image to that? For example let say I have an image in img
folder called test.png
Thanks