Hi, Im using the Mini Email Server example. and have posted this question in there, but it is possibly better to post it here!
Basically I get an email from a third party selling site, (the email address is a unique one for each customer, so [email protected]) if i reply to that address the mail does go to them customer, but in some cases it is lost or sometimes takes quite a while to get there. The Email body (in an email program contains the real email of the customer) So i (Well Erel!) made a sub to extract the email and reply to that instead! it works fine if i email it! (from say gmail or similar) But when I try with the real emails it never extracts an email address! after messing with the code for quite some time, I decided to look at the message body, its in some sort of code! and not what I was expecting! which is why the extraction routine wont find it!
this is what im getting
Im not sure how to convert it to back to plain text. the actual email is HTML, but im sure once i can see the html, i would be able to still see the email address?
Any clues or help appreciated!
Thanks
Aidy
Basically I get an email from a third party selling site, (the email address is a unique one for each customer, so [email protected]) if i reply to that address the mail does go to them customer, but in some cases it is lost or sometimes takes quite a while to get there. The Email body (in an email program contains the real email of the customer) So i (Well Erel!) made a sub to extract the email and reply to that instead! it works fine if i email it! (from say gmail or similar) But when I try with the real emails it never extracts an email address! after messing with the code for quite some time, I decided to look at the message body, its in some sort of code! and not what I was expecting! which is why the extraction routine wont find it!
this is what im getting
Msg.body= CgoKPCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+Cgk8bWV0YSBj
b250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiIGh0dHAtZXF1aXY9
IkNvbnRlbnQtVHlwZSI+Cgk8dGl0bGU+U2VsejwvdGl0bGU+Cgk8bGluayBy
ZWw9InN0eWxlc2hlZXQiIGhyZWY9Imh0dHBzOi8vZDMzaTYyNHB3NmpqNjgu
Y2xvdWRmcm9udC5uZXQvc3RhdGljL2Nzcy8yL2VtYWlscy5jc3MiPgoJPHN0
eWxlPgoJQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA2NDBw
eCkgewoJCWJvZHkgewoJCQltaW4td2lkdGg6IDMyMHB4OwoJCX0KCQkuYm9k
eS1jb250YWluZXIgewoJCQl3aWR0aDogOTUlOwoJCX0KCQkuY3Rh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h0dHBzOi8vc2VsemltZy5zMy5h
bWF6b25hd3MuY29tL2VtYWlsL3RyYW5zcGFyZW50LmdpZiIgY2xhc3M9InJv
dy1zcGFjZXIiIGhlaWdodD0iMjUiIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjog
bWlkZGxlOyBkaXNwbGF5OiBibG9jayI+ICAgICAgICAgICAgIAogICAgICAg
ICAgICAgICAgICAgIDx0YWJsZSBhbGlnbj0iY2VudGVyIiBib3JkZXI9IjAi
IGNlbGxwYWRkaW5nPSIwIiBjZWxsc3BhY2luZz0iMCIgd2lkdGg9IjYwMCIg
Y2xhc3M9ImJvZHktY29udGFpbmVyIj4KICAgICAgICAgICAgICAgICAgICAg
ICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGNsYXNz
PSJwYWdlIiB3aWR0aD0iMTAwJSIgc3R5bGU9Ii1tb3otYm9yZGVyLXJhZGl1
czogNHB4OyAtd2Via2l0LWJvcmRlci1yYWRpdXM6IDRweDsgYm9yZGVyLXJh
ZGl1czogNHB4OyAtbW96LWJveC1zaGFkb3c6IDBweCAxcHggM3B4IHJnYmEo
MCwwLDAsMC4yKTsgLXdlYmtpdC1ib3gtc2hhZG93OiAwcHggMXB4IDNweCBy
Z2JhKDAsMCwwLDAuMik7IGJveC1zaGFkb3c6IDBweCAxcHggM3B4IHJnYmEo
MCwwLDAsMC4yKTsgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjsiPgogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0YWJsZSBib3JkZXI9IjAi
IGNlbGxwYWRkaW5nPSIwIiBjZWxsc3BhY2luZz0iMCIgd2lkdGg9IjEwMCUi
IGNsYXNzPSJjb250YWluZXIiPgogICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
Im not sure how to convert it to back to plain text. the actual email is HTML, but im sure once i can see the html, i would be able to still see the email address?
Any clues or help appreciated!
Thanks
Aidy