• Revista PROGRAMAR: Já está disponível a edição #53 da revista programar. Faz já o download aqui!

darky_miguel

funçao mail

6 mensagens neste tópico

eu sei usar a funçao mail mas gostava de um esclarecimento podiam me dizer como mando imagens no meio do tesxto eu tou a fazer assim

$cabecalho= "From:clubde de video <info@clubedevideo.mega.pt>\r\n";

$cabecalho=$cabecalho . "Content-Type: text/html;\r\n charset=\"iso-8859-1\"\r\n";

if (mail($_POST['email'],$newsletter->assunto(),$newsletter->conteudo(),$cabecalho))

{

echo "enviada com sucesso";

}

else{

bug;

}

o obecto $newsletter->conteudo()

tem isto ta a bombar

ha pois e <img src="http://www.********.pt/**/teste/imagens/2.png">   

mas como nao cria meter o caminho do servidor ha outra maneira ?

0

Partilhar esta mensagem


Link para a mensagem
Partilhar noutros sites

eu ja andei no www.php.net mas nao me desenrasquei  :-[  :wallbash:

eu sou noob ainda entam ainda nao sei bem a cena dos headers e as cenas mais detalhadas

:-[

0

Partilhar esta mensagem


Link para a mensagem
Partilhar noutros sites

eu tambem só consigo mandar texto s mandar com as tags de imagem<img src"">, do outro lado aparece a tag c/ o link para a imagem.

0

Partilhar esta mensagem


Link para a mensagem
Partilhar noutros sites
<img src="data:image/gif;base64,
R0lGODlhAwEgAPcAAP///87OzqWlpYSEhHNzc2tra1paWiEYGP9CGP8xAL1SEN6thO+cQv+EAP/O
GP/OAM7Oxr29xjEA/2MA/5wA/+8A/+dK79573talzv8AnO9KjP8AY+eEnO9SY/8AGAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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BcmSkM6ihSl8IlRGl4vADiCnIBC/hRcA2BAAcY57iUcABxGOiAIjvgNYVQbiWNJAgDJknJ
SlqykpG0yGTc9i6XnaZFMGIifmpko/3gSC0xo0AB5FYYBLDNXBLJzW8AmRCkUeACuMylLgmXEOf4
ZY8Dkc4gh0lMDmigOinZHEGs5gHIOTJMlgvZAqZJzWpakzF3u0wcVxaatKjmNDlCpV0KABcZnVEm
wOENb9omntjA5mcIIRJwBkK03aDOlrvMZ5Q0RvOlwV0pS5pZCAYOicisGfRqWxPPJSeZSfWMzUQr
2QxKSMLNbi7nNP3xy17I2KK+xMwAM7tVXH5iAPHAUyB/S5I6eZMkxNkSj8bRIx99SVOpFYRqCeGA
Ig+pMe8UkwPWfKTWxCTNoC5AmWmSTG1c6Z0cuqpHFWWlAf5CGJKoqADthI1rfPYh3ABHjxgIawDC
StYLLLFwvIxI0/wCVrK6NawcWA50CCLMnw7zmJpBKkqhmRChfoeo46GkUa/pRdrpco7uOexAMKBL
YPpNlxAZ6DAnJlm7WlavA4FANR0rEM1W8yCDDS01C0va0pr2tKg9CEACBAQAOw==
" alt="Powered by Apache" title="Powered by fnds " />

0

Partilhar esta mensagem


Link para a mensagem
Partilhar noutros sites

O source de uma imagem como base64, coloca este código num .html e abre o browser.

A partir daqui "data:image/gif;base64," é o código base64.

0

Partilhar esta mensagem


Link para a mensagem
Partilhar noutros sites

Crie uma conta ou ligue-se para comentar

Só membros podem comentar

Criar nova conta

Registe para ter uma conta na nossa comunidade. É fácil!


Registar nova conta

Entra

Já tem conta? Inicie sessão aqui.


Entrar Agora