With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
PHP Email Function
This function should parse through an xml file and using the information, construct then send emails. Details should be logged in a log file.
Parameter: xml file representing 1 or more database records
1. Navigate through xml file
2. For each record:
a. Get the email address from the ‘To’ node
b. Validate the email address to make sure it is an email address and if it is not an email address, then log the error
c. Get the email template from the ‘template’ node
d. Iterate through each child node of the record node and put the field name and value into an array of name, value pairs
e. For each name and value pair, do search and replace on the email template, replacing field name place holders with the value (Place holder format: [field name]), this will be the body of the email
f. For each name and value pair, do search and replace on the ‘subject node’, replacing field name place holders with the value (Place holder format: [field name]), this will be the subject ...
Sign in or Register to see more