Devam Ediyor

Email Piping Code

We require a Email Piping script to process emails. This should not be complicated for experienced coders as there is already a good base of sample code out there and this is not a new concept.

A hosted website with Cpanel allows the administrator to specify account level email filtering, and one option is to pipe all emails to a program.

Below is the pseudo code. Variables are to be used wherever indicated or [url removed, login to view] Piping Script Pseudo Code

// Pseudo Code Notation

//

// $NAME = a variable containing data

//

// Pseudo code starts here

READ email // usually email sent from stdin

// GLOBAL FIXED VALUES

$Email_eval = email address of evaluator

$Email_responder = email address of responder

$Email_manual = email address of manual

$Email_other_responder1 = email address of other responder1

$Email_other_responder2 = email address of other responder2

$Email_other_responder3 = email address of other responder3

$Email_main = email address of company main

$cc = cc email address

$bcc = bcc email address

$Employee_email1 = email address of employee 1

$Employee_code1 = user code of employee 1 , 6 alphanumeric values

$Employee_email2 = email address of employee 2

$Employee_code2 = user code of employee 2 , 6 alphanumeric values

$Employee_email3 = email address of employee 3

$Employee_code3 = user code of employee 3 , 6 alphanumeric values

// Parse all the header values

$from = sender of email;

$to = recipients of email

$cc = cc recipients of email

$no_rec = number of recipients

$to1 = recipient 1 // parsed from header

$to2 = recipient 2 // parsed

$to3 = recipient 3 // parsed etc …

$subject = email subject;

$headers =;

$message = body of message;

//===========================================================

// email from employees

If $from = $Employee_email1 // or case statement

Then {

append $Employee_code1 to end of $subject

IF $subject contains MANUAL

$to = $Email_manual

$cc = $Email_main

ELSE $to = $Email_eval

$from = $Email_main

$cc = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachments are left intact.

End Then // $from = Employee_email1

ELSE If $from = $Employee_email2

Then {

append $Employee_code2 to end of $subject

IF $subject contains MANUAL

$to = $Email_eval

ELSE $to = $Email_manual

$from = $Email_main

$cc = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachments are left intact.

End Then // $from = Employee_email2

ELSE If $from = $Employee_email3

Then {

append $Employee_code3 to end of $subject

IF $subject contains MANUAL

$to = $Email_eval

ELSE $to = $Email_manual

$from = $Email_main

$cc = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachments are left intact.

End Then // $from = Employee_email3

END IF

//====================================================================

// email from email responder

If $from = $Email_responder or $Email_manual

IF $subject contains $Employee_code1

Then {

$to = $Employee_email1

$cc = $Email_main

$from = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachments are left intact.

End Then // Employee_code1

IF $subject contains $Employee_code2

Then {

$to = $Employee_email2

$cc = $Email_main

$from = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachements are left intact.

End Then // Employee_code2

IF $subject contains $Employee_code3

Then {

$to = $Employee_email3

$cc = $Email_main

$from = $Email_main

Rewrite email with new values // a common function/subroutine using the variables

SEND email with attachments // all other original header, body

// and attachements are left intact.

End Then // Employee_code3

END IF // $from = $Email_responder or $Email_manual

Beceriler: PHP, Betik Yükleme, Yazılım Mimarisi

Daha fazlasını görün: php send email script, concept coders, base code, sample email piping, sample email piping program, sample email piping script, sample code, pseudo code, pipe, notation, email responder, email process, code name one, cc program, manual email send, php code sample, script sender, rewrite function php, php global variable, code function, employee manual, code read, responder emails, responder email, email read

İşveren Hakkında:
( 0 değerlendirme ) Ottawa, Canada

Proje NO: #745525

Seçilen:

peteruk

Please check your private messages!

1 gün içinde 115$ USD
(12 Değerlendirme)
4.6

5 freelancer bu iş için ortalamada 118$ teklif veriyor

AndrwProjects

check message.

in 6 gün içinde125$ USD
(187 Değerlendirme)
6.4
snakeru

Hello. I can write such script for you in python. I have 9 years of python experience and python has brilliant email module that allows easy email format parsing and assembling pieces back into email again.

in 3 gün içinde150$ USD
(5 Değerlendirme)
5.5
alin22

Hello sir, i have send you a pm.

in 4 gün içinde150$ USD
(14 Değerlendirme)
4.7
taowuwei

It will be no problem to code this. Lets start ASAP.

in 3 gün içinde50$ USD
(1 Değerlendirme)
1.4