Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter rucanunes

    (@rucanunes)

    Already did and tested, but when I receive the email I can see the HTML code.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Check your mail client’s setting. Or try another one.

    Thread Starter rucanunes

    (@rucanunes)

    Could you please show me an example of the email with HTML?
    How should it look like?

    Rather than working backwards, why not post your HTML message?

    Thread Starter rucanunes

    (@rucanunes)

    Here it goes:

    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>
    <body>
    
    <p><b>• Identificação do Veterinário<br>
    </b>Nome: [nome-vet]<br>
    Clínica/Hospital Veterinário(a): [nome-clivet]<br>
    Contacto telefónico: [telefone-vet]<br>
    E-mail: [email-vet]<br>
    <br>
    <b>• Identificação do Proprietário</b><br>
    Nome do proprietário: [proprietario]<br>
    Contacto telefónico: [telefone]<br>
    E-mail: [email-prop]<br>
    <br>
    • Identificação do Animal <br>
    Nome do animal: [nome-animal] <br>
    Raça: [raca] <br>
    Idade:[idade] <br>
    Peso: [peso] <br>
    Sexo: [sexo] <br>
    <br>
    <b>• História</b><br>
    Tolerância ao exercício: [tolerancia]<br>
    Respiração: [respiracao] - [dispneia] [outra]<br>
    Ascite:[ascite]<br>
    Síncope: [sincope] [inicio_sincope] - Início: [texto_sincope]<br>
    Tosse: [tosse_nao] [tosse_sim] - Início: [inicio_tosse] <br>
    Tipo tosse: [tosse_sim_opcoes]<br>
    Duração dos sintomas: [duracao_sintomas]<br>
    Evolução dos sintomas: [evolocao_sintomas]<br>
    História pregressa importante: [hist_preg_imp]<br>
    Fármacos usados, dose e duração: [farmacos]<br>
    <br>
    <b>• Exame Físico</b><br>
    Mucosas: [mucosas]<br>
    TRC: [trc] [segundos] seg.<br>
    Hidratação: [hidratacao]<br>
    Desidratado: [desidratado] <br>
    Auscultação cardíaca: [auscultacao]<br>
    Características: [caracteristicas_cardiacas]<br>
    Auscultação polmunar: [auscultacao_polmunar]<br>
    Características: [caracteristicas_polmunar]<br>
    Pulso: [pulso]<br>
    <br>
    Respiração: <br>
    Frequência: [respiracao_freq]<br>
    Características: [caracteristicas_respiracao]<br>
    Palpação abdominal: [palpacao]<br>
    Extremidades: [extremidades]<br>
    Temperatura: [temperatura]º<br>
    <br>
    <b>• Exames complementares</b><br>
    Radiografias torácicas:<br>
    Lateral: [duracao_sintomas_lat]<br>
    Dorsoventral/Ventrodorsal: [duracao_sintomas_dor]<br>
    Hemograma: [duracao_sintomas_hem]<br>
    Análises bioquímicas: [analises_bioquimicas]<br>
    Prot. Totais: [prot_totais] AST/GOT: [ast_got]<br>
    Observações: [duracao_sintomas]<br>
    <br>
    <b>Ficheiro:</b> [ficheiro]<br>
    <br>
    --<br>
    Este email foi enviado via formulário de telecardio do Hospital Veterinário do
    Porto <a href="http://www.hvp.pt">http://www.hvp.pt</a></p>
    
    </body>
    
    </html>
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    You don’t need <html>, <head>, and <body> tags. <br> should be <br />.

    Thread Starter rucanunes

    (@rucanunes)

    This is what I receive in Microsoft Outlook 2010:

    <head>
    <meta http-equiv=Content-Type content="text/html; charset=unicode">
    </head>
    
    <body>
    <p><b>• Identificação do proprietário </b> <br />
    Nome proprietário: Dr Lurdes <br />
    Morada: Dr Lurdes Pires <br />
    O seu e-mail rn@something.com <br />
    Contacto 918997656 <br />
    <br />
    <b>• Identificação do animal </b> <br />
    Nome: Lost <br />
    Raça: Rafeirinho <br />
    Espécie: Felino <br />
    Idade: 2 <br />
    <br />
    • Veterinário habitual: Eu <br />
    • Ficheiro: [ficheiro]<br />
    <br />
    --<br />
    Este email foi enviado via formulário de telemedicina do Hospital Veterinário do
    Porto <a href="http://www.hvp.pt">http://www.hvp.pt</a></p>
    
    </body>

    I receive other emails in HTML that display correctly. 🙁

    Please repost the code from your Contact Form. Maybe you still have something in there.

    Thread Starter rucanunes

    (@rucanunes)

    <meta http-equiv=Content-Type content="text/html; charset=unicode">
    <p><b>• Identificação do proprietário </b> <br />
    Nome proprietário: [nome] <br />
    Morada: [morada] <br />
    O seu e-mail [email] <br />
    Contacto [contacto] <br />
    <br />
    <b>• Identificação do animal </b> <br />
    Nome: [nome_animal] <br />
    Raça: [raca] <br />
    Espécie: [especie] <br />
    Idade: [idade] <br />
    <br />
    • Veterinário habitual: [veterinario] <br />
    • Ficheiro: [ficheiro]<br />
    <br />
    --<br />
    Este email foi enviado via formulário de telemedicina do Hospital Veterinário do
    Porto <a href="http://www.hvp.pt">http://www.hvp.pt</a></p>

    You need to remove the Meta tags.
    As I understand it (Takayuki Miyoshi can tell us if I am wrong) the message is only the CONTENT of the message. So you do not want ything that would Not be included is a standard e-mail client.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    That’s right. The meta tag is not necessary there.

    Thread Starter rucanunes

    (@rucanunes)

    This is what I have now on “Body of message”:

    <p><b>• Identificação do proprietário </b> <br />
    Nome proprietário: [nome] <br />
    Morada: [morada] <br />
    O seu e-mail [email] <br />
    Contacto [contacto] <br />
    <br />
    <b>• Identificação do animal </b> <br />
    Nome: [nome_animal] <br />
    Raça: [raca] <br />
    Espécie: [especie] <br />
    Idade: [idade] <br />
    <br />
    • Veterinário habitual: [veterinario] <br />
    • Ficheiro: [ficheiro]<br />
    <br />
    --<br />
    Este email foi enviado via formulário de telemedicina do Hospital Veterinário do
    Porto <a href="http://www.hvp.pt">http://www.hvp.pt</a></p>

    This is what I received:

    <p><b>• Identificação do proprietário </b> <br /> Nome proprietário: Dr Lurdes Pires <br />
    Morada: Dr Lurdes Pires <br />
    O seu e-mail something@sapo.pt <br /> Contacto 918997656 <br /> <br /> <b>• Identificação do animal </b> <br />
    Nome: Lost <br />
    Raça: Rafeirinho <br />
    Espécie: Felino <br />
    Idade: 2 <br />
    <br />
    • Veterinário habitual: Eu <br />
    • Ficheiro: [ficheiro]<br />
    <br />
    --<br />
    Este email foi enviado via formulário de telemedicina do Hospital Veterinário do Porto <a href="http://www.hvp.pt">http://www.hvp.pt</a></p>

    I’m having the same issue. How does one send HTML emails with Contact form 7?

    I just tested your exact code and it works perfectly. The only thing I can think so Please re-check is when you are in wp-admin editing the Contact Form. Look below the Form section, the MAIL section (its the right-side you are entering the code) and in the Left-side of that area is a checkbox for “Use HTML content type” Make sure you have that checked. There is another checkbox for the Mail(2) section but of course you need the correct box checked for where you are entering the HTML.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: Contact Form 7] HTML on emails…’ is closed to new replies.