Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

svkrzn

macrumors regular
Original poster
Dec 8, 2009
225
9
Australia
Hello, so i did this html signature:
Schermata%2009-2455812%20alle%2018.05.14.png


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:
Schermata%2009-2455812%20alle%2018.08.52.png


But as soon as i attach it to my new email, the image won't display. What's wrong?
Schermata%2009-2455812%20alle%2018.09.09.png
 

Mal

macrumors 603
Jan 6, 2002
6,252
18
Orlando
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
 

svkrzn

macrumors regular
Original poster
Dec 8, 2009
225
9
Australia
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...
 
Last edited:

Mal

macrumors 603
Jan 6, 2002
6,252
18
Orlando
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
 

svkrzn

macrumors regular
Original poster
Dec 8, 2009
225
9
Australia
That's where the webarchive was before you copied into your signatures.


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.
 

svkrzn

macrumors regular
Original poster
Dec 8, 2009
225
9
Australia
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.