Any other PHP developers out there? -> IMAP question

Discussion in 'General Discussion Forum' started by Dan, Jun 3, 2005.



Share This Page

  1. Dan

    By:DanJun 3, 2005
    Kim Jong Dan
    Staff Member Administrator 2018 Tipping Competitor

    Joined:
    Jul 15, 2004
    Messages:
    34,385
    Likes Received:
    4,447
    Likes Given:
    1,465
    Ratings:
    +8,615 /136
    Hi all,

    I am currently developing an IMAP application. What I am trying to figure out without any resounding success is how to send a mail to INBOX.Sent at the same time as sending it.

    I can try BCC the email to myself then set up a "rule" to move it when it is found but that seems kind of long winded.

    Any ideas?

    cheers
    Danny
     
  2. Fro

    By:FroJun 3, 2005
    Well-Known Member

    Joined:
    Jul 15, 2004
    Messages:
    8,427
    Likes Received:
    188
    Likes Given:
    201
    Ratings:
    +302 /0
    no takers??

    Sorry Dan looks like everyone else has a life :)
     
  3. Dan

    By:DanJun 3, 2005
    Kim Jong Dan
    Staff Member Administrator 2018 Tipping Competitor

    Joined:
    Jul 15, 2004
    Messages:
    34,385
    Likes Received:
    4,447
    Likes Given:
    1,465
    Ratings:
    +8,615 /136
    lol.

    Its this or do real work!
     
  4. Fro

    By:FroJun 3, 2005
    Well-Known Member

    Joined:
    Jul 15, 2004
    Messages:
    8,427
    Likes Received:
    188
    Likes Given:
    201
    Ratings:
    +302 /0
    I'm the same way, and after all it is a friday
     
  5. Fluffy

    By:FluffyJun 3, 2005
    Well-Known Member

    Joined:
    Nov 12, 2004
    Messages:
    20,327
    Likes Received:
    1,842
    Likes Given:
    24
    Ratings:
    +6,602 /255
    Indivisual Military Appreciation Process on the net??

    Wow, but the one thing that gets me is where do i log in, last time i was in the bush there were too many internet cafes
     
  6. Dan

    By:DanJun 3, 2005
    Kim Jong Dan
    Staff Member Administrator 2018 Tipping Competitor

    Joined:
    Jul 15, 2004
    Messages:
    34,385
    Likes Received:
    4,447
    Likes Given:
    1,465
    Ratings:
    +8,615 /136
    no thanks to you guys i figured it out using IMAP_append()

    Code:
    <?php
    $stream = imap_open("{your.imap.host}INBOX.Sent", "username", "password");
    
    $check = imap_check($stream);
    echo "Msg Count before append: ". $check->Nmsgs . "\\n";
    
    imap_append($stream, "{your.imap.host}INBOX.Sent"
                       , "From: me@example.com\\r\\n"
                       . "To: you@example.com\\r\\n"
                       . "Subject: test\\r\\n"
                       . "\\r\\n"
                       . "this is a test message, please ignore\\r\\n"
                       );
    
    $check = imap_check($stream);
    echo "Msg Count after append : ". $check->Nmsgs . "\\n";
    
    imap_close($stream);
    ?> 
     
  7. Dan

    By:DanJun 3, 2005
    Kim Jong Dan
    Staff Member Administrator 2018 Tipping Competitor

    Joined:
    Jul 15, 2004
    Messages:
    34,385
    Likes Received:
    4,447
    Likes Given:
    1,465
    Ratings:
    +8,615 /136
    arrrrggghh code looksugly here
     
  8. Canteen Worker

    By:Canteen WorkerJun 3, 2005
    Well-Known Member

    Joined:
    Jul 15, 2004
    Messages:
    13,244
    Likes Received:
    187
    Likes Given:
    100
    Ratings:
    +215 /5
    Code looks ugly anywhere!!!
     
  9. Fro

    By:FroJun 3, 2005
    Well-Known Member

    Joined:
    Jul 15, 2004
    Messages:
    8,427
    Likes Received:
    188
    Likes Given:
    201
    Ratings:
    +302 /0
    Well I'll sure sleep better now knowing that problem has been solved

    Now what do we do about global warming........................ :lol: :lol:
     
  10. Dan

    By:DanJun 3, 2005
    Kim Jong Dan
    Staff Member Administrator 2018 Tipping Competitor

    Joined:
    Jul 15, 2004
    Messages:
    34,385
    Likes Received:
    4,447
    Likes Given:
    1,465
    Ratings:
    +8,615 /136
    Global warming can be solved in 1 of 3 ways

    1 - We build a giant fan!
    2 - We build a giant airconditionar
    3 - Everyone in the world leaves their fridge and freezer doors open for 1 day every month.

    that should cool things down a bit
     
  11. Fro

    By:FroJun 3, 2005
    Well-Known Member

    Joined:
    Jul 15, 2004
    Messages:
    8,427
    Likes Received:
    188
    Likes Given:
    201
    Ratings:
    +302 /0
    see now your on a roll

    try manlys centre problems next, theres a challenge worthy of your skills
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
Top