How to change users mail attribute in drupal via API? - drupal

How would I change a users email address via an API? In the DB the column is users.mail.
I would like to call Drupal, via REST, from another application to change a user's email address.
I am using Drupal 7.
Thanks.

You should look at the Services module and the wealth of documentation associated with it.

Related

cPanel Webmail Migration -- How do I migrate multiple email accounts and their folders?

I have a client who needs to migrate his email accounts to G Suite. For Webmail, I can use Horde, but it only allows export of one email account and a single email box at a time. This client has dozens of email accounts. Is there a way I can automate the process using phpMyAdmin or other tool?
Everything I have found recommends using Horde to export each box of each email separately. This is far too time-consuming.
Web Host: site5
CMS: WordPress
Any help would be greatly appreciated. Many thanks in advance!
cPanel stores its emails in the following location:
/home/$USER/mail/$DOMAIN ## all email accounts
/home/$USER/mail/$DOMAIN/$email_account ## specific email account
Those emails are, by default, stored in maildir format.
Gmail doesn't use maildir for their emails. It will not be possible to simply copy-paste the files for the migration.
Is there a way I can automate the process using phpMyAdmin or other tool?
phpMyAdmin is a tool, written in PHP that provides a Graphic Interface for you to interact with a MySQL Database.
phpMyAdmin is not associated with the emails stored in your cPanel account and can't be used for your purpose.
Everything I have found recommends using Horde to export each box of each email separately. This is far too time-consuming.
This could work, however, as you will need to see how (if possible) your Mail Client Application can be used to import those emails back to Gmail.
I would recommend that you do the following:
Install a Mail Client that will assist with the migration. I highly recommend that you use Thunderbird as it will handle the maildir "migration" for you
You will need another domain for the migration - it will be used to "obtain" the emails from your cPanel account. You can register a free domain from Freenom
Point the second domain to your cPanel account
Freenom Nameservers -> cPanel Nameservers
Add the domain in your cPanel account. If your Package doesn't allow multiple domains - add it as an Alias. We need to be able to create email accounts for that domain.
Create the exact same email accounts. If your old domain is original.com and your Freenom is free.tk
user#original.com -> user#free.tk
Your original.com's emails are present in
/home/$USER/mail/original.com/
Copy them to (after you have re-created all original.com's emails for free.tk!)
/home/$USER/mail/free.tk/
Add each email account for free.tk to your Mail Client.
Have your client switch over his emails for original.com to Gmail.
Add each Gmail account to your Mail Client.
Drag and Drop each free.tk email account's content to the corresponding Gmail account.
Note: This works in Thunderbird, I'm not familiar with other email clients.
This is far too time-consuming.
There's no fast way to migrate emails from a cPanel server to Gmail.
I've migrated multiple email accounts by following the above steps and didn't have any issues.
The only thing that you should be aware of is that during the time that your Client switches over to Gmail - his emails will not be transferred yet and will not be available in his/hers inbox.

Synching Netsuite and Wordpress

I want to be able to export a list of members from Netsuite and store their email domains in the backend of Wordpress. I am setting up a separate member portal through wufoo/Wordpress so that when a potential new member goes to register through our Wordpress site, the site automatically searches through the email addresses on file and work out whether that person is eligible to sign up for membership.
Hope this make sense?
Is this possible?
Thanks in advance
Enable REST in Wordpress Jetpack and call the rest API using nlapiRequestURL.

Using salesforce as an authentication service and entitlements engine for third party application

I am the lead engineer on a web-based application that we would like to tightly integrate with salesforce. Specifically, we would like to:
Save email, hashed password / salt with contact record, and implement basic authentication service
Save entitlement information as part of the contact record
Basically, we would like to use salesforce as an authentication / entitlements service. Once a contact has been "converted" into a full fledged user of our system, we would like to be able to add user credentials to the contact object, and build an apex remote call that our system would use to authenticate the user. Furthermore, we would also like to enable / disable certain functionality on our site based on entitlements configured as part of the contact record.
I have read about using salesforce as an identity provider, but I don't think that this what we want. The contact record does not allow salesforce login.
Any direction would be appreciated.
They're probably going to need to be Customer Portal or Partner Portal Users.
I believe what you want to do may bypass SF's terms on users. If you want to authenticate users through salesforce, I believe you need a user license for every user (but there are some cheap licenses for high amounts of users, contact salesforce).
If you want access based on the contact object, you can map contacts to portal users, which creates an additional user object. From there on I do think the Salesforce Identity they are building, may be what you want ?
http://www.salesforce.com/company/news-press/press-releases/2012/09/120919-7.jsp
You don't need customer portal or partner portal, there are a set of tools that help you integrate Salesforce with third party application
look here :
http://wiki.developerforce.com/page/Integration
Hope this helps :)

Drupal Multiple email accounts in site information?

I had created 4 admins in my website and i want all of them to receive the email messages. I already configured the site e-mail address in the site Information but i can only add one value in the field. is there some way i can add more email address to that field?
Thanks in advance.
I don't know how to do this in Drupal but what I would do is setup an email alias/group/list for the company. site-messages#example.com and then add all their email addresses to that email. This is easy to do if you have Google Apps mail or any other robust email provider.

Email Application Question

I have created some webforms that will allow users to fill in their data. Afterwards, the information is processed and inserted into a database with a follow up email to me afterwards letting me know who signed up.
The problem is that I use different email addresses on all of these webforms.
What I would like is some sort of dashboard email application where I can view all the emails being sent to me from one central point.
I think that Thunderbird allows you to receive multiple emails from different accounts. Is something like this even possible?
You can configure just about any email application to receive mail from multiple accounts. Thunderbird does this as does outlook (not outlook express). Just go through the normal process you do to add an account, then go ahead and add another account under a different email address.
Here's a link to a walk through on how to do this on Thunderbird.

Resources