Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,203 members, 7,835,986 topics. Date: Tuesday, 21 May 2024 at 06:46 PM

PHP Script To Send Simple Messages - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / PHP Script To Send Simple Messages (1645 Views)

How Can I Connect Php Script To Active Directory With XAMPP Server / How Do I A dd Free Sms Script To My Site / Show Me The Script To Automatically Refresh A Webpage (2) (3) (4)

(1) (Reply) (Go Down)

PHP Script To Send Simple Messages by winwinx: 3:42am On Nov 25, 2011
Hello Friends,
I wish to send multiple email at same time to my contacts without each contact recipient having the address of the other.
I am really confused on how to do it correctly. I have tried my gmail and yahoo contact list address, but I found out that all the addresses
of all the recipients appears to all. I will appreciate to know how to send massive emails in a professional manner.
I will kindly appreciate all your good ideas.
Re: PHP Script To Send Simple Messages by engprodigy: 9:58am On Nov 25, 2011
@winwix I have an email script that can do that. It only cost a token. contact me at kolbello@yahoo.com
Re: PHP Script To Send Simple Messages by bakenda(m): 5:33pm On Nov 25, 2011
You can store the email addresses in a db table or an array,
and write a mailing script that sends to the addresses in the table/array
one at a time using a loop, if you are not happy with that approach, look into
how to use the Bcc header in your mail() function.

Goodluck.

1 Like

Re: PHP Script To Send Simple Messages by Nobody: 7:16pm On Nov 26, 2011
bakenda:

You can store the email addresses in a db table or an array,
and write a mailing script that sends to the addresses in the table/array
one at a time using a loop, if you are not happy with that approach, look into
how to use the Bcc header in your mail() function.

Goodluck.

yes, thats it

something like this

if getting recipients from database

$r=mysql_query("select email from ur_table"wink;

while($row=mysql_fetch_row($r)){
    mail($row[0],"subject", "message", "From: sender@ursite.com"wink;
}


if getting recipients from array

$arr=array("email1@yahoo.com", "email2@yahoo.com", "3rdmail@nairaland.com"wink;
for($i=0; $i<count($arr); $i++){
     mail($arr[$i],"subject", "message", "From: sender@ursite.com"wink;
}


hope it helps

(1) (Reply)

Share Links To Download Programming Ebooks Of Your Choice / Development Of An Android Game Using Unity3d Engine / Meet Tayo, The Yoruba Boy Introduced By Zuckerberg

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.