Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Scripts and Code Snippets
Reload this Page Send Emails to inbox and avoid spam using PHP
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
bahlawi89 is on a distinguished road
 
Posts: 2
Join Date: Oct 2008
Thumbs up Send Emails to inbox and avoid spam using PHP - 09-08-2011, 08:35 AM

Send Email with simple php function
PHP Code:
mail(); 
it is header not contain full info needed by email service prover like Gmail and Yahoo ...etc

In this Article will be write an function like mail() function put it will send your emails to the inbox not to the spam. No more emails in spam section. Hotmail proves more strong rules by it's smart scan system, so try our function and your emails will not catch by the smart scan.

This the function:
PHP Code:
function send_mail($to,$from,$subject,$msg){
  
    
$headers ="MIME-Version: 1.0 \r\n";
    
$headers.="from: $from  $subject  \r\n";
    
$headers.="Content-type: text/html;charset=utf-8 \r\n";
    
$headers.="X-Priority: 3\r\n";
    
$headers.="X-Mailer: smail-PHP ".phpversion()."\r\n";
    
$msg    ='
    <div style="text-align:left">
    <h2>'
.$subject.'</h2>
    '
.$msg.'
    </div>
    '
;
 
    if( 
mail($to,$subject,$msg,$headers) ){
        return 
true;
    }else{
        return 
false;
    }

Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Junior Member
lovelymat is on a distinguished road
 
Posts: 10
Join Date: Jan 2011
Default 09-29-2011, 08:52 AM

How r u sir?

now days on 000webhost.com mail() function not working, my website is www.mathaheem.uphero.com I was created info@mathaheem.uphero.com on google aps.

Now plz tell me how mail() works with google aps email address (info@mathaheem.uphero.com) I mean I want to mail() function send emails from google aps
Reply With Quote
Reply

Tags
email, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com