How to insure MFMailComposeViewController does not send mail when the body is not empty?

I have an MFMailComposeViewController in my application to allow the user to easily send me messages about offers and reviews about the application, but I get about 3 emails per day that are just empty in the body or just the users email signature.

Is there a way to check if the email body is empty before it is sent using the MFMailComposeViewController?

+4
source share
2 answers

This is not a programming answer, and may be a little off topic, but I released several applications with similar functionality and saw the same thing.

I also talked with several users who sent blank emails, and found out that sometimes they just check various functions of the application, and sometimes they get a feedback page, but don’t want to spend time typing an email on their phone.

I would think of it as a customer service problem and programming problems. I would take the opportunity to keep track of users who send empty emails. (At least now you have your own email address if you do not allow them to submit the form without a body, which you most likely will never receive.) One option is to send a standard email followed by a message that says that you received an empty email from them and would like to hear their feedback on your product. (Perhaps even send them a quick review).

+4
source

After displaying the MFMailComposeViewController view, you cannot receive a message or control the behavior. You cannot stop people sending empty letters.

If you really want to do this, you will have to write a replacement view and controller. It is probably easier to filter empty messages on the receiving side, though :-)

+1
source

Source: https://habr.com/ru/post/1306165/


All Articles