want to send email from text file.
I have a form which accepts emails and copy them in a text file line after line. Following is the content of the text file.
now I want to send email to all these contacts together by php.
I need to know how will I retrive the contacts from text file and will send them bulk email with "bcc" so that one can't view another email.
how is it possible please help me
thanks in advance
Why use Bcc, why not just send unique mails to each user?
$addresses = file("emails.txt");
$subject = "My Subject";
$message = "My Message";
foreach($addresses as $address)
mail($address, $subject, $message);
echo "Sent message to ".$address."<br>";
Works fine but on some email service providers(eg. hotmail) itís going to Junk mail folder
Any way to send emails to Inbox??
Thanks in advance
Originally Posted by MrCoder
The php mail function is stndard and is not what is making it go to junk mail. junk mail is usually the result of the message content, for example the presence of an opt-out mechanism is detected. Or a configuration on the server is not correct or some piece of header info is missing, or some services are still looking for reverse dns and will flag the message if not detected.
so wat is the way to send emails to inbox?
Originally Posted by hastx
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)