www.webdeveloper.com
Results 1 to 12 of 12

Thread: [RESOLVED] HTML Where am I going wrong?

  1. #1
    Join Date
    Apr 2010
    Posts
    8

    resolved [RESOLVED] HTML Where am I going wrong?

    I am trying to write a HTML newsletter, but when I send it it just sends as code. Can you tell me what I am doing wrong please.


    <html>

    <CENTER><img src="http://www.gotlingerie.net/images/m

    <CENTER><font size="4">Got Lingerie is now under new management. Make sure you go and have a look around at all our great products. You can now become a fan on Facebook and follow us on Twitter by clicking on the links at the bottom of this email. Feel free to send us suggested catorgries or products you'd like to see.</font></CENTER>




    <CENTER><a href="http://www.facebook.com/pages/Got- TARGET="_blank"><img src="http://www.buttonshut.com/Facebook- title="Facebook Buttons By ButtonsHut.com" alt="Facebook Buttons By ButtonsHut.com" width="116px" border="0"/></a>
    <font size="1"><a href="http://www.buttonshut.com/Twitter- Buttons</a></font></CENTER>

    <CENTER><a href="http://twitter.com/GotLingerie" TARGET="_blank"><img src="http://www.buttonshut.com/Twitter-B title="Facebook Buttons By ButtonsHut.com" alt="Facebook Buttons By ButtonsHut.com" width="105px" border="0"/></a>
    <font size="1"><a href="http://www.buttonshut.com/Twitter- Buttons</a></font></CENTER>

    </html>

    Thanks for your help

  2. #2
    Join Date
    Apr 2010
    Posts
    213
    I see a couple of things missing.

    You should have a header of sorts, including:
    Content-type: text/html: CHARSET=US-ASCII
    Content-transfer-encoding: 7BIT

    Also, you are missing the <body></body> tags just inside the <html> and </html>.

    I don't think most email clients require much more than that, but I could be wrong.

    Good luck,

    Chipzzz

  3. #3
    Join Date
    Apr 2010
    Posts
    213
    Sorry, the first header should have been:
    Content-type: text/html; CHARSET=US-ASCII

  4. #4
    Join Date
    Apr 2010
    Posts
    8
    I dont mean to sound like an idiot but...
    Ive now got the <body></body> inside the <html> but could you try and explain about how and where I should put the headers,
    Thanks you

  5. #5
    Join Date
    Apr 2010
    Posts
    213

    Sorry

    Sorry, try this:

    Code:
    Content-type: text/html; CHARSET=US-ASCII
    Content-transfer-encoding: 7BIT
    
    <html>
    <body>
    
    <CENTER><img src="http://www.gotlingerie.net/images/m
    
    <CENTER><font size="4">Got Lingerie is now under new management. Make sure you go and have a look around at all our great products. You can now become a fan on Facebook and follow us on Twitter by clicking on the links at the bottom of this email. Feel free to send us suggested catorgries or products you'd like to see.</font></CENTER>
    
    
    
    
    <CENTER><a href="http://www.facebook.com/pages/Got- TARGET="_blank"><img src="http://www.buttonshut.com/Facebook- title="Facebook Buttons By ButtonsHut.com" alt="Facebook Buttons By ButtonsHut.com" width="116px" border="0"/></a>
    <font size="1"><a href="http://www.buttonshut.com/Twitter- Buttons</a></font></CENTER>
    
    <CENTER><a href="http://twitter.com/GotLingerie" TARGET="_blank"><img src="http://www.buttonshut.com/Twitter-B title="Facebook Buttons By ButtonsHut.com" alt="Facebook Buttons By ButtonsHut.com" width="105px" border="0"/></a>
    <font size="1"><a href="http://www.buttonshut.com/Twitter- Buttons</a></font></CENTER>
    </body>
    </html>
    Best of luck,

    Chipzzz

  6. #6
    Join Date
    Apr 2010
    Posts
    8
    No its still not working for me

  7. #7
    Join Date
    Apr 2010
    Posts
    8
    It works when I press preview, but that worked first time before I tried your suggestion. Just when it sends it comes through as code.

  8. #8
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,105
    Are you sending it through Outlook? It's best to send through a program such as Constant Contact or Mail Chimp.

  9. #9
    Join Date
    Apr 2010
    Posts
    8
    Thanks Chipzzz and cbVision, Ive just signed up for mail chimp and got then sent off now, cheers for both of your help

  10. #10
    Join Date
    Apr 2010
    Posts
    213
    Sorry it couldn't be done client-side. Glad you found a work-around, though.

    Good luck with your newsletter.

    Chipzzz

  11. #11
    Join Date
    Mar 2010
    Posts
    10
    remember that on email newsletter, make sure that all your images are named with no spaces as they will not display properly

  12. #12
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,198
    If you had Outlook, Outlook Express or the new Windows Mail, you could have edited in Source and inserted everything you needed for content between the "div" tags. All the other code including MIME type would have been there already.

    Many people don't know that you can insert HTML inside the actual email coding. It's the way I send videos by putting in the actual media code. You can only do this after you have clicked Compose/Create New Mail for new mail to be sent. Look under View menu and select Source Edit.

    Other options...

    HTML EMail:

    G-Lock EasyMail: http://www.glockeasymail.com/

    How to Code HTML Email Newsletters: http://articles.sitepoint.com/articl...il-newsletters

    How to Create and Send HTML Email: http://www.addme.com/newsletters/issue293.htm

    Email Marketing Articles and Guides: http://www.mailchimp.com/articles/st...sign-mistakes/

    How to Create and Send HTML Email: http://www.addme.com/newsletters/issue293.htm

    How to Create Great HTML Emails with CSS: http://www.webreference.com/programming/css_html/

    30 Free HTML email templates: http://www.campaignmonitor.com/templates/

    How do you typically create HTML email?: http://webdesign.about.com/b/2008/10...html-email.htm

    Google: http://www.google.com/search?q=HTML+...ient=firefox-a

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles