Member Avatar

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; } …

0
43
Member Avatar

I need some help for the development of my website. I want to send and sms through jsp. anybody can help? i don't have any idea for this..

0
1
Member Avatar

I Have Email Sender Program and i want that the program could send email with images inside too. thanks

0
1
Member Avatar

I have a form which action is a php script. That script returns a header('Location: whatever.html'); Now my question is, would be a way through ajax/javascript to do that only the form were sent, but avoid or prevent the redirection to whatever.html? Also, if would be possible know the page where I was going redirected to... but this is secondary, and I'm asking too much. I've tried with: [CODE] var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { …

0
1
Member Avatar

Is it possible to enter something else than null when calling the sendTextMessage function from the SmsManager?

0
1

The End.