Mass Mailing - Sending SMTP Emails Via PHP Page
I am sending SMTP emails via my PHP page, I am sending about 20 SMTP emails (stress testing) one after another, these emails are sent via a FOR loop (has one MySQL seek for email address in each loop)(with NO forced delay what so ever). Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Mass Mailing
I need to send 30,000 emails to our NewsLetter Subscriber, I tried to use our hosting Site and for the worst part We we banned and our site was stopped. I am using PHP script, mail() function to send Mail. how to send these personalised newsletter.
View Replies !
Mass Mailing From Database
The code takes all the email addresses from a database table and sends out email to each of them using the mail() function. I'm hosted on a virtual host, so I can't change any INI files or anything to stop the script timing out. I tried putting set_time_limit(0); at the top of the file, to no avail. My options appear to be: 1) Get a Perl script to do it (I can't program in Perl, or find one to do it.) 2) Get some kind of list software (this needs to be in Perl, as I can't install anything on the server. Also it needs to be free, and must work with my existing system (a MySQL database)) 3) Get around the time-outs in PHP (I'm not sure how)
View Replies !
Selecting With PHP And Mass Mailing
I work as the sysadmin for a local ISP. I need a way to access some information from our database of stories we post on the site each day. I'm going to write a script that will access the database and grab the last 7 entries that were entered. I'm not sure how to go about selecting this information. Also, I used to have a simple perl script that would open the dir of the users, and send an email to each name that was a name of one of the directories and I guess it appened the @domainname.com on the end. In other words, I could have a file on the system that I needed to send and I ran a script that sent this file to each customer we had as if they were the only ones to receive it. I'm not sure how to recreate this.
View Replies !
Best Ways For Mass Mailing
I would like to understand which are the best ways to send bulk mailings like for newsletters and so on ( not spamming, always to receivers who opt-in ). I am not looking for code for now , I have found some very interesting classes and I also have my own scripts, I just want to know all the options available and why one is better of another . So, if have to send just a few copies to, say, less than one hundred people I can use the mail function, If I have to send , say, 20 thousand emails I will have to hire dedicated mail servers, but what if I have to deliver a few hundreds emails ? What is usually the max limit using my shared hosting before moving to a dedicated mail server ? What is the best way ? maybe splitting the delivery in batches using the default mail ( sendmail ) or by SMTP ?
View Replies !
MASS MAILING CRISIS
I need to make a program that will be capable of sending out a blast email to 3,000-50,000 users. I previouslly made a program that used the mail() and a while loop, and it made the server crash and or produced errors. As i have recentlly discovered many people seem to think that the mail() wont be good enough for this number of emails. I have also researched for two days on sending it with SMTP and have not figured that out yet. Does anyone have any suggestions on how to make a program capable of blasting out 3,000-50,000 emails?
View Replies !
Mass Mailing Software
what mass mailing software you all use if any? We are very concious about the SPAM laws and are looking for ways to have subscriptions and unsubscriptions. Also most of our lists are in MySQL and Excel. I could always write one with PHP , but am a bit busy right now.
View Replies !
Kron Job / Automated Job - Mass Mailing
I need to know what strategies are available for the following situation, I have an automated emailer sending out approximately 1700 emails out and growing in numbers. Problem is that the ISP only allows me to send out 500 per hour, so I need to create some sort of automated software or get it somewhere that would send out 500 emails everyhour. Another problem is that I dont want this to be browser based. Because this would take approximately 4 hours and also the client's always on the move so cant expect to have a browser open for 4 hours.
View Replies !
Mass Emails
what is the best way to send out mass emails. I was thinking of having a database table with just the users email, and then a foreach( mail() ) loop. Is this a good way to do it, or is there a better way? Will this get me blacklisted in any way?
View Replies !
Mailing With Php, But Not Via SMTP
I have to send ALOT of emails at once, but media temple limits it to 500 emails per hour, which is why i dont want to use SMTP. is this going to take forever using just PHP, or is there a faster way?
View Replies !
SMTP Mailing Problem
Just reinstalled apache, php and phpMyAdmin...........everything seems to be working fine until I tested a form that was working fine before. Its a basic input form for name and address and message and a submit button. The form appears to submit but the mail message is never received. I have looked in my PHP.ini ( Snippet below)file and cant find the problem. Code:
View Replies !
Class For Easy Smtp Mailing?
does anyone know a php class for easy smtp-sending? Class would only need to be able to send textmails and should be really easy for a guy like me (not much php knowledge) to be integrated...
View Replies !
Send Emails Out To A Mailing List.
i want to send emails out to a mailing list. its takes 2 emails (right now, probably 50 when im done) from the database and sends out and email. then it submits a hidden form to the same page after it sends two emails. it then grabs the next 2 and sends those out. it does this till all emails are sent out. so basically it sends 2 emails, submits hidden form back to the same page, then send 2 more emails out. it does this till all emails are sent. my problem is that while the script is executing none of the html is output and visible in the browser until the $mailer>send() is done. and when it appears it only appears for 1 sec then disappears.
View Replies !
Sending Mass Mail
I need to send 3000 messages out. what would be the best way to tackle this? Currenly i use php's mail(); function with a while loop. This takes around 6 seconds just for 200 messages. I would like to cut this down if possible. Also is it possible to send html through mail? So its not just a boring text email.
View Replies !
Sending Mass Email Fom Php Using Mail Function
I have to send more than 100s of email using a php code if i use mail function whether it will be sent to spam or inbox. If it is sent to spam which is the other way to send mass email from php. i have tried to sent email to 4 to 5 email ids it is going for inbox only but i have a doubt if i send it to more than 100 email id it may go for spam
View Replies !
Mass Mailing Script/waiting For Script To Finish.
I have built a newsletter/mass mailing system that loads templates, supports multiple newsletters and mailing lists, etc. The problem I have is this: I start a query loop which pulls the persons name and email address from a mysql database, populates the template for that newsletter then sends the message using the phpmailer class. The script takes ages (hours) to execute when your sending to 10,000+ people and so the window has to stay open till the script finishes. Is there a way to start this process running and continue script execution without having to wait for all the messages to go before finishing script execution?
View Replies !
Php Sending Mails To Mailing List Show Strange Headers
i need to send a mail to one mailing list address.when i sent to this the from address comes as newsletter-request@abc.com; on behalf of; ABC[abc@abc.com] where newsletter@abc.com is the mailing list id abc@abc.com is the moderator id when i change the to address to any other email address other than this mailing list, the from field works fine. i have given the mailing list, in the Bcc header.
View Replies !
Sending Out 26,000 Emails - How!?!
I need to send out 26,000 emails - on a regular basis... however, this consumes quite some time and I need to find a way to execute the PHP scriptm, without a timeout and without the user ahving to wait for it (at a rate of 10 emails/second, it's still 70 minutes).
View Replies !
Sending 2 Emails At Once
I'm using the following line in a PHP script, to send a visitor an email from my web page. The $_POST['email'] variable is whatever they enter as their email address into a form: mail ($_POST['email'], 'Title ', $body); I also would like the same script to send a little email to me at the same time, with a short message to myself - not the main body variable shown above. Could anyone please explain what I should add into the above code? All I really want is to receive their email address.
View Replies !
Sending Emails
My Hosting Service only allows me to send 250 emails/hour so I send an email every 15 seconds when sending a newsletter. I use a cron job to start the script at 9am and it should keep this script running until it finishes 10 000 emails(newsletter subscribers). After sending each email I log this in a MySQL db. And in my monitor I see that it stops after sending a various number of emails: 100, 400, 1000, 2300 or whatever(it never send all the 10000 emails). I have set up the maximum execution time variable to 0. Still, I have no idea: why does my emailing script stop? I've watched it myself a couple of times. It shows me no error. The browser just stops from loading after sending a number of emails. (error_reporting is set to 53 - no notices - notices shouldn't stop the script) Also, I have set the abort_user_ignore variable to true.
View Replies !
Sending Too Many Emails
I have a script that takes information from one table (ufJoin) and using its results grabs information from two other tables (users and feeds). Using the information gathered then utilizes a pre-made function and sends an email. For example: ufJoin contains userid 1 and feedid 1. So the script looks in the users table for the userid matching 1 and takes their email addresses. The script then looks in the feeds table for the feedid matching 1 and takes its url. The table ufJoin will contain more than one entry per user. Meaning, more than one URL is to be used. The URLs found are then attached to a pre-made function and emailed. It sends a new email for every URL instead of just the one! How can I stop this from happening?
View Replies !
Sending HTML Emails In PHP
I have a form that my customers can complete, and based on their answers, a results page will display. There are many if/elses in the page to display the proper results based on their answers. This works beautifully. Now my problem: I'd like to send them an email with their answers. I'm using the mail() function, and it works fine sending them the email in HTML format when I put static text in there like "Hello World!". However, I need to be able to perform if/then statements and include files into that email based on their answers. I can't get the includes to work at all. Can anyone offer me some insight here?
View Replies !
Sending Multiple Emails
I have a little problem with sending multiple e-mails to multiple people. I can't just add recipients onto the "To:" because each e-mail will be different for each person I am sending to. I have a page sending me multiple variables that relate to different users. Then I go through those variables with a loop, get the related e-mail address, get other info related to that person and other info relating to that variable out of the database and try to send it. It seems to do it and I even get a mailsent - i.e. $mailsent = mail(); - of 1 for all of them, but only the first email ever gets sent. PHP Code:
View Replies !
Sending Lots Of Emails
Is there anything I should note when sending emails to lots of people from a database. i.e. do I need to stop the script to allow the server to send the mails or anything like that? I am running PHP on Linux, and am looking to send out approximately 12,000 emails. I'm using a web form to populate the email, then just the normal mail function to send, looping round once for each email (i.e. a separate call to mail() ).
View Replies !
Sending Emails (locally).
is anyone familiar with WAMP5 or the like? for building and testing php/mysql applications locally. This is basically how I build my site, and it would save a lot of trouble if I could build and properly test emails locally and not need to upload to my web host just for it to work. I use the mail() function.
View Replies !
Server Isn't Sending Emails
It's not a problem with a specific email service. There are people from hotmail, gmail, aol, yahoo and a few others who haven't received the validation link, but others with the same email service have. I have signed up with 2 of my gmail accounts and my hotmail account and I received the validation email each time, and it never shows up in the spam folder. When I set-up the domain on the server I did nothing to the mail server settings, I just left it with the default settings and it seemed to be working fine, but obviously not. I don't know jack about mail servers, so is there something I need to do to make sure all email are being sent? Code:
View Replies !
Mail() Sending Two Same Emails
<?php $mymail = '*******'; $mymail2 = "******"; $cc = $_POST['subject']; $FrOm = $_POST['email']; $BoDy .= 'First Name: '; $BoDy .= $_POST['first_name']; $BoDy .= ""; $BoDy .= 'Last Name: '; $BoDy .= $_POST['last_name']; $BoDy .= ""; $BoDy .= 'Email: '; $BoDy .= $_POST['email']; $BoDy .= ""; $BoDy .= 'Message: '; $BoDy .= $_POST['message']; $BoDy .= ""; $send = mail("$mymail", "$cc", "$BoDy", "From: $FrOm"); $send2 = mail("$mymail2", "$cc", "$BoDy", "From: $FrOm"); if ( $_POST['subject'] == "Lunches"){ $send2; } if($send2){ echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } else { ($send); } if($send) { echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } ?> When there is Lunches or any other value it sends both emails mymail and mymail2 are active and both send emails. Where is my mistake?
View Replies !
Sending Emails With Delay
i have 300 subscribers. According to my hostings provider mail policy, i can send 200 emails in one hour. So its 18sec/1email. So what are my possibilities? 1. I can send emails using set_time_limit(0) + sleep(20). 2. Set some cronjob. Using first method, would force me to have browser window opened for ~1.5h... Not an option. So i guess using cronjobs would be the best thing to do here. But how to invoke/destroy cronjobs from a PHP script. I dont have any shell acc and safe_mode is on.
View Replies !
Sending 1000 Emails ?
I have a small problem : i want to send emails to 1000 users ( or more , and i will do it very fluently ) , i just want to use pure PHP . What should i do to solve this problem ? If i send 1000 mails at a time , will there have any problems ?
View Replies !
Sending Bulk Emails
I'm trying to send a lot of emails from my PHP script. I'm using PHPmailer. I tried to send 1000 emails but only managed to send about 600 of them. So my question for the forum is How do I send lots of emails? Are there different methods? I do not want to send one email with 1000 email addresses. I want to send 1000 unique emails.
View Replies !
Sending Blank Emails
I have the following code $to=$email; $from="thankyou@m.com"; $body="dfasdfasdfd safdsaf"; $title="Thank You for shopping at M.com"; $success = mail($to,$from,$title,$body,"From:$from Reply-To:thankyou@m.com"); for some reason it is not sending the email. I don't get any error but if I do echo $success - then it's blank. Did i do something wrong?
View Replies !
Hotmail Sending My Emails
Ive been working on getting email sent that don't send directly to junk mail for a while now. So far i have my emails getting sent to the inbox of gmail , outlook, yahoo accounts. However im still having trouble with HOTMAIL. Ive been reading around and there seems to be increased settings for hotmail but have yet to be able to configure my system for these.
View Replies !
Pause In Between Sending 50 Emails At A Time
I am planning to send opt-in emails by chuncks of 30 to 50 at a time and would like pausing between each chunks 1) is using sleep() feasable or using:? 2) how long should I set the sleep for? (it will never be over a grand total of +/- 200 emails)
View Replies !
PHP Sending HTML Formatted Emails
Just so this is out there on the web, I battled the past 24 hours about this. Background info... I developed a ecommerce website in PHP 4 on a shared linux hosting plan from GoDaddy and had the html formatted emails sending as text/html and were going fine with limited header information. Then we moved the site over to a Dedicated Linux hosting plan. This time, it's PHP 5. Things are bound to not work as expected moving to a new programming language. So what worked in PHP 4: $headers = 'MIME-Version: 1.0' . ""; $headers .= 'Content-type: text/html; charset=iso-8859-1' . ""; Now needs to be (at least what worked for me) in PHP 5 $headers = "MIME-Version: 1.0"; $headers .= "Content-type: text/html; charset=iso-8859-1"; $headers .= "X-Priority: 3"; $headers .= "X-MSMail-Priority: Normal"; $headers .= "X-Mailer: php"; For the life of me I could not figure out why text/html formatted emails were always sending as plain text and all the information was shown in the body text using the PHP 4 method.
View Replies !
Sending Lots Of Emails In The BACKGROUND?
I'm building a 'job posting' site of sorts. When a job is available in a particular state, I want the system to send an email to everyone who is 'watching' that state. I know how to do this, but I need to figure out a way to 'send the emails in the background' - ie: if an administrator adds a job to Wyoming, I don't want them to have to wait for the php script to finish selecting and e- mailing everyone watching the state before the administrator can move on and do other things. I originally thought that passing this task to the PHP command line would do the trick, but it turns out that a script like... exec("my php script that emails people"); echo "complete!"; ....does not echo "complete!" until the thousands of people have all had their info passed to the mail server (a long time). I suppose that I could get rid of this by just lumping everyone together in the Bcc: field of a single e-mail message, but at this point I'd like to keep that as a last resort and go with the personalization ("Hi James... a job has been posted in Wyoming"). Does anyone have any thoughts as to how I can send the emails without preventing the administrator from doing other tasks until the script has finished executing?
View Replies !
Stop Cron From Sending Me Emails?
How can I stop Cron from sending me emails? I tried to make the program run without output but it's still sending an email. I heard there was the other method, to make the output go to a file. How can I do this?
View Replies !
Sending Emails To Database List
im trying to add on somewhat of a newsletter feature onto a website. Basically I have a list of email addresses (along with their first and last names) in mysql database. From here ive created a form, simply its one text box, in which the administrator will type their text into this text box, press submit and the email will be sent to all those in the database. The part in red (the actual email sending bit) works only if I was sending to one person. But for some reason it doesnt like to looped and used for each row of data (ie each email sending attempt). (edit, the code below doesnt seem to want to go red, but you can see where its ment to!) Code:
View Replies !
Newline Characters And Not Sending Emails Out
I am using a simple mail script to send out emails for a webpage that I designed. The script works fine until I insert the newline character ( ). Anytime I insert it, the webpage runs fine but no email is sent out. As soon as I take the newline character out of the mail script, emails are sent out just fine. Code:
View Replies !
Mail Function Not Sending Emails.
im starting to doubt my ability to read the php manual. Somehow this thing is not sending emails. Any thoughts why? (Yes i did change mymail@mail.com into an actual email address. mail('mymail@mail.com', 'My Subject', 'my message');
View Replies !
Sending Emails To A Large Group
I have written a script to send an email to a large list of emails, it works fine except for one slightly major thing. Each email needs to have the receipient's email address at the bottom of the message for removal purposes. This requires crafting a seperate email for each person. And therefore I must send an individual email for each person. The problem is rate. I need to know how I can rate limit the outgoing messages, and/or make my mta (exim) send lots of messages in one connection (up to 50 per connection).
View Replies !
Sending Html Emails With Attachments
I'm using PHP 4.4.4 Can anyone recommend any good freeware that will allow me to send an HTML formatted email with an attachment? The attachment will also be an HTML file, but it would still be good to have a class/script that allows different attachment types. A key thing here is that the email is able to be viewed in Outlook.
View Replies !
Script Stopped Sending Emails
PHP Code: Function SendMail($to,$subject,&$body,&$headers) { Â Â $return_path=""; Â Â if(IsSet($this->delivery["Headers"])) Â Â { Â Â Â $headers_values=$this->delivery["Headers"]; Â Â Â for($header=0,Reset($headers_values);$header<count($headers_values);$header++,Next($headers_values)) Â Â Â { Â Â Â Â if(strtolower(Key($headers_values))=="return-path") Â Â Â Â { Â Â Â Â Â $return_path=$headers_values[Key($headers_values)];
View Replies !
Mail() Function Sending Emails Trapped By IMF
I am using the simple mail() fucntion in a php script but the emails that are being generated and being trapped by Microsoft Exchange server 2003 Inteligent message filter as having an SCL rating of 7 or 8, the highest possible being 9. This is causing me problems getting the emails delivered to people!
View Replies !
|