Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post need help: how to send Rich-html Emails ?

    i wonder how to send Emails with some html ?

    maybe file attachment could work


  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just put a Content-Type: text/html line somewhere in the mail headers. i.e. if you've got a mail script already going which looks like this:

    Code:
    print MAIL "To: bob@domain.com\n";
    print MAIL "From: susan@somewhere.com\n";
    print MAIL "Subject: Monkey brains taste better in soup\n\n";
    print MAIL "Hello.";
    You'd just need a line going:

    Code:
    print MAIL "Content-type: text/html\n";
    before the main content starts.


  •  

    Posting Permissions

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