0

I made HTML+CSS file to send via email as newsletter. Working for a portuguese company, I need to deliver the newsletter in portuguese for portuguese people and in english for everybody else. I would like to know if there is some way to make the newsletter to change languages (via XML, maybe) based on a readers system language? If yes, can somebody enlight me how it can be done?

Thank you!

IamKa
  • 9
  • 2

1 Answers1

2

No.

The typical way of setting a reasonable default for documents available in multiple languages on the WWW is to examine the Accept header of the HTTP request.

When you are just sending email via SMTP, there is no HTTP request for you to look at, and once it is sent it becomes static.

The best you can do is ask the user when they sign up for the newsletter (possibly using the Accept header to set a default if you are asking them on the WWW) what language version of the email they want to receive.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335