bonzo meier
Member
- Messages
- 47
- Reaction score
- 0
- Points
- 6
hi.
I am looking for a smooth solution for the following problem: I wrote a php-script that is collecting emails from a mail account, reads the content of the email body (or, as it is, is supposed to read the content), extracts some of the given data and sends this data to a SOAP webservice.
the mails are in plain text format, the $body comes like this:
data1: 12345
data2: abcde
data3: xyz
END
now i want just the letters extracted to an array like $data_full = ('data2' => 'abcde', 'data3' =>'xyz');
the body contains whitespace and line-breaks as shown.
getting the mail and connecting to the SOAP ws works fine with manually given data, just how can I get the required info out of the mail body?
THANX for HELP!!
peace, bonzo
I am looking for a smooth solution for the following problem: I wrote a php-script that is collecting emails from a mail account, reads the content of the email body (or, as it is, is supposed to read the content), extracts some of the given data and sends this data to a SOAP webservice.
the mails are in plain text format, the $body comes like this:
data1: 12345
data2: abcde
data3: xyz
END
now i want just the letters extracted to an array like $data_full = ('data2' => 'abcde', 'data3' =>'xyz');
the body contains whitespace and line-breaks as shown.
getting the mail and connecting to the SOAP ws works fine with manually given data, just how can I get the required info out of the mail body?
THANX for HELP!!
peace, bonzo