Jump to content
  • 0

information about sending mail in bulk.


thanhvanchi
 Share

Question

Hello all member!
I have almost completed a project but I am facing problems while sending bulk emails based on some filters. I can pull those emails in list box but not sure how to select all emails from listbox make a string separated by ';' and send emails to all the recipient. I badly need support.

Thank you in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 12/27/2016 at 10:54 AM, thanhvanchi said:

Hello all member!
I have almost completed a project but I am facing problems while sending bulk emails based on some filters. I can pull those emails in list box but not sure how to select all emails from listbox make a string separated by ';' and send emails to all the recipient. I badly need support.

Thank you in advance.

Where do you store those emails? do you have one email per record and you need to send emails to all the emails if the field?

It would be great if you could describe a scenario. 

Also please note, there is a limitation in a number of characters in "to" field. You can enter up to 200 characters. You may find more info here

Link to comment
Share on other sites

  • 0

I use this script in a footer to find email addresses in a report, put them in a box (semi-colon separated), and copy the contents of the box to a clipboard on button click. It should work if you only have emails in one column, and want all of them.

 

<p id="emailCount"></p>

<textarea id="emailOutput" style="width: 500px; height: 200px;"></textarea>

<p>
<button class="js-textareacopybtn">Copy Emails to clipboard</button>
</p>

<SCRIPT LANGUAGE="JavaScript">
var elems = document.getElementsByTagName("td");
var copiedEmails = [];
var numEmails = 0;
for (var i=0, m=elems.length; i<m; i++) {
if (elems[i].innerText.includes("@"))  {
copiedEmails.push(elems[i].innerText);
numEmails += 1;
console.log (numEmails);
}
}
var joinedEmails = copiedEmails.join("; ");
document.getElementById("emailOutput").innerHTML= joinedEmails;
document.getElementById("emailCount").innerHTML= "Found " + numEmails + " emails.";
</script>

<script>
var copyTextareaBtn = document.querySelector('.js-textareacopybtn');

copyTextareaBtn.addEventListener('click', function(event) {
  var copyTextarea = document.getElementById("emailOutput");
  copyTextarea.select();

  try {
    var successful = document.execCommand('copy');
    var msg = successful ? 'successful' : 'unsuccessful';
    console.log('Copying text command was ' + msg);
  } catch (err) {
    console.log('Oops, unable to copy');
  }
});
</script>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...