email - PHP send mail function is not working on other webpages -
this question has answer here:
something wrong codes?
<?php $rand_2 = "abcdefghijklmnopqeabcdefghijklmnopqrstuvwxyz1234567890"; $rand_key = substr(str_shuffle($rand_2), 0, 30); $to = "meanlinsey@gmail.com"; $subject = "account validation"; $body = "good day! "."mary ann linsey"."\n\n copy validation code below confirm registration in portal \n\n".$rand_key; $header = "from: portal"; if(mail($to, $subject, $body, $header)){ echo 'message has been sent to: <strong>'.$to.'</strong>'; }else{ echo 'something went wrong'; } ?>
some of send email program working piece of codes not dont why configure php.ini , send_mail.ini.
<?php $rand_2 = "abcdefghijklmnopqeabcdefghijklmnopqrstuvwxyz1234567890"; $rand_key = substr(str_shuffle($rand_2), 0, 30); $to = "meanlinsey@gmail.com"; $subject = "account validation"; $body = "good day! "."mary ann linsey"."\n\n copy validation code below confirm registration in portal \n\n".$randn_key; $headers ="reply-to: \"".$name."\" <".$email_sender.">\r\n"; $headers .="mime-version: 1.0\r\n"; $headers .="from: \"".$name."\" <".$email_sender.">\r\n"; $headers .="content-type: text/html; charset=utf-8\r\n"; if(mail($to, $subject, $body, $headers)){ echo 'message has been sent to: <strong>'.$to.'</strong>'; }else{ echo 'something went wrong'; } ?>
Comments
Post a Comment