 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Smith Guest
|
Posted: Wed Nov 26, 2003 1:24 pm Post subject: How to send an e-mail from D6 please? |
|
|
Hi - I'm using the simple Sendmail routine that's available for download
from many sites for use with Delphi - which calls the mapiSendMail routine
with code like:
result := mapiSendMail( 0, application.Handle, msg, liFlags, 0 );
The problem is that all mail sent is rejected with - we're using Outlook
2000/2002 and Exchange 2000 - the problem seemingly to be that the routine
causes the recipients e-mail 'properties' to have an E-Mail Type that's not
SMTP but is the recipients address! In other words, when I look at the
properties of the recipient - once the mail routine has failed - I get
something like the following :
Display Name : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
E-Mail address : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
E-Mail type : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
Internet format : Send using Rich Text Format.
I can't seem to solve this.... has anyone got any great ideas or a
completely new, better way of simply sending e-mails from within a Delphi
app.
Thanks in anticipation
David Smith
|
|
| Back to top |
|
 |
dave Guest
|
Posted: Wed Nov 26, 2003 3:58 pm Post subject: Re: How to send an e-mail from D6 please? |
|
|
Delphi 6 should come with Indy components. They have components for just
about everything internet related. i.e. e-mail, etc.
I would look into that. If your version of Delphi does not have Indy, look
for them on the web, as they are freeware and I believe open source. You
should be able to download them from their website.
Another alternative may be the open source component set JVCL. The Jedi
project has internet components as well.
Hope this helps,
Dave
"David Smith" <david.smith (AT) lonsdale (DOT) co.uk> wrote
| Quote: | Hi - I'm using the simple Sendmail routine that's available for download
from many sites for use with Delphi - which calls the mapiSendMail routine
with code like:
result := mapiSendMail( 0, application.Handle, msg, liFlags, 0 );
The problem is that all mail sent is rejected with - we're using Outlook
2000/2002 and Exchange 2000 - the problem seemingly to be that the routine
causes the recipients e-mail 'properties' to have an E-Mail Type that's
not
SMTP but is the recipients address! In other words, when I look at the
properties of the recipient - once the mail routine has failed - I get
something like the following :
Display Name : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
E-Mail address : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
E-Mail type : [email]davidjones (AT) thecompany (DOT) co.uk[/email]
Internet format : Send using Rich Text Format.
I can't seem to solve this.... has anyone got any great ideas or a
completely new, better way of simply sending e-mails from within a Delphi
app.
Thanks in anticipation
David Smith
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Nov 26, 2003 6:49 pm Post subject: Re: How to send an e-mail from D6 please? |
|
|
"David Smith" <david.smith (AT) lonsdale (DOT) co.uk> wrote
| Quote: | The problem is that all mail sent is rejected with - we're using
Outlook 2000/2002 and Exchange 2000 - the problem
seemingly to be that the routine causes the recipients e-mail
'properties' to have an E-Mail Type that's not SMTP but is the
recipients address!
|
Chances are, you are probably just filling in the TMapiMessage structure
incorrectly.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|