Closed Thread Icon

Topic awaiting preservation: HTML-emails (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=12661" title="Pages that link to Topic awaiting preservation: HTML-emails (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: HTML-emails <span class="small">(Page 1 of 1)</span>\

 
Sam
Bipolar (III) Inmate

From: Belgium
Insane since: Oct 2002

posted posted 03-20-2003 13:20

Hi all,

For a while now I'm sending properly formatted HTML mails to a mailinglist. 95% of the users can read the HTML-mails (logo's or gifs included) if they are online. But offline the logo's and pictures are not available. Does anyone know how I can send HTML emails with PHP, making sure the entire mail is visible offline? I suppose I have to make sure the mails contain the gifs (in attachment?) instead of pointing to a gif on the internet inside the html source code?

Thanks,
Sam

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-20-2003 14:35

exactly, that's what you need to do.

Now, don't ask me how to tell the email client to load the attachment...
adding the attachment is not that difficult if you have a mime-documentation handy.

so long,

Tyberius Prime

Sam
Bipolar (III) Inmate

From: Belgium
Insane since: Oct 2002

posted posted 03-20-2003 15:07

So I only have to attach the gifs I need in my HTML-code?
And the html code in my email changes from

code:
<img src="http://www.domain.com/logo.gif'>


to

code:
<img src="logo.gif'>


?
And the attachments need to have the correct name (in this case:"logo.gif") I suppose?


Ok, lets find out how I send mail with attachments in PHP.

Remark:
If this works I think this is not that clean because when my email points to 20 gifs, I need to create 20 attachment. If I was a user getting an email with 20 attachments, just necessary to view the mail offline, I wouldn't appreciate it.

Maybe you can hide attachments?


You see, I still need some reactions...

Thanks,
Sam


Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-20-2003 19:01

no, you can not hide attachments... and yes, I'm pretty much pissed whenever someon sends me email with images, being it attachments or not,
but alas for you, there are a couple of good librarys for doing this with php... just search one of the usual sites like http://phpclasses.org (or was in .net... I never can remember).

so long,

Tyberius Prime

Sam
Bipolar (III) Inmate

From: Belgium
Insane since: Oct 2002

posted posted 03-21-2003 07:53

I think the solution with the attachments, is a bad idea. Perhaps I need to detect internet connectivity at client side(with javascript?) and based on that displaying an email pointing to gifs on the internet or formatting my mails without gifs, only html (colored tables, formatted text, ...).

But how do I detect internet connectivity at the client side, inside the mail?

Sam

« BackwardsOnwards »

Show Forum Drop Down Menu