2

Know a user can send a mail using he MFMailComposeViewControllerDelegate as mentioned here, but how to send a conformation mail to the user after the set of specific task has been done.

For some reason it feels like apple doesn't allow in sending background mails, without user conformation, which is fine.

The task is to send a conformation mail like after you buy productA, productB and pay, need to send a receipt to the said mail id.

Any guide in the said path would be greatly appericiated

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • The email would need to be sent from your server, not the client app. Are you collecting the user's email address and being notified of the purchase event? – picciano Dec 19 '17 at 23:29

2 Answers2

1

You can't send it directly from users device without email composer.

Only way to do this will be to prepare your own server that will handle those events and send proper emails from server side.

Grzegorz Krukowski
  • 18,081
  • 5
  • 50
  • 71
1

You can't send an email from the user's email address without using an MFMailComposeViewController, and you can't send an email to the user without the use of a server.

What you should do is prompt the user to enter their email address, send that as part as their purchase, and then use a server-side mail app to send a confirmation email to the user-provided email address.

Duncan C
  • 128,072
  • 22
  • 173
  • 272