Em Andamento

PHP Email Filter and Forward

This is the php code that needs to be working:

// email account to retrieve email from

$server = "[url removed, login to view]";

$username = "jmaher";

$password = "";

// i'll give my password to the developer who does this project

// there is a web based interface for this email account, you may want to use for testing

// email account to resend mail to

$recipient = "jonbmaher?[url removed, login to view]";

// this i can't give you access to, maybe you can send messages to your own email account for testing

// List valid email senders

$names[0] = "Maher, Richard";

$addresses[0] = "[url removed, login to view]";

$names[1] = "Maher, Jonathan";

$addresses[1] = "jmaher?[url removed, login to view]";

// file containing all email messages ever read from my account

$file = fopen("[url removed, login to view]", "w+");

// connection to my email account

$connection = imap_open("{[url removed, login to view]}INBOX", "jmaher", "blink182");

// list of email messages

$messages = imap_headers($connection);

// for each email message

for ($i = 0; $i < count($messages); $i++)


// write the entire message with headers to the storage file

fputs($file, $message[$i]);

// for each valid email address

for ($j = 0; $j < count($names); $j++)


// if this messages email addresses matches one of my listings

// send it to my other email address

// reformat the senders name, using the name I have listed above

if ($addresses[$j] == $address)


$sender = $names[$j] . "<" . $addresses[$j] . ">";

$subject = strtolower($subject);

$message = striptags($message);

email($recipient, $subject, $message, "FROM: " . $sender);




// leave this commented out for now, but i want it to work later

// when done retrieving messages, expunge all messages from the inbox



## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

php, windows, redhat linux

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: web developer names, tmo blackberry, subject php, software developer names, php developer source, email sender software, php code program, valid email, redhat s, maher, forward, email distribution, email file sender, edu email, blackberry email, edu address, forward bid, emails txt file list, windows file filter, email distribution list, blackberry filter, php read txt, want valid email list, retrieve email, blackberry name

Acerca do Empregador:
( 24 comentários ) United States

ID do Projeto: #2975110

Premiar a:


See private message.

$17 USD em 2 dias
(65 Avaliações)

4 freelancers estão ofertando em média $14 para este trabalho


See private message.

$12.75 USD in 2 dias
(117 Comentários)

See private message.

$8.5 USD in 2 dias
(4 Comentários)

See private message.

$17 USD in 2 dias
(0 Comentários)