Any other PHP developers out there? -> IMAP question

  • We had an issue with background services between march 10th and 15th or there about. This meant the payment services were not linking to automatic upgrades. If you paid for premium membership and are still seeing ads please let me know and the email you used against PayPal and I cam manually verify and upgrade your account.
  • We have been getting regular requests for users who have been locked out of their accounts because they have changed email adresses over the lifetime of their accounts. Please make sure the email address under your account is your current and correct email address in order to avoid this in the future. You can set your email address at https://silvertails.net/account/account-details
  • Wwe are currently experience some server issues which I am working through and hoping to resolve soon, Please bare with me whilst I work through making some changes and possible intermittent outages.
  • Apologies all our server was runing rogue. I managed to get us back to a point from 2:45 today though there is an attachment issue i will fix shortly. Things should be smooth now though

Dan

Kim Jong Dan
Staff member
Administrator
Tipping Member
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
 

Fluffy

Journey Man
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
 

Dan

Kim Jong Dan
Staff member
Administrator
Tipping Member
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: [email protected]\\r\\n"
                   . "To: [email protected]\\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);
?>
 

Fro

First Grader
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: [email protected]\r\n\"
                   . \"To: [email protected]\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);
?>

Well I'll sure sleep better now knowing that problem has been solved

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

Dan

Kim Jong Dan
Staff member
Administrator
Tipping Member
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
 

Fro

First Grader
see now your on a roll

try manlys centre problems next, theres a challenge worthy of your skills
 

Members online

Latest posts

Team P W L PD Pts
13 10 3 97 24
14 10 4 118 22
14 10 4 78 22
13 8 5 66 20
14 8 6 143 18
13 7 6 81 18
13 7 6 -55 18
14 7 6 42 17
14 7 7 37 16
15 8 7 -8 16
14 7 7 -50 16
14 6 7 13 15
14 6 8 -55 14
13 4 9 -126 12
14 4 10 -121 10
13 3 10 -129 10
13 3 10 -131 10
Back
Top Bottom