sending emails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dannymc1983
Forum Commoner
Posts: 80
Joined: Wed Feb 16, 2005 7:24 am

sending emails

Post by dannymc1983 »

i have written a script that allows someone to send multiple emails at a given time. say for example if you had a list of users registered to a webiste and if you wanted to send them all the same email informing them of something then this script would come in handy. the only thing that im having problems with is that the script is extremely slow to execute!
the script sends a message by connecting to a given SMTP server.

here is some basic pseudocode outlining what i have written:

connect to smtp server;
sendmail to user1;
sendmail to user2;
sendmail to user3;
.
.
.
.
disconnect from server;

also, whenever i try send an email to an address outside of the domain of my smtp server then i get this error message: "550 Relaying is prohibited"
can anyone help me with these problems?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

First of all, check out phpmailer class on sourceforge.

You should use an SMTP server that uses authentication, and then you won't be faced with relaying errors.
Post Reply