Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Php dentro codice html dentro codice php

    il titolo semberà strano ma è così

    in pratica devo inviare dell'email...

    e il problema sta nel messaggio:

    $msgbody = '
    <html>
    <head>
    <style type="text/css">
    body {

    background-image: url(http://www.mio sito.com/images/sfondoemail.jpg);

    background-repeat: no-repeat;

    background-color: black;

    color: white;

    }
    div.centrale{
    position: absolute;
    top: 400px;
    text-align: right;
    }
    </style>
    <title>Dati TEST</title>
    </head>
    <body>
    <div class="centrale"></a></div>
    </body>
    </html>
    ';

    in pratica l'email arriva correttamente
    formattata come dico io (sfondo etc...)
    il problema è che l'img che è nel div centrale...in pratica non vede il link

    a lui arriva http://www.miosito.it/eimgaes/ e basta...come se non stampasse $file_name (che sono sicuro che è diversa dal vuoto)

    ho provato sia



    cercando sul forum e su internet non ho trovato molte spiegazioni..

    spero che possiate aiutarmi

    Daniele

  2. #2
    $msgbody = "
    <html>
    <head>
    <style type=\"text/css\">
    body {

    background-image: url(http://www.mio sito.com/images/sfondoemail.jpg);

    background-repeat: no-repeat;

    background-color: black;

    color: white;

    }
    div.centrale{
    position: absolute;
    top: 400px;
    text-align: right;
    }
    </style>
    <title>Dati TEST</title>
    </head>
    <body>
    <div class=\"centrale\"><img src=\"http://www.miosito.it/eimgaes/$file_name\" /></a></div>
    </body>
    </html>
    ";



  3. #3
    mmm non va...

    il sorgente di thunderbird dice

    <html>
    <head>
    <style type="text/css">
    body {
    background-image: url(http://www.miosito.com/images/sfondoemail.jpg);
    background-repeat: no-repeat;
    background-color: black;
    color: white;
    }
    div.centrale{
    position: absolute;
    top: 400px;
    text-align: right;
    }
    </style>
    <title>Dati TEST</title>
    </head>
    <body>

    <div class=\"centrale\"><img src=\"http://www.miosito.com/eimgaes/$file_name\" /></a></div>

    </body>
    </html>


    e l'immagine non si vede...tralatro non è neanche messa al punto giusto (in base alla regola del CSS)

  4. #4
    nb ho scritto $msgbody = " non $msgbody = '


    <style type="text/css">
    body {
    background-image: url(http://www.miosito.com/images/sfondoemail.jpg);
    background-repeat: no-repeat;
    background-color: black;
    color: white;
    padding-top:400px;
    text-align: right;
    }
    </style>

    la vuoi così l'immagine?

  5. #5
    no ok mi sono accorto dopo della differenza tra ' "
    grazie mille

  6. #6

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.