BBC BASIC for Windows
« Formatting email »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:55pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 hotthread  Author  Topic: Formatting email  (Read 3342 times)
Edja
Developer

member is offline

Avatar




PM


Posts: 60
xx Re: Formatting email
« Reply #13 on: Apr 4th, 2014, 10:00pm »

Quote:
your HTML appears to have no <html></html> tags. Is there some specific reason why
No specific reason. It just seemed the 'natural' way to proceed. I assumed the tags would be provided by PROCsendmailhtmlattach().

I admit that I was so eager to try it out that I overlooked the part of the WIKI article with the example code. I just copied the updated procedure and then coded the two functions FN_Compose_Plain and FN_Compose_Html.
Once it worked and after reporting back here on the forum I read the article again and discovered that I deviated from your example code. In the mean time I already modified the two functions and added the <html></html> tags

If it wouldn't have worked I would have looked at the article sooner to find out what was wrong and I would have seen the missing tags. But since my code also works without the tags, I now wonder if they are really required

Eddy
User IP Logged

rtr
Guest
xx Re: Formatting email
« Reply #14 on: Apr 4th, 2014, 10:37pm »

on Apr 4th, 2014, 10:00pm, Edja wrote:
But since my code also works without the tags, I now wonder if they are really required

So you've tried it with every email client that your recipients might be using? You have been busy! wink

Please forgive the sarcasm, but I'm sure you appreciate that 'trial and error' coding is no more acceptable in HTML than it is in BBC BASIC (indeed probably less so, because there's a greater variety of email clients and HTML rendering engines than BBC BASIC interpreters!).

The only certain way of determining whether the tags are required is to refer to the relevant RFC(s), but I think one can assume that if Thunderbird (for example) includes them then they are at least desirable.

Richard.
User IP Logged

Edja
Developer

member is offline

Avatar




PM


Posts: 60
xx Re: Formatting email
« Reply #15 on: Apr 5th, 2014, 08:33am »

I just raised the question out of curiosity and certainly not to suggest that the tags were not needed.
I'm completely in line with your views. That's why I already added the tags in my FN's.
As for 'trial and error' : I should know better. I do know better. But sometimes ...
Then on the other hand : penicillin and also the light bulb were discovered that way. I'm maybe destined to discover great thingscheesy

Eddy
User IP Logged

Pages: 1 2  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls