سؤال

Im trying to send messages to a mail account that will only accept rich, or plain text emails. Im aware of the AltBody method, but i want to send the message primary as a rich or plain text email.

Ive looked through the docs but couldn't find an answer, does any one know how i can achieve this ?

هل كانت مفيدة؟

المحلول

Place the HTML (rich) version to normal body and plaintext version to AltBody. Then send the mail as HTML. PhpMailer will send both bodies; clients capable of displaying HTML will display it, others should display plain text version.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top