Correct PHP program for sending and receiving emails
$30-40 USD
In Progress
Posted about 12 years ago
$30-40 USD
Paid on delivery
We have 2 cron programs written in php which do following:
PHP cron program is to send emails based on data in database to companies which can reply with a normal email.
Reply email from company shall be fetched from POP3 mail account, token shall be identified. The database shall be updated and a user shall get the reply by email.
Abstract View of the program
Following are the list of the main functionality which is done by this cron program:
Sending emails:
1. Look into database for new records (email) from user
2. Create email with header and body from database and create a unique token which shall be included in the email.
3. Get eventual attachment links from database
4. Merge selected text and attachment links in one email body
5. Send email to company by including the Token
Receive emails:
6. Look into an email account to check new records (emails) from company
7. Store and update database with header, body etc. from the email
8. Attachments should be stored in file structure on server.
9. Create and send extracted information (Original user message, company reply, any attachment from company) as an email to the relevant user with respect to Token id.
We have 4 minor issues in these programs which need fixing only:
1- If there is special letters in customer emails like å,ä,ö etc then correct data is not being save in database, encoded characters are being save. Its being forward in email correctly but its not being save correct as in database. Seems to UTF8 encoding issue.
For example:
Original Text:
Email Subject: Email with special letters börn äla båå
After Saving in DB:
Email Subject: =?ISO-8859-1?Q?Re=3A_Email_with_special_letters_b=F6rn_=E4la_b=E5=E5?=
Equal (=) sign appear in the email text and attachment urls. It appear on both database and company email which is delivered to user.
e.g.
ö converted into =F6 or =
å converted into =E4
etc
2. Location of Customer URL attachment link should be under customer message instead of user's message. Also user message appear twice in the email, remove duplicate text.
3. Insert same token id for company record while at the moment its different than user's original email token id.
4. If there is any special letter in name of customer attachment file then it should be converted into following letters and store in database and server with new name:
"ä" => "ae", "ö" => "oe", "å" => "ao", "æ" => "ae", "ø" => "oe","Ä" => "AE", "Ö" => "OE", "Å" => "AO", "Æ" => "AE", "Ø" => "OE" and space is converted into _
Example: Ö[login to view URL] >> [login to view URL]
Programs and detail will be provided to selected provided.
Regards,
Sajjad
Hello, professional web developer at Arcturus LTD. is at your service here. I sent you describe of your problems and methods which I would use to fix them. I would be more then happy to work for you. Thanks, Marko Pavlovic