| View previous topic :: View next topic |
| Author |
Message |
Omega Guest
|
Posted: Wed Jan 19, 2005 1:54 pm Post subject: Indy 9 TidMessage |
|
|
Hello,
I need some help.
I have to create a service who go on on mail box and after i have te create
a Call in our Problem management.
I use pop for sending the mail and smtp to sent it.
I want to enclose the mail i can find on the mail box i have to scan and
send it as a winword file. Unfortunately i can only save my message as a
text one.
i use :
var
mymsg as tidMessage;
begin
......
mymsg.savetofile('c:temptest.doc')
end;
I try to create an msg file but i can't read it.
Thank you for your help.
Jerome.
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Wed Jan 19, 2005 2:25 pm Post subject: Re: Indy 9 TidMessage |
|
|
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote
| Quote: | Hello,
I need some help.
I have to create a service who go on on mail box and after i have te
create a Call in our Problem management.
I use pop for sending the mail and smtp to sent it.
I want to enclose the mail i can find on the mail box i have to scan and
send it as a winword file. Unfortunately i can only save my message as a
text one.
i use :
var
mymsg as tidMessage;
begin
......
mymsg.savetofile('c:temptest.doc')
|
Try:
mymsg.savetofile('c:temptest.eml');
Indy 10 is better at this than Indy 9 (depending on the actual message
content).
Ciaran
|
|
| Back to top |
|
 |
Omega Guest
|
Posted: Wed Jan 19, 2005 2:55 pm Post subject: Re: Indy 9 TidMessage |
|
|
Thank you for your answer i will try it.
can you tell me if i have to uninstall the version 9 before intall the
version 10
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote
| Quote: |
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote in message
news:41ee6697 (AT) newsgroups (DOT) borland.com...
Hello,
I need some help.
I have to create a service who go on on mail box and after i have te
create a Call in our Problem management.
I use pop for sending the mail and smtp to sent it.
I want to enclose the mail i can find on the mail box i have to scan and
send it as a winword file. Unfortunately i can only save my message as a
text one.
i use :
var
mymsg as tidMessage;
begin
......
mymsg.savetofile('c:temptest.doc')
Try:
mymsg.savetofile('c:temptest.eml');
Indy 10 is better at this than Indy 9 (depending on the actual message
content).
Ciaran
|
|
|
| Back to top |
|
 |
Omega Guest
|
Posted: Wed Jan 19, 2005 3:04 pm Post subject: Re: Indy 9 TidMessage |
|
|
Excellent it's working.
But the computer of our client can't read an outlook express file. Can you
tell me how i can convert the eml file to an .msg file ?
Thank you for your help.
Jérôme
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote
| Quote: |
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote in message
news:41ee6697 (AT) newsgroups (DOT) borland.com...
Hello,
I need some help.
I have to create a service who go on on mail box and after i have te
create a Call in our Problem management.
I use pop for sending the mail and smtp to sent it.
I want to enclose the mail i can find on the mail box i have to scan and
send it as a winword file. Unfortunately i can only save my message as a
text one.
i use :
var
mymsg as tidMessage;
begin
......
mymsg.savetofile('c:temptest.doc')
Try:
mymsg.savetofile('c:temptest.eml');
Indy 10 is better at this than Indy 9 (depending on the actual message
content).
Ciaran
|
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Wed Jan 19, 2005 9:20 pm Post subject: Re: Indy 9 TidMessage |
|
|
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote
| Quote: | Excellent it's working.
But the computer of our client can't read an outlook express file.
|
I don't think I understand what you are trying to do. Outlook can read .eml
files via drag-and-drop (and probably by double-clicking if you set up a
file association also). What software is your client using? You could also
get your program to include the email as a message/rfc822 part.
Ciaran
|
|
| Back to top |
|
 |
Omega Guest
|
Posted: Thu Jan 20, 2005 11:24 am Post subject: Re: Indy 9 TidMessage |
|
|
All the client have outlook 2003 and i receive a message :
Outlook can not read the file.
Which aventage i have if i use indy10 ?
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote
| Quote: |
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote in message
news:41ee76db$1 (AT) newsgroups (DOT) borland.com...
Excellent it's working.
But the computer of our client can't read an outlook express file.
I don't think I understand what you are trying to do. Outlook can read
.eml files via drag-and-drop (and probably by double-clicking if you set
up a file association also). What software is your client using? You
could also get your program to include the email as a message/rfc822 part.
Ciaran
|
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Thu Jan 20, 2005 10:37 pm Post subject: Re: Indy 9 TidMessage |
|
|
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote
| Quote: | All the client have outlook 2003 and i receive a message :
Outlook can not read the file.
Which aventage i have if i use indy10 ?
|
Depends what you are trying to do (I am still not quite clear). Can you
copy-and-paste the eml into a message here?
Ciaran
|
|
| Back to top |
|
 |
Omega Guest
|
Posted: Fri Jan 21, 2005 8:46 am Post subject: Re: Indy 9 TidMessage |
|
|
Hello,
My service scan an address e-mail and these e-mail i have to create a new
call automaticelly in hour problem management.
The problem i have no i can create the file but i can't see the body in my
eml. If i have a picture i can see it.
I send you the differents file on your e-mail address :
[email]ccostelloe (AT) flogas (DOT) ie[/email].
Thank you for everything.
Jerome
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote
| Quote: |
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote in message
news:41ef94f7$2 (AT) newsgroups (DOT) borland.com...
All the client have outlook 2003 and i receive a message :
Outlook can not read the file.
Which aventage i have if i use indy10 ?
Depends what you are trying to do (I am still not quite clear). Can you
copy-and-paste the eml into a message here?
Ciaran
|
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Fri Jan 21, 2005 12:25 pm Post subject: Re: Indy 9 TidMessage |
|
|
| Quote: | I send you the differents file on your e-mail address :
|
Yes, thanks. All the .eml files were empty, but that all makes sense now.
In your code, you need to call myEmail.LoadFromFile('c:temptest1.eml') and
then change the corresponding "from" and "to" entries.
Ciaran
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Fri Jan 21, 2005 12:44 pm Post subject: Re: Indy 9 TidMessage |
|
|
"Omega" <omega.ch (AT) bluewin (DOT) ch> wrote
| Quote: | Hello,
My service scan an address e-mail and these e-mail i have to create a new
call automaticelly in hour problem management.
The problem i have no i can create the file but i can't see the body in my
eml. If i have a picture i can see it.
|
By the way, if you change to Indy 10, the SaveToFile() function will
correctly save the content of the emails you POP. In Indy 9, SaveToFile()
and LoadFromFile(0 will not always work correctly (it is a structural issue
in Indy 9).
Ciaran
|
|
| Back to top |
|
 |
|