CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Mass email all users in database?

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 08/22/2007, 10:29 PM

I as tasked with sending all the users their logins and password. I used a Mal Merge through MS Word/Outlook.

Apparently only half of hte teachers actually received the email and I spent all day responding to individual requests... grrrr.


Is there a way to mass email all the users in a User Table.. sending their login and password , along with a message that I type in a text field?

I have recently begun mastering the use of the Send Email event so I ma hoping I can branch off that.

Thanks!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
Benjamin Krajmalnik
Posted: 08/23/2007, 12:00 PM

Carsten,

Instead of using the SendMail event I recommend you use one of the many
available classes for sending email.
They will make your job much easier, and are very configurable.
It is not difficult to send the emails.
One way I perform batch processing is to create a grid, so that I have the
Codecharge infrastructure do all the record traversal.
You can set the number of records to show per page to some huge number which
would never be reached.
I usually remove the field labels from the template, so the only thing
remaining is the grids template directives. That way no data is displayed.

Now, in the beforeshowrow event you can latch in whatever functinoality you
want to perform for that record.

ckroon

Posts: 869
Posted: 08/23/2007, 1:59 PM

Benjamin,
Thanks! That sounds great, but I am not sure what you mean by using a Class that is suited for sending email...?

I Will set up the grid as per your directions and then experiment with beforeshow events to see what I can come up with. Is ther any documentation that deals with this directly?


_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 08/23/2007, 5:38 PM

ckroon
Have you searched the forums? I think that there are a couple of solutions already in the forums.
View profile  Send private message
ckroon

Posts: 869
Posted: 08/23/2007, 10:22 PM

Yes I have and I am trying my best to utlize what is there.. I should be alright :)

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
Benjamin Krajmalnik
Posted: 08/30/2007, 9:20 AM

Sorry for the delay in replying - been very busy on a fe projects.
There are various php classes out there which encapsulate all of the
requirements for sending emails.
They give you the ability to use diferent transports, adding attachments,
etc

"ckroon" <ckroon@forum.codecharge> wrote in message
news:546cdf5289f86f@news.codecharge.com...
> Benjamin,
> Thanks! That sounds great, but I am not sure what you mean by using a
> Class
> that is suited for sending email...?
>
> I Will set up the grid as per your directions and then experiment with
> beforeshow events to see what I can come up with. Is ther any
> documentation that
> deals with this directly?
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.