I have a php script which requires phpmailer and I got it to work already but I need to send the email to 3000 persons. How do I do that? I've tried searching over the net but all the examples show only to enumerate the emails addresses. Mine comes from a database with queries. I have the following code : $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'ssl://smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPKeepAlive = true; $mail->Port = 465; $mail->Username = "my@gmail.com"; $mail->Password = "password"; $mail->SetFrom('my@email.com', 'First Last'); $to = "my@gmail.com"; $mail->AddAddress('$to',"First Last"); $mail->Subject = "Test Mail"; $message = "messages go here"; …

Member Avatar
Member Avatar
+0 forum 9

Hi i am working on contact form using SMTP. I am unable to send a mail. Please help me to fix the issue. **index.html** <div id="frmContact" class="w-form"> <div id="mail-status"></div> <!-- <form action="contact.php" method="post">--> <label for="name">Name:</label> <input class="w-input" type="text" placeholder="Enter your name" id="cf_name" name="cf_name"> <label for="email"><p class="info">*</p>Email Address: <span id="cf_email-info" class="info"></span></label> <input class="w-input" placeholder="Enter your email address" type="text" id="cf_email" name="cf_email"> <label for="email">Your Message:</label> <textarea class="w-input message" placeholder="Enter your Message Here" id="cf_message" name="cf_message"></textarea><br> <button name="submit" class="w-button" onClick="sendContact();">Send</button> <!-- <input class="w-button" type="submit" value="Send">--> <!--</form>--> <div class="w-form-done"> <p>Thank you! Your submission has been received!</p> </div> <div class="w-form-fail"> <p>Oops! Something went wrong while submitting the …

Member Avatar
Member Avatar
+0 forum 3

