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 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    E-mail date manipulation

    Hi. I was wondering if there is in any way we can sort of manipulate the date of an outgoing e-mail. For instance, if I send an e-mail to someone from my web-based form on Saturday, is it possible for showing up there on his inbox as if I sent it on Friday? If it is possible, I think it would be done in PHP, that's why I posted here.
    Mr. H
    Programmer-at-large.
    "Programming is like sex. One mistake and you have to support it for the rest of your life."

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    ....thing is , the receipt time at the destination mail server however is always going to be saturday, and anyone who has half a clue can find this out easily enough, ok a mail can bounce around a little but its rare for an hour to pass let alone a day before delivery, so don't mess unless you are prepared to be caught out
    Last edited by firepages; 04-03-2003 at 06:51 PM.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm prepared. Here is the simple PHP e-mail code. What do I do now?

    <?php
    $to = "myemail@domain.com";
    $extra = "From: $email\r\nReply-To: $email\r\n";
    $mess = "This is from: ".$name."(".$REMOTE_ADDR.")\n\n".$message;
    mail ($to, $subject, $mess, $extra);
    echo("Email has been sent.\n");
    ?>
    Mr. H
    Programmer-at-large.
    "Programming is like sex. One mistake and you have to support it for the rest of your life."

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Why do you need to change the date?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just some minor reasons. But is it possible?
    Mr. H
    Programmer-at-large.
    "Programming is like sex. One mistake and you have to support it for the rest of your life."

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Well honestly I cannot see a legitimate reason for wanting to do this. Sounds suspiciously illegal to me. Firepages was hinting at that earlier. I will ask again, why exactly do you need to do this?
    Last edited by Spookster; 04-04-2003 at 05:45 AM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Illegal? No. It's just a simple homework assignment.

    I don't mean anything illegal.
    Last edited by megahertzman; 04-04-2003 at 06:50 AM.
    Mr. H
    Programmer-at-large.
    "Programming is like sex. One mistake and you have to support it for the rest of your life."


  •  

    Posting Permissions

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