Results 1 to 7 of 7

 

Thread: html email, how would one send one

  1. #1
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts


    okay, im okay with php. get the whole php mail function and have a list of email addresses.

    I think i have to add some MIME (?) types or something in the headers. and then do I just paste html into the email message?

    So its like a html page source pasted into where the email is?
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  2. #2
    Member

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Try using HTML Mime Mail. It's some PHP class that do it all for you. You feed it the html and a text version, and then complies the mime for you.

    http://www.phpguru.org/static/mime.mail.html

    I have used for lots of projects, works well!

  3. #3
    aka Antony

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    966
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I learnt from this tutorial

    http://www.phpnoise.com/tutorials/12/1

  4. #4
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    thanks 999gi, was just looking for the content type header thing.

    so html emails dont have a head? ie <html><body></body><html>

    ?

    ta cooperson, looks good but I prefer to write stuff myself. not sure why, just prefer to know everything thats goin off
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  5. #5
    Avoiding real work

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Buckinghamshire
    Posts
    1,373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look here Dan -

    http://us2.php.net/manual/en/function.mail.php

    Example 4 should give you everything you need.
    Those who can do, those who can't talk about it

  6. #6
    Member

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts
    morleymouse,

    MIME is pretty hardcore stuff mind you...

    The tutorial above uses the MIME class that comes with PAIR, same class in theory .

    But, if you do want to write your own MIME class here is the MIME RFC (2045), http://www.faqs.org/rfcs/rfc2045.html happy reading

  7. #7
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    i only want to send pretty emails
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays



Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2