i am facing small problem, i am not very good with ajax.what i want to check is email avaliblity through ajax and show no or yes.png code: <script type="text/javascript"> $(document).ready(function(){ $("#email_id").keyup(function(){ if($("#email_id").val().length >= 4) { $.ajax({ type: "POST", url: "<?php echo base_url();?>Traveller/email_is_taken", data: "email_id="+$("#email_id").val(), success: function(msg){ if(msg=="true") { $("#email_verify").css({ "background-image": "url('<?php echo base_url();?>img/Yes.png')" }); } else { $("#email_verify").css({ "background-image": "url('<?php echo base_url();?>img/noo.png')" }); } } }); } else { $("#email_verify").css({ "background-image": "none" }); } }); }); </script> Controller:traveller.php public function email_is_taken($input) { $query="SELECT * FROM `tbl_usrs` WHERE `email_id`=? "; $arg=array ($input); $exec=$this->db->query($query,$arg) or die(mysqli_error()); if($exec->num_rows() >0) { $this->form_validation->set_message('email_is_taken','Sorry the email …

Member Avatar
Member Avatar
+0 forum 2

how to send mails individually instead of sending to all recipients together? my code is: function SendMail($msg,$subject,$addresses) { require "class.phpmailer.php"; //Fetch from email here foreach($addresses as $key=>$val){ $email = test_input($val); if((trim($email)=='') || (!filter_var($email, FILTER_VALIDATE_EMAIL))){ unset($addresses[$key]); } } $addresses=array_unique($addresses); $row = FetchAllsettingsCustomMailchmp(); //end fetch $mail = new PHPMailer(); $mail->PluginDir = ""; $mail->Host = "localhost"; $mail->From = $row['email_from']; $mail->FromName = $row['sitename']; $mail->Subject = $subject; foreach ($addresses as $address) $mail->AddAddress($address); $mail->MsgHTML($msg); $mail->IsHTML(true); $mail->AltBody ="Order"; $mail->CharSet = 'UTF-8'; $success = $mail->Send(); $try = 1; while((!$success)&&($try<1)&&($mail->ErrorInfo!="SMTP Error: Data not accepted")) { sleep(5); $success = $mail->Send(); $try++; } $mail->ClearAddresses(); if(!$success) return false; else return true; } …

Member Avatar
+0 forum 0

There´s another post about this, over 3 months old, but there they are dealing with port settings which isn´t the problem, so I´m making a new thread. I send out 50+ emails in a loop via PHPMailer - SMTP. For testing purposes I send them all to myself, so I can verify receiving them. I guess I don´t have to post the code, it´s a loop, it does 50+ times the exact same thing with the same SMTP username and password, the same receiver, the same content and most times I receive 50+ mails, all correct, so my code is …

Member Avatar
Member Avatar
+0 forum 4

I'm building an API and on the aspect of sending a mail. I'm getting mail not sent error. In my API, the front-end sends a JSON request consisting of the mail parameters. { "to":"gideonappoh@gmail.com", "subject":"Testing Reviewer's Page", "body": "Hello Gideon", "headers":"oksana.v@scopicsoftware.com" } I then decode them and pass them through a PHPMail method in my controller. But its not working, and I can't find whats wrong. Can someone help me. These are my codes. public function actionSendMail() { //Getting request from frontend $request = file_get_contents('php://input'); //Decoding input into an array $input = json_decode($request, true); //Validating request if (is_null($input)) { $response …

Member Avatar
Member Avatar
+0 forum 11

Here is my code: require_once("PHPMailer/class.phpmailer.php"); $mail = new PHPMailer(); // set authentication $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Host = "smtp.gmail.com"; $mail->Post = 587; $mail->Username = "myemail@gmail"; $mail->Password = "myemailpassword"; // set From: $mail->SetFrom("myemail@gmail.com", "First Last"); // set To: $mail->AddAddress("adifferentemail@yahoo.com", "First Last"); // set Subject: $mail->Subject = "Subject"; // set body $mail->IsHTML(true); $mail->Body = "<html> <body> <p>Body Text</p> </body> </html>"; $mail->AltBody = "Sorry, your email client does not support HTML messages."; // send mail if (!$mail->Send()) die($mail->ErrorInfo . "\n"); I've tried changing from TLS to SSL, I've tried it with and without authentication, with SMTPSend() instead of just Send(), …

Member Avatar
Member Avatar
+0 forum 8

SMTP Error: Could not authenticate. SMTP server error: 5.7.14 Please log in via your web browser and then try again. 534-5.7.14 Learn more at https://support.google.com/mail/bin/answer.py?answer=787 534 5.7.14 54 e67sm2084558qge.13 - gsmtp

Member Avatar
Member Avatar
+0 forum 6

Hi all , I have written code for sending mail with pdf file as attachment , but mail sending is not working. I used class.phpmailer.php. The files are attached herewith . Please kindly see if any solution is possible . Hence appreciated. //$mailpdf=$pdf->Output('exam_schedule.pdf', 'I'); require_once('class.phpmailer.php'); require_once('class.smtp.php'); $mail= new PHPMailer(); // defaults to using php "mail()" $mail->IsSMTP(); $mail->Host = "blahblah.com"; $mail->SMTPAuth = true; $mail->Username = 'bumblebee.com'; $mail->Password = '254890567'; $body = $file; //pdf file from any folder //$body = eregi_replace("[\]",'',$body); $mail->AddReplyTo("blah.com","First Last"); $mail->SetFrom('bluedemon.com', 'First Last'); $mail->AddReplyTo("macau.com","First Last"); $address = "no_reply@boo.com"; $mail->AddAddress($address); $mail->Subject = "PHPMailer Test Subject via mail(), basic"; $mail->AltBody = …

Member Avatar
Member Avatar
+0 forum 2

I'm rather inexperienced when it comes to php mail scripts. I've got a working script, thanks to the PHPmailer that everyone uses. But what I want is to modify it so that I send the form info to two locations: Step one, send all information as text-only to email@location.com Step two, send the information to a 3rd-party url to process all of the original post data from the form. But I really have no idea how to modify this script for that. Here's what I have so far: <?php require_once '../PHPMailerAutoload.php'; $results_messages = array(); $mail = new PHPMailer(true); $mail->CharSet = …

Member Avatar
Member Avatar
+0 forum 6

I have a calendar built for course scheduling and I'm trying to have it auto book a google resoure calendar by sending an email using phpmailer with an ics attachment ics file BEGIN:VCALENDAR PRODID:-//company// Course Scheduler//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH BEGIN:VEVENT DTSTART:20130411T170000 DTEND:20130411T173000 DTSTAMP:20130410T110314Z ORGANIZER;CN=my@Email.com:MAILTO:my@Email.com UID:unique_id@email.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Test;X-NUM-GUESTS=0:MAILTO:myresource@group.calendar.google.com CREATED:20130410T110314Z DESCRIPTION: test LAST-MODIFIED:20130410T110314Z LOCATION:5th Floor SEQUENCE:0 STATUS:CONFIRMED SUMMARY:test TRANSP: OPAQUE END:VEVENT END:VCALENDAR relevant part of email func $mail->AddStringAttachment($invite[1], $invite[0], "base64", "text/calendar; charset=utf-8; method=PUBLISH"); i get the email on my account showing the event details and a "add to cal" link nothing appears on the resource calendar though any thoughts? i've tried changing ics …

Member Avatar
Member Avatar
+0 forum 5

<html> <head> <title>PHPMailer - SMTP (Gmail) authenrication</title> </head> <body> <?php require_once('class.phpmailer.php'); $mail = new PHPMailer(false); // the true param means it will throw exceptions on errors, which we need to catch // - - - - - - - - - Email Configuration - - - - - - - - - // // REQUIRED //$user="arti@carinait.com"; $password="teamcarina2013"; $gmail_user = "arti@carinait.com"; // Gmail or Google Apps .. Send email from this email account $gmail_pass = "$password"; // password $name=""; $plant=""; $cancer=""; $target=""; $submiter=""; $ins=""; $email=""; $contact=""; $image=""; if(isset($_POST['new'])) { $name=$_POST['name']; $plant=$_POST['plant']; $cancer=$_POST['cancer']; $target=$_POST['target']; $submiter=$_POST['submiter']; $ins=$_POST['institut']; $email=$_POST['email']; $contact=$_POST['contact']; $image=$_POST['image']; $time=@date('H:m:s'); //$image_url=$_FILES['file']['name']; $image=$time."_".$_FILES['file']['name']; …

Member Avatar
Member Avatar
+0 forum 3

few days before my phpmailer function works fine but now it gives me this error The following From address failed: mona18shri@gmail.com Mailer Error: The following From address failed: mona18shri@gmail.com SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 d17sm9100541obu.0 - gsmtp what can i do for this error any suggetion plz help

Member Avatar
Member Avatar
+0 forum 5

I have a working mailer script which has already started sending out mails. We need to send an email message to approximately 5,000 email addresses. I have a few problems though. 1.) It's sending out really slow. I'm guessing it's the embedding? The image is 300+kb big, is it supposed to slow the sending down like that? The mail is sending like 3 emails per minute. And it's going to take a lot of time if we want to send the email to 5000 recipients. The code is something like this: $mail->AddEmbeddedImage("rocks.png", "my-attach", "rocks.png"); $mail->Body = 'Embedded Image: <img src="cid:my-attach"> …

Member Avatar
Member Avatar
+0 forum 8

I have a working bulk mail script which is supposed to be sent to thousands of users. I have started sending the mails but needed to abort because there was something wrong with the message body. How do I resume the mail from where it left off? Assuming it was sent to 200 emails, how do I send it to the rest? Thanks

Member Avatar
Member Avatar
+0 forum 3

I'm new to phpmailer and I tried to follow their example. I'm using php mail() function to send emails and I'm getting an error: "Invalid address: $toYou must provide at least one recipient email address. Mailer Error: You must provide at least one recipient email address." What email address is valid then? I've tried three and I still get the same error. Thanks

Member Avatar
Member Avatar
+0 forum 10

Here is my code for this page: phileaton.est-a-la-masion.com/Day Care/contact.htm <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META NAME="description" CONTENT="Looking for an affordable daycare for your child? Are you worried that your precious one is not learning basic skills? If so, this is the place for you! Little Lights Daycare is a professional home-based facility where your child will learn social skills, skills necessary for school, self-respect, and respect for others in a Christian environment. "> <META NAME="keywords" CONTENT="daycare, little lights, child, lancaster, pa, 17554, 17601, 17603, rohrerstown, mountville, east pete, east …

Member Avatar
Member Avatar
+0 forum 1

I send out a newsletter using a PHP based mailing list manager installed on my server, which uses phpmailer to send. For most users that I send to, they get the newsletter fine, but users who have email accounts with cox.net , windstream.net , roadrunner.com, rr.com , earthlink.net seem to emails where the message body is blank. X-Priority: 3 X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4] Errors-To: catchall@mysite.com MIME-Version: 1.0 Content-Type: multipart/alternative; X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.mysite.com X-AntiAbuse: Original Domain - gmail.com X-AntiAbuse: Originator/Caller UID/GID - [504 …

Member Avatar
Member Avatar
+0 forum 2

require_once(LIBRARY_PATH . "phpmailer.php"); require_once(CONFIG_PATH . "emailconfig.php"); class email { public function sendMail($from,$fromname,$subject,$content,$to){ $mail = new PHPMailer(); $mail->SMTPAuth = SMTPAuth ; $mail->IsSMTP(); $mail->SMTPSecure = SMTPSecure; $mail->Host = Host; $mail->Port = Port; $mail->Username = Username; $mail->Password = Password; $mail->From = $from; $mail->FromName = $fromname; $mail->Subject = $subject; $mail->Body = $content; $mail->AddAddress($to); $mail->IsHTML(true); if(!$mail->Send()){ return false; }else{ return true; } } } The code mentioned above is used for sending mails on the website. It works fine as far as sending mail is concerned but the mail received does not have correct email address in from tag, instead it sets the email address …

Member Avatar
Member Avatar
+0 forum 2

Hi every one! In localhost, my site can send email easily (using smtp and phpmailer) but when i upload my codes to oni.cc, that feature does not work at all! Should i config some things or did i do something wrong?

Member Avatar
Member Avatar
+0 forum 1

When I am sending via Gmail using phpmailer, the email is taking a long time to send and also sometimes it is not going. I am using XAMPP as localhost. Here is my Code: if($_POST['submit']{ /*MAIL PART BEGINS*/ //error_reporting(E_ALL); error_reporting(E_STRICT); date_default_timezone_set('America/Toronto'); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $body = "Your Password has been generated.<p />"; $body .="New Password = '$password'<p />"; $body .="Please Login with your Employee ID and this password and you can change the password at any time."; //$body .="Amount Requested = '$amount'<p />"; //$body .="Amount Sanctioned …

Member Avatar
Member Avatar
+0 forum 5

[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if ($mail->Send() == true) { echo 'The message has been sent at '. time(); } else { echo 'The email message has NOT been sent for some reason. Please try again later.'; echo 'Mailer error: ' . $mail->ErrorInfo; } } else { echo "<html> <body bgcolor=#ECE5B6> <center> <h1>GMAIL PAGE</h1> <form action='email3.php' …

Member Avatar
Member Avatar
+0 forum 13

I have been trying to send email for 2 days. using php I have tried different methods but to no avail . I am sure I am making some small mistake. Please can someone give step by step procedure of sending mail using Xampp?

Member Avatar
Member Avatar
+0 forum 13

Hi Guys, Hope you can help me with this little conundrum I'm having currently. My company has a dedicated windows server with heart internet and for means of database interaction, we've been forced to move one of our php sites to there. Everythings great and works fine - except the mail function. The SMTP server is hooked up using MailEnable - I'm absolutely clueless on how windows servers work so forgive me for sounding silly asking this question. The problem I'm having has been constant across everything I try - I get authentication errors. The latest attempt gives the most …

Member Avatar
Member Avatar
+0 forum 2

i have a page that has a textarea (id="elm1") i post this value to the same page when a submit page is clicked to send the value of the textarea in a html mail the textarea will contain html code but when i use it only the text comes in the mail no link is there and for image no image is displayed anyone please help

Member Avatar
Member Avatar
+0 forum 3

I get this error when trying to send e-mail form with PHP Mailer 5.1: SMTP Error: Could not connect to SMTP host. Error sending: SMTP Error: Could not connect to SMTP host. [CODE] <?php require("PHPMailer5\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->SMTPSecure = 'ssl'; $mail->Host = 'smtp.live.com'; $mail->Port = 25; $mail->Username = 'davy_yg@hotmail.com'; $mail->Password = '****'; $mail->From='davy_yg@hotmail.com'; $mail->FromName="My site's mailer"; $mail->Body = $newcomments; $mail->Sender='davy_yg@hotmail.com'; $mail->AddReplyTo("replies@example.com", "Replies for my site"); $mail->AddAddress("plasteezy@yahoo.com"); //$mail->Subject = $subject; $mail->IsHTML(true);#$mail->AddAttachment('http://www.branddesignexpress.com/images/homepage_mainimage.jpg', 'homepage_mainimage.jpg'); $mail->AddEmbeddedImage('homepage_mainimage.jpg', 'logoimg', 'homepage_mainimage.jpg'); // attach file logo.jpg, and later link to it using identfier //logoimg$mail->Body = $msg;$mail->AltBody="This is text only …

Member Avatar
Member Avatar
+0 forum 5

How? Im developing a site. It has an email app that sends email. Im trying to know how to do it the other way. This time, gmail or ymail will send and my site will receive. How? I'll wait for your replies.. Thanks for the help..

Member Avatar
Member Avatar
+0 forum 1

Can anyone help me to apply practical formtomail PHP script for website I have try 9-10 PHP scripts but I got no email in my inbox.

Member Avatar
Member Avatar
+0 forum 1

Hi I am using Xampp Server in my machine, i used php mailer (class.phpmailer.php), when i run the mail file, i am getting the below error msg Could not execute: /var/qmail/bin/sendmail Please help me to solve this issue.

Member Avatar
Member Avatar
+0 forum 15

Hi, I am in a company where SMTP is currently not available and port 25 is also blocked, Therefore I have choosen to send email via PHP Mailer Class but whrn I setup everything its giving me error... Second I did not understand this line [ICODE]$mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "gmail.com"; // SMTP server[/ICODE] [CODE]SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (112107656) SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not …

Member Avatar
Member Avatar
+0 forum 10

The End.