| Author |
Message |
Joey Lee
Guest
|
Posted:
Wed Jan 05, 2005 10:18 pm Post subject:
MAPI send mail |
|
|
Hi,
I managed to send an email using MAPI+ASP.NET(C#). The thing i am wondering
is the line which i specify the to address
MAPI.Recipient rep = (MAPI.Recipient)recipient.GetFirstUnresolved();
rep.Name="Joe";
rep.Address="SMTP:joe@microsoft.com";
rep.Type = MAPI.mapiRecipientType.mapiTo;
rep.Resolve(false);
SMTP:joe@microsoft.com.
From the look of the value above, it seems that the email is send using
exchange server smtp. So my question is
What is the reason of MAPI usage?
Does MAPI protocol covers mail sending, or its purpose is totally something
else?(if someone could help explain to me its other purpose)
Thanks
Joey
|
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Wed Jan 05, 2005 11:00 pm Post subject:
Re: MAPI send mail |
|
|
"Joey Lee" <joeylta1979@hotmail.com> wrote in
news:#TGIMI08EHA.3944@TK2MSFTNGP12.phx.gbl:
| Quote: | SMTP:joe@microsoft.com.
From the look of the value above, it seems that the email is send
using exchange server smtp. So my question is
What is the reason of MAPI usage?
Does MAPI protocol covers mail sending, or its purpose is totally
something else?(if someone could help explain to me its other purpose)
|
SMTP is the address type -- on an exchange server, everyone has an
address of type X400, but only some people have SMTP addresses -- I'd be
(say)
X400:c=CA;a=;P=Company;o=Location;s=Mitchell;g=Daniel
or
SMTP:danielmitchell@company.com
but there may be some mailboxes (meeting rooms, for instance) that only
have internal addresses -- in those cases, you'd have to use the X400
address to mail them. (weirdly, I'm sure it used to be EX:, not X400:,
but perhaps that's due to different server versions)
The reason you have to put SMTP: in front is so that the server knows
which address type you're using.
-- dan |
|
| Back to top |
|
 |
Joseph Lee
Guest
|
Posted:
Thu Jan 06, 2005 9:04 am Post subject:
Re: MAPI send mail |
|
|
Thanks for the info.
Just a quick question about the X400 type of address:
Does the value for 'a'(ADMD) which requires a blank where i will write
X400:c=CA;a= ;P=Company;o=Location;s=Mitchell;g=Daniel
instead of
X400:c=CA;a=;P=Company;o=Location;s=Mitchell;g=Daniel
in my codes.
When i was looking into the AD, i find that users' ADMD field have a blank
space value.
Thanks
Joey
"Dan Mitchell" <djmitchella@yahoo.com> wrote in message
news:Xns95D565D47B929djmitchellayahoocom@207.46.248.16...
| Quote: | "Joey Lee" <joeylta1979@hotmail.com> wrote in
news:#TGIMI08EHA.3944@TK2MSFTNGP12.phx.gbl:
SMTP:joe@microsoft.com.
From the look of the value above, it seems that the email is send
using exchange server smtp. So my question is
What is the reason of MAPI usage?
Does MAPI protocol covers mail sending, or its purpose is totally
something else?(if someone could help explain to me its other purpose)
SMTP is the address type -- on an exchange server, everyone has an
address of type X400, but only some people have SMTP addresses -- I'd be
(say)
X400:c=CA;a=;P=Company;o=Location;s=Mitchell;g=Daniel
or
SMTP:danielmitchell@company.com
but there may be some mailboxes (meeting rooms, for instance) that only
have internal addresses -- in those cases, you'd have to use the X400
address to mail them. (weirdly, I'm sure it used to be EX:, not X400:,
but perhaps that's due to different server versions)
The reason you have to put SMTP: in front is so that the server knows
which address type you're using.
-- dan
|
|
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Thu Jan 06, 2005 11:51 pm Post subject:
Re: MAPI send mail |
|
|
"Joseph Lee" <joeylta1979@hotmail.com> wrote in
news:ui49Wx58EHA.2060@TK2MSFTNGP10.phx.gbl:
| Quote: | Does the value for 'a'(ADMD) which requires a blank where i will write
X400:c=CA;a= ;P=Company;o=Location;s=Mitchell;g=Daniel
instead of
X400:c=CA;a=;P=Company;o=Location;s=Mitchell;g=Daniel
in my codes.
|
You're right, sorry, that was my fault when I typed in the sample --
actual addresses here do have a space in there, "...a= ;...".
-- dan |
|
| Back to top |
|
 |
|
|
|
|