Hi,
I am developing a application blocking a sender in gmail filter
through c#.net. I am a using gmail api to block a sender using the
following line,
GoogleMailSettingsService service = new
GoogleMailSettingsService("yourdomain", "your-apps");
what is "yourdomain" and "your-apps" fields.
service.setUserCredentials(adminEmail, adminPassword);
what is adminEmail and adminPassword.
service.CreateFilter(testUserName, "", "", "important", "", "", "",
"", "", "", "true", "true", "", "");
Here what is testUserName.
Or
Kindly advice how to block a sender in gmail thorough a c#.net code.
we given credentials:
domain = "
google.com";
adminEmail = "
eminosof...@gmail.com";
adminPassword = "xxxxxx";
testUserName = "harinathes";
GoogleMailSettingsService service = new
GoogleMailSettingsService(domain,"googlemailsettingsdemo");
service.setUserCredentials(adminEmail, adminPassword);
service.CreateFilter("eminosoft.pradeep","",
"
haridot...@gmail.com", "", "", "", "", "", "true", "true");
we got an error occured is:
Execution of request failed:
https://apps-apis.google.com/a/feeds/emailsettings/2.0/google.com/eminosoft.pradeep/filter