This is a totally revised version of my earlier post, but with a with solution.
I do not want to run sendmail on my VPS server. Instead, I'm using a plugin called WP-Mail-SMTP, which intercepts calls to wp_mail(), and routes via whatever SMTP server you want instead (I'm using gmail.).
I just spent a long time figuring this problem out. When using the default s2member PayPal e-mail configuration, the confirmation e-mai was not being delivered. Everything looked ok. I finally added a logger to for wp_mail(), and discovered that the confirmation e-mail was being attempted, but failing.
The reason seems to be that using a SMTP replacement will
fail when the address is in the form
User Name <[email protected]>which is the
default for Confirmation Recipients in s2member.
I instead simply used
%%payer_email%%, and the confirmations started to get delivered. Did not try with multiple recipients, however (like you might want to send a copy to yourself?).
But this does confirm that s2member uses wp_mail(), and NOT PHP mail() as implied by earlier responses. I did in fact look at s2member code to confirm this as well (before I did all the other experiments). So any plugin that lets wp_mail() use SMTP or other mail provider should work just fine - apparently as long as you confine the address to a plain e-mail address.