Debt Consolidation - Find jobs - Debt Consolidation - Debt Consolidation - Turquoise Rings

PDA

View Full Version : PHP auto email


bobocheez
Dec 23rd 2008, 6:57 pm
How are those auto emails sent that do not go into the junk folder and are not marked as dangerous.
For instance when you signup for a site it sends you an email. Some sites it ends up in spam and marked dangerous, some go straight to your inbox without a problem.

How do you get them to be like normal emails?
The auto email does not have an "ID" of some sort, I looked that up with hotmail thats why it was spammed/marked as dangerous.

www.hunthost.in
Dec 23rd 2008, 7:03 pm
Use this ->


<?php

$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields

ini_set('sendmail_from', 'me@domain.com'); //Suggested by "Some Guy"

mail($recipient, $subject, $mail_body, $header); //mail command :)

echo "Mail Sent";

?>



Source: php.net/mail

planemaniac
Dec 24th 2008, 4:13 am
I think the mail still gets marked as spam if the content of the auto email is spammy. Of course, it's very hard to hide the true identity of an e-mail, as it will always have the IP of the server it came from on it. The PHP mail() function is what you need.

bobocheez
Dec 24th 2008, 11:02 am
Isn't the thing hunthost gave me? The PHP mail function?