Annoying, but why?

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

WorldHatred

Established Member
Impact
0
Ive been a php programer for 3 years now, and one of the things that really upsets me is the mail feature. I have built a few sites, and every single one of them requires a email being sent to the users address so that they can verify their account.

I have tried many different method's to send emails to users, but there is always that one that doesnt recieve their email.

Has anyone out there rather then me run into this problem as well?

Is there a solution to this problem?

Here is what ive been using. They seem to work fine except for the bottom one, that one seems to be broken, but ive never modified it. Each time a user signs up, both of these functions are called, just incase one doesnt work. What are some codes you guys use to email your users, and do you get any problems emailing them?

function mail1 ($subject, $message, $email){
mail("$email", "$subject", $message,
"From: WH Entertainment <[email protected]>\n"
."Reply-To: [email protected]\r\n"
."X-Mailer: PHP/" . phpversion());
}

function mail2 ($subject, $message, $email){
$MP = "/usr/sbin/sendmail -t";
$fd = popen($MP,"w");
fputs($fd, "To: $email\n");
fputs($fd, "From: WH Entertainment <[email protected]>\n");
fputs($fd, "Subject: $subject\n");
fputs($fd, "X-Mailer: PHP4\n");
fputs($fd, $message);
pclose($fd);
}
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
i presume the problem you are having are ussually for windows users, I remember there is a problem with the way outlook express deals with headers but cant remember exactly what it was (was something to do with a space being needed between \n or something like that)

Also try and find the Spam Assassin rule list, it could be something silly that is covered in that (be warned tho there are thousands of rules)
 
0
•••
Olitt — high-converting AI websites, only from $1/moOlitt — high-converting AI websites, only from $1/mo

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back