Sunday, 27 March 2022

Send email using php mail function

 <?php

$to="recievermail@yourdomail.com";

               // Your subject

                 $subject= "Your email subjest html email";

               

                // From

                        $headers = "From: Adquash Dot Com <noreply@youradmin.com>\r\n";

                        $headers .= "Reply-To: support@youradmin.com\r\n";

                        $headers .= "Return-Path: Adquash Dot Com <noreply@youradmin.com>\r\n";

                        //$headers .= "CC: info@youradmin.com\r\n";

                        $headers .= "MIME-Version: 1.0\r\n";

                        $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

//                $header .= "Content-type:text/html;charset=UTF-8" . "\r\n";

                $img = 'https://adquash.com/images1/09072020054921cloud.png'; // replace image path

                

                // Your message

                $message="

                

                <img src='$img'>

                emailads by Website: www.adquash.com<br><br>

                Useful information<br>

                This email ads a sponsor paid email ads So<br>

Avoid scams by acting locally or paying with PayPal , Western Union, Moneygram or other anonymous payment services<br>

Don't buy or sell outside of your country. Don't accept cashier cheques from outside your country<br>

Adquash.com never involved in any transaction, and does not handle payments, shipping, guarantee transactions, provide escrow services, or offer buyer protection or seller certification";

                //echo "b" . $emailcontent;   

                // send email

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

if($sentmail > "0"){ echo " sent";}