473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Base different in mail function

190 100+
Hi all,

What is the base different to the flow below

first

Expand|Select|Wrap|Line Numbers
  1.  $headers .="cc: 1@one.com,2@one.com,3@one.com";
  2.  mail($recipient, $subject, $adminmsg, $headers."\r\n");
Second

Expand|Select|Wrap|Line Numbers
  1.  foreach($mailids as $mailid)
  2. {
  3. $recipient="$maild";
  4. mail($recipient, $subject, $adminmsg, $headers."\r\n");
  5. }
what is base different and which is the best method to send bulk mail
Apr 6 '09 #1
4 1177
Dormilich
8,658 Expert Mod 8TB
@maheswaran
in my opinion Swiftmailer's batchSend() method.

when using mail() the second one, because the privacy is kept.
Apr 6 '09 #2
maheswaran
190 100+
Thanks for the reply.

Is there any functionality difference?. Like If use first one then mail function called only one time, if choose second one then mail function called number of time depends on loop?. just i want to know , if we use first method to put cc: to number of persons, is mail function called only once for all mail ids in cc or mail function would call number of time depends on mail ids putted in cc..?
Apr 6 '09 #3
Dormilich
8,658 Expert Mod 8TB
the mail() function itself is called only once in the first case, but I dont know how sendmail (the program that actually sends the mails) handles this.
Apr 6 '09 #4
maheswaran
190 100+
lets welcome others idea.
Apr 6 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ramprasad A Padmanabhan | last post by:
Hi all, I am a php newbie, ( doing perl all time till now ). I am a bit confused OOP in php. Suppose I create an instance of a class with the new() function the cronstuctor is called .. fine...
5
by: Hartmut Sbosny | last post by:
Hello NG, I have a ordinary class `Base' with two functions `void foo()' and `void any()': class Base { public: Base() {} void foo() {} void any() {}
5
by: Chris Capon | last post by:
Is there any way to cast a base class object to a derived class datatype when the derived class adds no new fields nor alters the object allocation in any way? The scenario would be where you...
4
by: Ray Dukes | last post by:
What I am looking to do is map the implementation of interface properties and functions to an inherited method of the base class. Please see below. ...
8
by: sdlt85 | last post by:
Hi, the program is asking the user for a number ant he base of the number, then it will convert the number to decimal. But is running right only with base 2, 3, 4, 5, 6, 7, 8 but if I try 16 it is...
15
by: Juha Nieminen | last post by:
I'm sure this is not a new idea, but I have never heard about it before. I'm wondering if this could work: Assume that you have a common base class and a bunch of classes derived from it, and...
13
by: Rahul | last post by:
Hi Everyone, I was just playing around virtual functions and landed up with the following, class Base1 { public: virtual void sample() { printf("base::sample\n");
2
by: cmonthenet | last post by:
Hello, I searched for an answer to my question and found similar posts, but none that quite addressed the issue I am trying to resolve. Essentially, it seems like I need something like a virtual...
10
by: blangela | last post by:
If I pass a base class object by reference (likely does not make a difference here that it is passed by reference) as a parameter to a derived class member function, the member function is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.