Hi All,
I am currently using PHPMailer to send out a set of emails on the
execution of a PHP Script (obviously).
My problem is that the PHPMailer action is returning a "true" result
each time it is executed, but not every email generated by this action
is actually being sent.
My account is hosted on HostMonster, and is pointed at the localhost
as the SMTP server.
I use two email list groups - one has 18 listed recipients (and sends
between 6 and 18 actual emails) and the other has 65 recipients (and
sendd between 7 and 26 emails).
Initially the script created a new object for each email (sending them
out as one email per recipient at the moment), and currently I am
using the same object repeatedly (just changing the To address for
each execution), but the fault was evident in each configuration.
I am monitoring the performance of this script by BCCing a copy to a
dropbox, which is where I am getting the actual email counts from.
Anyone had a similar experience? Anyone seeing any possible fixes
which I cannot currently see?
Thanks
Luke 9 2433
Lucanos wrote:
Hi All,
I am currently using PHPMailer to send out a set of emails on the
execution of a PHP Script (obviously).
My problem is that the PHPMailer action is returning a "true" result
each time it is executed, but not every email generated by this action
is actually being sent.
I'm very curious to know why so many folks seem to be using this little
script - PHPMailer.
I mean - the PHP mail() function is *amazingly* simple to use, and I
would think that anything that changes that would make it worse.
What's the attraction?
Lucanos wrote:
Hi All,
I am currently using PHPMailer to send out a set of emails on the
execution of a PHP Script (obviously).
My problem is that the PHPMailer action is returning a "true" result
each time it is executed, but not every email generated by this action
is actually being sent.
My account is hosted on HostMonster, and is pointed at the localhost
as the SMTP server.
I use two email list groups - one has 18 listed recipients (and sends
between 6 and 18 actual emails) and the other has 65 recipients (and
sendd between 7 and 26 emails).
Initially the script created a new object for each email (sending them
out as one email per recipient at the moment), and currently I am
using the same object repeatedly (just changing the To address for
each execution), but the fault was evident in each configuration.
I am monitoring the performance of this script by BCCing a copy to a
dropbox, which is where I am getting the actual email counts from.
Anyone had a similar experience? Anyone seeing any possible fixes
which I cannot currently see?
Thanks
Luke
All PHPMailer can do is tell if the mail was passed off to the MTA
properly or not. If it is, PHPMailer returns true.
What happens after that is out of PHPMailer's control. There is no
guarantee it will be delivered or not - you need the MTA's logs to see
what's happening after that.
It could be your host has limits on what the MTA will send, for instance.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
Sanders Kaufman wrote:
Lucanos wrote:
>Hi All,
I am currently using PHPMailer to send out a set of emails on the execution of a PHP Script (obviously). My problem is that the PHPMailer action is returning a "true" result each time it is executed, but not every email generated by this action is actually being sent.
I'm very curious to know why so many folks seem to be using this little
script - PHPMailer.
I mean - the PHP mail() function is *amazingly* simple to use, and I
would think that anything that changes that would make it worse.
What's the attraction?
You've obviously never tried to send attachments, html, etc. with mail().
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
..oO(Sanders Kaufman)
>I'm very curious to know why so many folks seem to be using this little script - PHPMailer.
I mean - the PHP mail() function is *amazingly* simple to use
Only for the most basic plain text emails. Anything more sophisticated
becomes really ugly if you have to do it by hand. Additionally such
classes can automatically perform some tests and prepare/sanitize/encode
the data you want to send.
>What's the attraction?
The attraction is abstraction.
I also use this class, but with my own wrapper around it. There are some
little glitches in it that I don't like, for example some method names
('isHtml' to enable HTML mode doesn't make sense, it should be 'setHtml'
or something like that, while 'isHtml' should just check the mode and
return a boolean). I also don't like having to "reset" the mailer or to
create another instance if I want to send another email. So instead of
this (pseudo-code, no actual method names):
$mailer->createMail() ;
$mailer->setText(...) ;
$mailer->addAddress(... );
$mailer->send();
$mailer->reset();
my own wrapper works more like this:
$mail = $mailer->createMail() ;
$mail->setText(...) ;
$mail->addAddress(... );
$mail->send();
Micha
Michael Fesser wrote:
..oO(Sanders Kaufman)
>I'm very curious to know why so many folks seem to be using this little script - PHPMailer.
I mean - the PHP mail() function is *amazingly* simple to use
Only for the most basic plain text emails. Anything more sophisticated
becomes really ugly if you have to do it by hand. Additionally such
classes can automatically perform some tests and prepare/sanitize/encode
the data you want to send.
I guess it's just me.
I'm pretty comfortable with manually composing email.
Kinda like a programmer who only uses notepad.
..oO(Sanders Kaufman)
>I guess it's just me. I'm pretty comfortable with manually composing email.
Even multipart mails with boundaries, encoded attachments and proper
headers? Would be too much work for me.
Micha
Michael Fesser wrote:
..oO(Sanders Kaufman)
>I guess it's just me. I'm pretty comfortable with manually composing email.
Even multipart mails with boundaries, encoded attachments and proper
headers? Would be too much work for me.
Yeah - but I've been doing email apps for so long by hand that it's just
less hassle to hand-code than to learn how someone els does it in
something like PHPMailer. Especially when, as you pointed out, there
are bugs in the script.
..oO(Sanders Kaufman)
>Yeah - but I've been doing email apps for so long by hand that it's just less hassle to hand-code than to learn how someone els does it in something like PHPMailer. Especially when, as you pointed out, there are bugs in the script.
I haven't called them bugs, just some things that I don't like, because
they don't fit my own coding style.
Micha
Hello,
on 09/17/2007 10:12 AM Lucanos said the following:
I am currently using PHPMailer to send out a set of emails on the
execution of a PHP Script (obviously).
My problem is that the PHPMailer action is returning a "true" result
each time it is executed, but not every email generated by this action
is actually being sent.
My account is hosted on HostMonster, and is pointed at the localhost
as the SMTP server.
I use two email list groups - one has 18 listed recipients (and sends
between 6 and 18 actual emails) and the other has 65 recipients (and
sendd between 7 and 26 emails).
Initially the script created a new object for each email (sending them
out as one email per recipient at the moment), and currently I am
using the same object repeatedly (just changing the To address for
each execution), but the fault was evident in each configuration.
I am monitoring the performance of this script by BCCing a copy to a
dropbox, which is where I am getting the actual email counts from.
Anyone had a similar experience? Anyone seeing any possible fixes
which I cannot currently see?
I don't know what could be wrong because I do not use PHPMailer, but
maybe it is not composing the messages properly for the recipients that
are not getting the messages.
Anyway, I use this other popular MIME message class which takes care of
properly encoding messages to avoid situations that could make the
messages being discard by some mail programs and servers. You may want
to try it and let me know if you still have the same problems. http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven Bethard |
last post by:
I feel like this has probably been answered before, but I couldn't
find something quite like it in the archives. Feel free to point me
somewhere if you know where this has already been answered.
I have a list in a particular order that I want to split into two
lists: the list of every nth item, and the list of remaining items.
It's important to maintain the original order in both lists.
So the first list is simple:
|
by: Leszek |
last post by:
Hi.
I have problem with phpMailer 1.73 (windows version) After copying both
class.phpmailer and class.smtp and also language file phpmailer.lang-pl to
my php include directory im getting this error when I'm trying to use
phpMailer:
Mailer Error: Language string failed to load: recipients_failed
Does anyone konw the reason for this error?
|
by: Leszek |
last post by:
Hi.
I have problem with phpMailer 1.73 (windows version) After copying both
class.phpmailer and class.smtp and also language file phpmailer.lang-pl to
my php include directory im getting this error when I'm trying to use
phpMailer:
Mailer Error: Language string failed to load: recipients_failed
Does anyone know the reason for this error?
|
by: SirShurf |
last post by:
Hi, I am using a phpmailer class to send some forms over the email...
And the problem is, that some ppl (especially problematic for me is the
buyer....) getting the email as rough data (sorce...) here is the emal
itself as they get it (the headers are below...)
Code:
X-Tour4Less.co.il Mailer:
MIME-Version: 1.0
|
by: Simple Simon |
last post by:
It's entirely possible that I'm completely in the wrong line of work,
but I don't see what Valgrind is complaining about in this code.
Invalid read/writes?
If I free the within main(), rather than within free_node_list(),
Valgrind reports 0 leaks?
OS: SuSE 9.3 Linux 2.6.11.4-21.11-default i686 i386
GCC: 3.3.5 20050117
| |
by: prasenjit2007 |
last post by:
Hello,
can u help me sending Email with attachments using the Class phpMailer.
On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name) 2)To 3) Subject 4) Message5) File input(name abc) - to be sent as an attachment.
This form calls the Class PhpMailer through another form with the following code to send the mail.
<?php
ini_set("include_path",...
|
by: dlite922 |
last post by:
I can't seem to get it working with my smtp server.
I can send the email through the command line like so:
220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 6 Aug 2008 18:44:29 -0600
EHLO www.dmconsultingonline.com 250-localhost.localdomain Hello mail.dmconsultingonline.com , pleased to meet you 250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
|
by: Gilles Ganault |
last post by:
Hello
To handle an occasionnal flaky ADSL connection, I updated the
database that handles incoming calls to have a column that is set to
NULL, and then updated to either Y or N depending on whether a PHP CLI
script was able to send a notification e-mail to support.
To send an e-mail through out ISP's SMTP server, I'm using PHPMailer
2.0.0 rc3 http://phpmailer.sourceforge.net which worked fine until we
had some connection loss. I'm at...
|
by: KeredDrahcir |
last post by:
I'm trying to send an E-mail using PHPMailer and although everything look okay, it's not coming through. Can anyone help?
I'm posting my information from a form.
require_once ("class.phpmailer.php");
$contact_id = $_REQUEST;
$to_email = $_REQUEST;
$id = $_SESSION;
$subject = $_REQUEST;
$body = $_REQUEST;
$send_as_html = ($_REQUEST==''?false:true);
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |