yahoo email address stripping out format

Hi,

Does anyone have any experience with BTInternet (run on Yahoo) and or Yahoo email?

It seems that both stip out the contents of my confirmation emails, received once a customer has purchased something through the website.

Does either have an accept sending as friendly email? Like Hotmail and therefore except HTML/Formated emails?
wood1eAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HackneyCabCommented:
I use Yahoo! mail (though I use a POP3 client, Mozilla Thunderbird, to download the mail to my machine, rather than browsing the mail on the Yahoo! mail site).

I receive HTML email messages fine, even when Yahoo! has marked them as [Bulk].

When you say that the content of your messages has been stripped out, what exactly is missing, and what exactly is still there?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wood1eAuthor Commented:
The entire contents of the email is missing.

I have attached a couple of screenshots to show you what I mean.

no-content.jpg
0
wood1eAuthor Commented:
Sorry and second image

The first image is off the email I received after making a purcahse.

The second image is a confirmation email sent to my main email address after a previous purchase. I forwarded this to my Yahoo Email account to see what would happen.

And as you can see the data information is shown.

So why would the confirmation sent directly to the Yahoo account be blank? ie stripped by Yahoo of all information!! :)
approx.jpg
0
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

HackneyCabCommented:
Is the email generated by your own code? If so, I suspect maybe you've got an error in your MIME encoding of the HTML part of the message.

Are you able to share the source code of a message (minus sensitive data). If the MIME boundaries aren't defined or used correctly, it's possible that Yahoo! is simply refusing to render it, but your main email client is making a best-guess render of it, and then correcting the error before sending it on to Yahoo!
0
wood1eAuthor Commented:
HI

I have access to the pages generating the email.  The data comes from a database. Then on purchse the email gets sent out.

Someone else developed the Email confirmation and how it works. I do not have the files to hand at the moment I will post tomorrow :)
0
wood1eAuthor Commented:
Hi, I have some files but I am not 100% sure which is which, there is a confirmation.html that contains the coding for where the data is pulled from.  PLus there is a file called class.html.mime.mail.inc not sure if that is connected?

But I have attached:

class.html.mime.mail.inc and
mail_attachment.php


class.html.mime.inc.txt
mail-attachement.txt
0
wood1eAuthor Commented:
PS hopefully there is nothing too revealing in the files :)  And hopefully they are the files you meant.


0
HackneyCabCommented:
Well, that mail class looks like a solidly produced piece of work, and I can't see anything wrong with the MIME boundary part of it. You might want to ask community support to delete the file, though, as it contains email addresses of its developers, and they may not appreciate that being public.

Can you attach the source code of one of these emails which was received by your non-Yahoo! account? That might offer more clues as to what's going on.
0
wood1eAuthor Commented:
this is the confirmation email that gets sent out.
confirmation.html
0
HackneyCabCommented:
Do you have the complete source code for one of the emails? I need to take a look at the email headers, and see whether the MIME boundaries are appearing correctly.
0
wood1eAuthor Commented:
Not sure how to find them? As the confirmation email is sent to customers.  Obviously I don't have one in my yahoo account.

But I do have one that was forwarded to me by partner.  Will this have headers etc?  Do you know how to get source code to appear in a yahoo email?
0
HackneyCabCommented:
I don't know if Yahoo! webmail has an option to view source code, but if you're using Mozilla Thunderbird you can just go to the View menu and then "Message Source" and it'll show you the entire text of the email source, with all headers.
0
wood1eAuthor Commented:
Found view source

Although this is a forwarded mail so I am not sure how clear the information you want will be.
headers.txt
0
HackneyCabCommented:
Sorry, but I need the whole message, headers and body. The headers define the MIME boundary, and I want to see whether the boundary is split into parts using the boundary.
0
wood1eAuthor Commented:
NOw that is going to be fun!! So would you like the full headers and body of a success email confirmation?

In which case I will make a purchase tomorrow to an email account where I use Thunderbird :)
0
HackneyCabCommented:
Yes. And remember to replace any sensitive text with xxxxx (but don't modify anything structurally).
0
wood1eAuthor Commented:
Hi, I was able to forward to my gamil account, where I now think I have everything for you...If not I will try again :)
contents.txt
0
Dave BaldwinFixer of ProblemsCommented:
I see a lot of Microsoft Word style formatting in the HTML part of the email.  I'm sure Yahoo will remove anything that affects the web formatting.  And I'm pretty sure Yahoo doesn't understand Word.
0
wood1eAuthor Commented:
Could you point some out?  

It should just be HTML formatting, as in the conformation.html page?
0
HackneyCabCommented:
Using a quoted-printable decoder, it seems that the HTML markup is quite badly broken.

For instance, the first few lines look like the code snippet below. Line breaks are occurring in the middle of tag names, and while line breaks can appear in the middle of tags, I don't believe it's permitted for a break to occur in the middle of a tag or attribute name.

Also, you have two style elements appearing in the body element, when it should only be one style element appearing within the head element of the HTML document.

And the whole style element has been commented out. (Possibly this is to avoid older browsers trying to use it, so it may not be a problem.)

Possibly some mail clients will auto-fix these problems (which they shouldn't because it just leads to a false sense of security for developers), but Yahoo! is seeing the broken HTML and choosing not to render it at all.
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></he
ad><body><div style="font-family:times new roman, new york, times, serif;
font-size:12pt"><DIV><BR></DIV>
<DIV style="FONT-FAMILY: times new roma
n, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMIL
Y: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2
 face=Tahoma>----- Forwarded Message ----<BR><B><SPAN style="FONT-WEIGH
T: bold">From:</SPAN></B> Rob Wood <xxx@xxx.co.uk><BR><
B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> xxxx <xxx
xx@xxx.co.uk><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B
> Tue, 13 April, 2010 14:54:04<BR><B><SPAN style="FONT-WEIGHT: bold">Subj
ect:</SPAN></B> Fwd: RE: FW: Purchase list<BR></FONT><BR>

Open in new window

0
wood1eAuthor Commented:
So the code must be coming from the confirmation.html page...this being the actual page that should be sent with all the purcahse info on it.  

If I clean up the code in there as there is a lot of styles attahed to each line of html page.  would that help?

I can't see things like this in the page itself.

[code]
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></he
ad><body><div style="font-family:times new roman, new york, times, serif;
font-size:12pt"><DIV><BR></DIV>

[/code]

Where would I find that?
0
wood1eAuthor Commented:
PS I presume I cannot use CSS in a external file? Do to it being emailed?
0
HackneyCabCommented:
You need to find out why some tags are being split over lines (such as the </head> closing tag in the code snippet) and move all of the CSS styles into the style element which appears inside the head element. (The style element visible in the code snippet is fine, my comments were referring to the two later style blocks which appear within the body element.)

I don't believe it's possible to use external CSS in a file, though you may be able to refer to external CSS at a URL which is publicly accessible. Test that carefully, though. I'd recommend just keeping the CSS styles in the HTML source in the email.
0
wood1eAuthor Commented:
I am confused, if the coding that has split lines, is not in the confirmation.html where the hell is it?!!

Most confusing!! :)
0
Dave BaldwinFixer of ProblemsCommented:
Did you open the contents.txt in Microsoft Word?  Or maybe Outlook?  That's the only I know that some of that code would get in there.
0
HackneyCabCommented:
I have to say that I'm not seeing a strong match between confirmation.html and the full message source you posted here.

Are you sure that confirmation.html is actually used to produce the resulting email? A lot of tags (such as b bold tags) in the actual email are not found in confirmation.html.
0
Dave BaldwinFixer of ProblemsCommented:
Ok, just for a test, I used Outlook Express to send the confirmation.html to my Yahoo account and back.  It displayed just fine.  Something has 'processed' the text in 'contents.txt' other than Yahoo.  I still think it's been thru Microsoft Word or something similar because I think only a print application would put the Panose font information in the file.  And HackneyCab points out that there are tags in 'contents.txt' that aren't in 'confirmation.html'.

I looked at 'contents.txt' again and this is a reply from someone at the company, probably thru Oulook.
0
wood1eAuthor Commented:
@ DaveBaldwin, I have tried that and it works, the contents.txt are what I forwarded to my yahoo account, and that displays fine...apart from all the forward information.

But when the confirmation email is sent directly to Yahoo it displays a blank page.

I wil check with the original developers what actuall files drive the confirmation email.  And that confirmation.html email is the actual page/email that is sent, although that bit I am sure off.

The bit I am confused about is if confirmation.html is the page/email format, then where is the 'B' as an example coming from!!

Will let you know when I hear back from developers.
0
wood1eAuthor Commented:
Have just opened in Word and it displays fine?
word.jpg
0
Dave BaldwinFixer of ProblemsCommented:
Yes, but if you Save As from Word as HTML and then compare it to the original, you'll find that Word has added a lot to it.  And take what is a blank message on Yahoo and forward that to yourself and see what's there.

HTML is a problem with many email clients.  Web clients, Yahoo, Gmail, and Hotmail for example, reformat what they display so that it does not break Their pages that surround the email.  I imagine other webmail programs like Comcast's Zimbra do the same.  In this day of XHTML and CSS, HTML email works best as simple HTML with tables for postioning and a minimum of CSS.
0
wood1eAuthor Commented:
I will forward my actual confirmation to a different email account and view the source.

This is all strange as there is little HTML in the confirmation.html email.  There a table, where the data gets placed and some styling on TR and TD tags.

So where on earth these tags spliting content come from I have no idea.  although I have just noticed that the <table> is not closed off.  THere is a missing </table>

Anyway I will have a look at the actual blank confirmation.html email I recieved at yahoo account, once I have forwarded it on.
0
HackneyCabCommented:
Failing to close off a table sounds like a very good reason why some rendering engines would leave the page blank. But all of the problems need addressing, because even if you get it working in Yahoo! there could be an even fussier rendering engine used by another mail interface.
0
wood1eAuthor Commented:
sorry for the delay in respnding something else came up :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.