Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending bulk email in PHP

Tags:

php

email

I want to send mail to hundreds of email addresses in PHP using php mail function. How can I do that?

like image 960
user156073 Avatar asked Aug 24 '09 04:08

user156073


People also ask

How to send email using PHP with PHPMailer and Ajax JQuery?

php'; $output = ''; foreach($_POST['email_data'] as $row) { $mail = new PHPMailer; $mail->IsSMTP(); //Sets Mailer to send message using SMTP $mail->Host = 'smtpout.secureserver.net'; //Sets the SMTP hosts of your Email hosting, this for Godaddy $mail->Port = '80'; //Sets the default SMTP server port $mail->SMTPAuth = ...

How can I send multiple emails in PHPMailer?

Using multiple email address for posting mails from PHPMailer class. We may have a list of email address to which the common message should go. For this we will store all email address in an array and then we will loop through the array to add all emails to our outgoing address.

Can PHP send emails?

PHP makes use of mail() function to send an email. This function requires three mandatory arguments that specify the recipient's email address, the subject of the the message and the actual message additionally there are other two optional parameters. mail( to, subject, message, headers, parameters );


2 Answers

You can also use SwiftMailer

Please also look at a similar post here

like image 110
Extrakun Avatar answered Sep 28 '22 05:09

Extrakun


You can try phplist

It will be a better option

like image 29
sumesh Avatar answered Sep 28 '22 03:09

sumesh