Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • what is best php or html? (In: General Search Engine Optimization)
  • How do I get rid of the trailing "/index.html" (In: Yahoo!)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    There are 0 guests and 1 members in the forums right now.
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    litmania
    Joined: Aug 27, 2000
    # Posts: 193

    View the profile for litmania Send litmania a private message

    Posted: 2001-Oct-03 22:48
    Edit Message Delete Message Reply to this message

    Following on from this strand, I was asked to post my query in this part of the forum instead.

    First of all, I would like to thank Baffled very much for his helpful response. I have perused Google for info. on MIME types... but am no closer to working out what I'm doing wrong.

    From what I have learnt, HTML messages should have content="text/html... in the header. Well mine does.

    If I may quote the first few lines of my newsletter:

    code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><TITLE>1Lit - Oct 01 - Attack on America - Special Issue</TITLE>


    <META http-equiv=Content-Type content="text/html; charset=windows-1252">

    <META content="MSHTML 5.50.4207.2601" name=GENERATOR></HEAD>
    <BODY>
    <base target="_blank">

    <TABLE cellSpacing=0 cellPadding=0 width=600 border=0>
    <TBODY>
    <TR>


    Any idea what is wrong please? Why did I get the email message complaining my newsletter couldn't be read and the "HTML [needs to be put] in the correct MIME format"? Thanks for your help.



    Ron C
    Joined: Jul 23, 1999
    # Posts: 1468

    View the profile for Ron C Send Ron C a private message

    Posted: 2001-Oct-03 23:58
    Edit Message Delete Message Reply to this message

    Er, that's not the Header they mean...

    Here's the pertinent lines from my script:

    print MAIL "To: $to\n";
    print MAIL "From: $fromaddr\n";
    print MAIL "Reply-to: $replyaddr\n" if $replyaddr;
    print MAIL "X-Mailer: NetPoets Socket Mailer\n";
    print MAIL "Content-type: text/html\n;
    print MAIL "Subject: $subject\n\n";
    print MAIL "$message";
    print MAIL "\n.\n\n";




    litmania
    Joined: Aug 27, 2000
    # Posts: 193

    View the profile for litmania Send litmania a private message

    Posted: 2001-Oct-10 10:16
    Edit Message Delete Message Reply to this message

    Thank you very much for your reply, Ron C.

    Sorry. Where do we add the 'print MAIL' lines? In the header section of our HTML newsletter? Or elsewhere?



    Ron C
    Joined: Jul 23, 1999
    # Posts: 1468

    View the profile for Ron C Send Ron C a private message

    Posted: 2001-Oct-10 12:18
    Edit Message Delete Message Reply to this message

    The code sample above is from a Perl script I use in a number of applications, including newsletters. Where YOU build the contents of the email header will depend on how you’re getting your newsletter out the door.



    St0n3y
    Joined: May 01, 2002
    # Posts: 1620

    View the profile for St0n3y Send St0n3y a private message

    Posted: 2004-Nov-10 22:54
    Edit Message Delete Message Reply to this message

    I'm looking all over the place but cannot find what I'm looking for. Several years back I remember sending out html emails from a text only client by simply putting a tag above the <html>.

    does anybody know what this tag is as I'm trying to do the same now. Maybe I'm off my rocker and this isn't possible, but that's what the ol' noggin is telling me!



    g1smd
    Staff
    Joined: Jul 28, 2002
    # Posts: 10418

    View the profile for g1smd Send g1smd a private message

    Posted: 2004-Nov-11 20:37
    Edit Message Delete Message Reply to this message

    What are you using to SEND the newsletter out?




    St0n3y
    Joined: May 01, 2002
    # Posts: 1620

    View the profile for St0n3y Send St0n3y a private message

    Posted: 2004-Nov-12 16:28
    Edit Message Delete Message Reply to this message

    not a newsletter, just an email that we want to use html formatting. We are testing Arelis.



    Ron C
    Joined: Jul 23, 1999
    # Posts: 1468

    View the profile for Ron C Send Ron C a private message

    Posted: 2004-Nov-12 23:38
    Edit Message Delete Message Reply to this message

    I doubt that simply adding a tag to the start of your message would suffice.

    Look back at the code I posted three years ago. The first six lines are part of the email header area, and are used to manage the email document. It's not much different than an HTML page header, where the <HEAD> manages the document, but generally is not part of the page. The doctype, meta-keywords, etc., are things the browser cares about, but the visitor to the page doesn't. It's the same with email headers. And, just like with the HTML <HEAD> area, there can be a random number of email header "tags" and they can come in any order.

    So, how does the email client know what is part of the email header and what is part of the message?

    Again, look at the code and this time notice that the Subject ends with two hard line breaks (\n\n), whereas all header lines before that end with a single line break. THAT is how email programs know the header part has ended and the message will begin. With that in mind, adding something to the beginning of your message won't generally have any impact on the way the email is transmitted. By the time the email program sees your addition, it has already processed all the email headers.

    That's not to say, however, that what you remember doing several years ago didn't happen. I would guess that particular email client let you manipulate the email headers in a non-standard way, by putting something in the message to tell it when you wanted to send HTML. You probably won't ever find another client, though, that will do it the same way.

    Arelis uses frames, making it difficult to give a direct link, but if you go to This Page and look in the left menu frame in the "How do I ..." section, you should be able to find the answer to your question.

    According to their own documentation, "Currently, ARELIS does not support sending HTML formatted email messages."

    Bummer. smile



    St0n3y
    Joined: May 01, 2002
    # Posts: 1620

    View the profile for St0n3y Send St0n3y a private message

    Posted: 2004-Nov-16 21:28
    Edit Message Delete Message Reply to this message

    Thanks Ron. It was so long ago that I may not remember what I think I remember remembering.



    g1smd
    Staff
    Joined: Jul 28, 2002
    # Posts: 10418

    View the profile for g1smd Send g1smd a private message

    Posted: 2004-Nov-16 23:12
    Edit Message Delete Message Reply to this message

    I hate inline HTML email.

    I'd far rather receive plain text, or if it has to be an HTML file, then have it as an attachment.

    If there are images too, then a ZIP file containing the lot is far more friendly.


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions