Mail.app - Can't get image inside the HTML signature to work!

Discussion in 'Mac Apps and Mac App Store' started by svkrzn, Sep 7, 2011.

  1. svkrzn macrumors regular

    Joined:
    Dec 8, 2009
    #1
    Hello, so i did this html signature:
    [​IMG]

    Code:
    <table width="220" height="75" cellspacing="0" cellpadding="0" border="0" style="border: 1px solid #e7e7d4;">
    	<tr>
    		<td width="75" bgcolor="#FFFFFF"><img src="siglogo.png" width="75" height="75" style="vertical-align:middle;" alt="Rispetta l'ambiente" border="0"></a></td>
    		<td width="180" bgcolor="#ffffff" style="padding-left: 12px; font-family: Helvetica; font-size: 12px; line-height: 15px;">
    			<div style="margin-top: 2px; color: #594b38; font-size: 13px; line-height: 16px; font-weight: bold;">...........</div>
    			<div style="color: #a3d06c; font-style: italic;"></div>
    			<div style="color: #a09f6c; font-size: 11px; line-height: 14px;"></div>
    			<div style="height: 8px; line-height: 8px;"> </div>
    			<div style="color: #594b38; font-size: 11px; line-height: 14px;"></div>
    			<div style="font-size: 11px; line-height: 14px;"><a style="color: #00008B; text-decoration: none;" href="mailto:...........">........</a></div>
    		</td>
    	</tr>
    </table>
    I opened the HTML in Safari and saved it as WEBARCHIVE. I put it inside the Signatures folder in my Mail.app library and opened mail, it works:
    [​IMG]

    But as soon as i attach it to my new email, the image won't display. What's wrong?
    [​IMG]
     
  2. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #2
    That's because the image no longer exists as far as Mail is concerned. You need that image to be hosted online somewhere, and you need to have the full absolute URL to it, not just the name of the image. It's looking in the same directory as the email message, so it obviously doesn't find anything.

    Basically, upload the picture to somewhere online (that supports hotlinking) and get the full URL to it (including the http: part), and replace the src="siglogo.png" with that URL (just the underlined part between the quotes, obviously).

    jW
     
  3. svkrzn, Sep 7, 2011
    Last edited: Sep 7, 2011

    svkrzn thread starter macrumors regular

    Joined:
    Dec 8, 2009
    #3
    Mmm actually the image is in the same folder as the webarchive (signatures folder). Why doesn't mail attach the image when i compose a new mail?Thunderbird does it as far as the image is in the same directory as HTML signature does.


    And actually, i created a new signature by copying the locally opened in safary image, into the new signature and it works.


    So what's the problem with doing it manually...
     
  4. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #4
    That's where the webarchive was before you copied into your signatures. That's not where it is or where it will reside later.

    Unless someone has another solution, the above is the only way I've ever heard to make that work.

    jW
     
  5. svkrzn thread starter macrumors regular

    Joined:
    Dec 8, 2009
    #5

    I explain it better: i created the HTML file inside the Signatures folder and so the image is inside that folder too. I opened the HTML and converted it to Webarchive from the same folder - signatures. I never moved it.

    But i gonna try your solution by uploading the image online.
     
  6. svkrzn thread starter macrumors regular

    Joined:
    Dec 8, 2009
    #6
    Ok, so if i use the http url for the image, it works fine, the problem is that some clients doesn't load external images and you get the blank signature.

    I found that copying the image from safari and pasting it inside the Mail, it works fine. Seems that letting Mail managing html it's a better solution, but here comes another problem:

    If i send any mail with text inside and attach the signature with or without the image, everything works. If i add an attachment (zip, pdf etc..), the recipient of my email recieves 2 attachments - the first is the file i attached and the second is an HTML file called Part1.2.3.html or Part1.2.6.html containing this:

    Code:
    <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></body></html>

    How do i get rid of the second HTML attachment? What am i doing wrong?
     

Share This Page