Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
public string SendFax()
{
string URLAuth = "https://service.ringcentral.com/?s=1210";
WebClient webClient = new WebClient();
var formData = new NameValueCollection();
formData["Username"] = "8774211237";
formData["Password"] = "ABC12345";
formData["Recipient"] = "12485974888";
formData["Coverpagetext"] = "Some random text";
formData["Resolution"] = "High";
byte[] responseBytes = webClient.UploadValues(URLAuth, "POST", formData);
string resultAuthTicket = Encoding.UTF8.GetString(responseBytes);
webClient.Dispose();
return resultAuthTicket;
}

there is an error in SendFax .This code does not work .Its return a string .

Please Give me some solution .
Posted
Comments
Rajib Mahata 14-Jan-14 7:45am    
returns 1 that means Authorization failed. but my all credential are correct User name and password .
Mahesh Ghongade 28-Nov-16 9:05am    
You can try following link and see if it solve your issue.

https://devcommunity.ringcentral.com/ringcentraldev/topics/i-have-used-https-service-ringcentral-com-faxapi-asp-it-raised-upgrade-your-browser-error-couldnt-send-the-fax-viia

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900