Expression Engine: Removing Members From Mailing List - expressionengine

I'm sure there's a way to do this, but I haven't been able to find it:
I have a site with an email newsletter signup form (uses EE's Mailing List module), as well as member registration.
If a user signs up for emails, and then later becomes a member, what is the best way to ensure that they don't receive duplicate emails, other than manually removing them from the email list?
Ideally, I'd want them to be removed from the email list when they confirm registration. Is there a direct way of doing this?
Thanks in advance!
ty

Good question.
I've just set up a test in my sandbox, and subscribed to the mailing list, and set up a member with the same email. When I send a mail out, via the Communicate module, I do indeed get two copies.
Personally I think this is really a bug within EE, as ideally it should only send out to unique addresses.
I'm guessing that an extension for the http://expressionengine.com/developers/extension_hooks/member_member_register hook, to run a check against the Mailing List DB table?

Related

DocuSign Template Prefil Fields Through API

I was a user of Right Signature, where we can create merge fields, and we can send the data through post request,
I have recently migrated to Docusign,
I see that they have prefil fields.
What I want to achieve is, Create Prefil fields, like Owner Name, Owner Email, etc,
And supply this fields through DOCUSIGN API, and send them. Is this functionality even possible.
I could not find any documentation, or perhaps I do not have the right search. Can some one point me to it, what will be the syntax for sending the templates, with prefil fields.
Thanks.
Anything you can do from the web app - you can do from API.
The term "pre-fill fields" means something very specific, but I'm not sure exactly what you want.
Any field in DocuSign can be "pre-filled" such that the value is set by the sender. The field can be read-only or can be edited by the person that it is assigned to.
You can also use pre-fill fields that are specific for the sender and therefore cannot be modified by anyone except the sender.
All of this is possible with the API, I suggest you first try it with the web app to understand. You can do everything for free with a developer account - try it and see if it serves your need.

Send Information to Sharepoint via Email and integrate into a List

I have an Idea but could not find out if it is possible. I will line out, what I want to do and hope that someone can tell me, if it is possible.
I want to collect structured Information from many people within but also outside my organisation (LAN). The Information is very easy Say X = ?, Y = ? to M = ?. The Idea is to send out the request via Email and let the people respond to a SharePoint Email Address (I know that there is the possibility for example for document libraries to receive emails). Now the trick would be to extract the Information automatically into a SharePoint list which I can use further.
Is that possible? I found some Information on InfoPath and Form Libraries but I can't find a concrete example where a Information extraction takes place from an Email content.
Thanks a lot for your help!
Richard
I'd say create 2 lists, one for the email submission and another for the replies. The first list that handles the email submissions is going to hold all the information you want to tell your recipients. From there, you kick off a Visual Studios workflow that you deploy to your farm. In this workflow, you customize the Send Email From Address to the "incoming email" address to the second list. You then can take the replies and extract the information there. In summary:
List 1 - Email Submission
List 2 - Email Replies
List 1 has a Visual Studios workflow assigned to it called "Submit Request"
When a new List 1 item is created, the workflow uses the fields in the list item and puts it in your email inside the workflow.
"Submit Request" workflow customizes the Send From address to an email address (i.e. InfoRequest#sharepoint.com)
Set the incoming email of List 2 as that email address (InfoRequest#sharepoint.com)
You may be able to edit the from address using REST in sharepoint 2013 workflows. Check out this link: http://blogs.msdn.com/b/spses/archive/2014/10/24/you-can-t-specify-the-from-address-for-email-messages-when-you-use-the-quot-send-an-email-quot-option-from-a-sharepoint-designer-2013-workflow-action.aspx

Custom Contact Form on a Drupal CCK Node

What would be the best way to construct a contact form in Drupal 6 for each node of a particular type? I have some CCK nodes of type "profile" which have email address as a field. I want to have a view for each node with a contact form that users can fill out and send with their own email address as a return address (so that further contact is being done offsite).
Basically I just want that initial email contact to be done through my site, and when the recipient replies it just goes to the address that the sender entered when they filled out the contact form.
You might be asking yourself why I don't use the personal contact form that comes baked into Drupal. The issue is that the way my institution deploys their Drupal instances to use the local Kerberos logins, the user accounts it creates in Drupal do not have email addresses. They just get a basic skeleton account with username. I don't really want to force users to go through another hoop of editing their user account info, because they most likely just won't do it.
There is nothing to do particularly with node itself, all you need for this - is form with fields (from, to, subject, message) and custom submit handler for this form.
you can implement all this in custom module using forms API to create form and write custom submit for it. And in this submit you need to send email via drupal_mail() - take a look at this, it is provides examples as well. That topic can help you with forms.
Then, if you need to place this form within a node, you can do the following:
via hook_nodeapi, on "view" operation, add form you've created before, you can check for particular node_type and use existing field values (you mentioned cck field with email) to pre-fill form. So that every time user views node, he sees this form.
as logical continue of your task, I suggest it makes sense to take a look at menu system and create local task (tab) for the node, where you'll display email form.
In general, that's all. There are of course other ways of implementing this, however I think this one is the easiest for understanding.
Regards, Slava

Script to check whether all mails replied in Lotus Notes

We use Lotusnotes 6.5 as email client. We wil have around 1600+ mails for 9 hrs. If a mail not checked , we have face serious issues with our client. Can any script can be written to check whether all mails are checked and replied?
Update:
We have already tried moving the mails to another folder.But has this mailbox handled by team of persons, we noticed lot of human error happening like moving a unread mail, sometimes they would have read mail but forget to reply it etc.etc.
So I was looking out for a script solution, will your other options. Also one more thing we do is we cc our mailbox mail id for all outgoing emails to have a track of all replied mails, will this could help in any way to find out which mails was missed?
If you need to track unread marks, I second the aforementioned nsftools solution, which works in Domino 7.x too. However, this is very much Notes ID-dependent. A folder would be better.
Note that 6.5x is well out of support, and that Domino 7.x officially died this week: use something at least vaguely modern!
There's an easier non-programmatic way. Just move the email from the inbox into another folder once the email has been responded to. That is more reliable than any programmatic solution, and keeps your inbox tidy (which will certainly be necessary if you get nearly 200 emails per hour!)
That said, here are some other ideas.
Determining if the document was read
Unread marks are not your friend here, unless you'll be accessing the mail file from the same client. Also they tend to get out of sync and would likely prove unreliable at some point, especially given the number of incoming emails. Instead you'll need to have some information that is saved within the individual mail document, such as the last accessed property or a custom item you manage via scripts/formulas.
You can see if an email has been read by checking the Last Accessed property of the mail document. According to IBM's technote (https://www-304.ibm.com/support/docview.wss?uid=swg21086670), the property will be updated when the document is read.
You could write a script in the QueryOpen event that stamps a value on the document and saves it.
Determining if the email was responded to
First off, I'd suggest you save all sent emails in case you need a record of what was sent to the client. That won't give you a way to see which emails have not been responded to, however.
Instead you could add script to the reply action within the memo form. When someone click's reply it could update the current memo, stamping an item on it to say who replied and at what time, for instance. Then you can create a view to show any emails that don't have that item, and another view to show emails that do grouped by who responded. The second view could even show how many emails each person responded to, something that might be used as a measurement of performance perhaps.
"Unread mark" checking is not exposed in the API.
I did find 2 links, this one is a basic implementation, where as this link does have more robust code and is implemented as an object in LotusScript. It should be compatible with Notes 6.5+.
I found the second link through nsftools website which has lots of great snippets that solve various problems. You should at least be able to detect if a mail has been read or not. Note that it requires making API level calls. You should be able to create a new script library and copy/paste the code into it.

Is passing an email list by POST rather than GET possible?

I am using the following to create an on-the-fly live updating email list for interested users on my site:
https://mail.google.com/mail/?view=cm&tf=0&fs=1&to=email#address.com&cc=blah#blah.com,another#one.com&body=test%20email&shva=1
This works great for a few emails and has been the only solution I have found for mailing lists using gmail. Please let me kow if there is a better way to do this. Gmail seems to lack functionality to do this on it's own.
So the problem:
I now have close to 500 email addresses which gives me the beautiful error
Request-URI Too Large The requested URL /mail/... is too large to process.
For obvious reasons. I was wondering if there is a way (or one could be added) to support POST variables in addition to GET variables. I tried a few tests with no luck.
Please help me as many people count on it. Thanks!
p.s. it does not have to be pretty, just function correctly
Gmail isn't designed to deal with recipient lists that long. You should look for a dedicated mailing list service - you could even use a private google groups group for it.
Remember, if you have a list that long, you'd better be prepared to deal with unsubscribe requests (unless you want your gmail account disabled :). A proper mailing list service will take care of this for you.

Resources