|
 Mandakini - 2007-09-10 11:21:15
Hello I kept my script on http://www.myemailresponse.com/emarketing/smtpclass/test_smtp.php this script working well with single email address but if I put more then one email address in $to variable I get this in my email box
Hello 'pkumar125@gmail.com','pkumar125@gmail.com','pkumar125@gmail.com','pkumar125@rediffmail.com',
It is just to let you know that your SMTP class is working just fine.
Bye.
here 'pkumar125@gmail.com','pkumar125@gmail.com','pkumar125@gmail.com','pkumar125@rediffmail.com' is $to variable.
I want subject and body both in array format. I need to send few varaibles along with body and subject. for example in subject firstname and with body firstbame and country etc.
Q 1.)Can you tell me where I need to change to convert normal variable to array for body and subject.
Q 2.) How this script will help to increase speed to send email.
Q 3.)what is var $maximum_piped_recipients=100; if I will change its value how it will effect in our email speed ? what's maximum value for var $maximum_piped_recipients.
Thanks
 Manuel Lemos - 2007-09-10 22:06:51 - In reply to message 1 from Mandakini
What you put in the To: header is not interpreted by the SMTP server. You need to pass separate recipients in an array passed to the SendMessage function.
If you want to maximize the speed of queueing messages and you use a Linux or another UNIX operating system, do not use the SMTP class. You should use sendmail, qmail, or equivalent to deliver the messages.
I recommend that you use the MIME message class instead. It supports more efficient delivery methods and has some optimization options to deliver messages to many users:
phpclasses.org/mimemessage
 Mandakini - 2007-09-11 06:20:32 - In reply to message 2 from Manuel Lemos
Thanks for your reply.
Can you tell me what class should I use ? I having around 40,000 email address in a table and I have around 10 tables with 40 to 50k email address , we send around 90,000 emails per day. I don't send any attachment its only newsletter so Please suggest script which suit our requirement. The problem currently I am facing is my server get hang after executing 800 or 700 datas.
I tried to use (test_email_message.php) url is : http://www.myemailresponse.com/emarketing/smtpclass/mimemessage/test_email_message.php
but it gives this error "Error: it was not possible to send e-mail message " Then I uncommented .
Please help me its very urgent
Thanks
 Manuel Lemos - 2007-09-11 15:41:40 - In reply to message 3 from Mandakini
It depends first on the operating system you are using in your server, and then whether you want to send personalized messages (different bodies for each reciepient) or not.
As for the error, it seems your PHP installation may have the mail function disabled. In that case you need to check with you systems administrator to see why it is disabled or eventually switch hosting provider.
 Mandakini - 2007-09-12 06:02:32 - In reply to message 4 from Manuel Lemos
Thanks a lot for your guide and help.
operating system of my server is Linux. This url contains all details of server http://www.myemailresponse.com/emarketing/info.php
Yes I want to send personalized messages i.e. different bodies and subject for each reciepient)
Below is our project specfication.
1)User can upload csv file which contains email address, first name,lastname ,country etc. This uploaded data will insert into a database table (e.g. Uploadinfo )
2)Now User can create template and they can put variable from uploaded tables (e.g. Uploadinfo ) into email template and then they will submit for send email.
3)I am sending email through cron. I do keep record for email viewed and other static too.
We are intended to execute this Project on priority, will it be possible for us, to discuss on Messenger so that can explain you better. My skype id is pkumar125 and hotmail id is pkumar125@hotmail.com
Thanks a lot
bye
 Manuel Lemos - 2007-09-12 06:45:00 - In reply to message 5 from Mandakini
For what you want, you may start looking at the test_personalized_bulk_mail.php script.
Regarding the PHP mail failing, I think you need to set the sendmail_path option in php.ini to "/usr/lib/sendmail -t -i" so the PHP mail function knows how to deliver your messages.
Alternatively, you can try using the sendmail_message_class sub-class from the sendmail_message.php file.
 Mandakini - 2007-09-12 13:53:05 - In reply to message 6 from Manuel Lemos
I want to send personalized messages i.e. different bodies and subject for each reciepient .
My requriment are :
1) Server able to manage to load of 30,000 email in 30 minutes. or other way
2) I should assure all message should send successfully.
3) There are no duplication I mean one email should to one email address there should no chances of multiple mails goes to one email address. In my current system some people complained that they received same email content eight times even though I send only one. Right now I am using simple email() function.
now I try to find out how to make changes in php.ini file sendmail_path
"/usr/sbin/sendmail -t -i" to "/usr/lib/sendmail -t -i" but not able to get any clue. I send email to my host. Any way to do it myself ? Please guide me how to change sendmail_path because I think I don't have access of php.ini file or can you tell me how to access php.ini
 Mandakini - 2007-09-12 16:16:31 - In reply to message 6 from Manuel Lemos
I request to my host to make changes for sendmail_path may be it will take some time. I tried with ini_set() but not able to do it.
Now my question is why should I use such a big file to for qmail
require_once("email_message.php");
require_once("qmail_message.php");
email_message.php contains more then 3000 lines there are any class dedicated for only qmail we don't want email and content validation those validation we do while csv upload.
I got some info from www.php.net
$cmd = "/var/qmail/bin/qmail-queue";
$hostname = trim(file_get_contents("/var/qmail/control/me"));
Is it possible to do qmail by file_get_contents() method if yes how to get file location please explain me how it will work ?
Thanks a lot
 Manuel Lemos - 2007-09-12 18:40:17 - In reply to message 8 from Mandakini
The qmail sub-class only takes care of the delivery method. It does not compose the message according to the Internet e-mail standards. That is the part implemented by email_message_class, which is the base class. Without the base class you will not be able to compose the messages properly to avoid eventual rejection.
Anyway, most of the email_message.php script contains just comments which are actually documentation embedded in the class file. In reality the class code uses much line lines of code.
 Manuel Lemos - 2007-09-12 18:44:52 - In reply to message 7 from Mandakini
Your php.ini file path is /usr/local/lib/php.ini . Now sendmail_path seems to be set to /usr/sbin/sendmail -t -i . That may be ok, if the sendmail command path is really /usr/sbin/sendmail .
|