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 4 of 4

Thread: E-MAil

  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    137
    Thanks
    5
    Thanked 0 Times in 0 Posts

    E-MAil

    How can i send an email in html format n get info about when it was read using PHP or some kind of programming

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    HTML requires a content type setting in the header paramaters:
    PHP Code:
    // Assume headers has stuff like the return address, but this really should probably go first:
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8\r\n"
    Hmm, as for tracking read notification, the best I can think of is to develop an access based image script, where you send a specifically linked image as a part of the body unique to this email so that it can be flagged from your site as read. Note as well, that most email clients will by default shut down remote image linking for purposes just like this.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    137
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Fou-Lu View Post
    HTML requires a content type setting in the header paramaters:
    PHP Code:
    // Assume headers has stuff like the return address, but this really should probably go first:
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8\r\n"
    Hmm, as for tracking read notification, the best I can think of is to develop an access based image script, where you send a specifically linked image as a part of the body unique to this email so that it can be flagged from your site as read. Note as well, that most email clients will by default shut down remote image linking for purposes just like this.

    thanx... is there any way...i can by pass those ppl to read the notification

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    To my knowledge, there is no way to force the browser to do anything like that (read receipts, force images, etc). That is why I suggest that the image be used.
    Now, there are ways to force them to view the image if they want to view the message. Generally, I don't consider doing such (I stick with accessibility where I can), but you can put all the text you want as a part of your image creation, and that will make them enable their images for the email in question. That image script can be used to determine if its already been viewed, and voila, auto receipt read
    Now, if you are not considered a 'trusted' site by the viewer of the email, it will result in them not showing their images and likely to never view your site again.
    I would suggest embedding a simple image that is created and unique to one specific email and stored with a database control. This will track the read if they allow it. I would not suggest making it so that they have to view the image, but that is a loss that you have to be willing to take.
    Find the middle ground, what you can do to give yourself the outcome you desire, while still maintaining the best interests if the users. If you don't keep the users best interests as a top priority, they will lose interest in you and without the users you have nothing but data bottlenecking the internet. Be willing to compromise, you may need to go without the read receipt sort of ability completely.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

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