Skip to main content
The First Step
November 22, 2017
Question

Send MMS Using api and sdk in C#

How Can i send MMS using ringcentral sdk and api.

if anyone have sample code in C# then please share with me.

8 replies

Employee
November 23, 2017
I am creating a demo snippet. Stay tuned.
Employee
November 23, 2017
The First Step
November 23, 2017
Thank You  i am  able to send MMS.
But What should i do to sent the mms to a list of 50 numbers in one API call.


The First Step
November 23, 2017

i have tried to send the list of 502 numbers for sms but i get error message thent

number of receipents exceeds than the group of MMS : [10] ?


why do i get it as it is clearly mentioned in yor api doc that 50 numbers list can be send for SMS/MMS per call.



https://support.ringcentral.com/article/RingCentral-Business-SMS-Frequently-Asked-Questions.html


8. Is there a limit to the number of recipients I can send an SMS / MMS to?

You can send an unlimited number of SMS / MMS to anybody in United States.

9. Is there a limit to the number of SMS / MMS that I can send?

You can send an SMS / MMS to up to a maximum of 50 recipients per SMS / MMS at once.

Employee
November 23, 2017
What is the exact error message please? You can catch and print the error message like this: https://github.com/ringcentral/ringcentral-csharp-client#exception-handling

We can provide further help as long as we see the exact error message.
The First Step
November 17, 2021

I'm getting a error while sending MMS by using C#

IOException: The process cannot access the file 'C:UsersDELLSourceReposCosmeticsOmsOms.WebwwwrootfilesRingCentral est_4e28.jpg' because it is being used by another process.


MY CODE

var attachment = new Attachment { fileName = model.FileName, contentType = imageType, bytes = System.IO.File.ReadAllBytes(filePathCopy) };

PhongVu
Community Manager
Community Manager
November 17, 2021

Seems the file is being open by another program in your computer. This may have nothing to do with the SDK or the API.

Employee
November 17, 2021

It is not a RingCentral or SDK issue. As the error message suggests, the image is being used by another process.

And the error message is thrown by System.IO.File.ReadAllBytes(filePathCopy) which is just plain C# code.

You could try quit other processes which is locking that file. Or you may make a copy of the file.