You are here: Office-Outlook.com  / Outlook Forum

How to add a Microsoft Outlook Email from ASP.NET application

Home » General Outlook opportunities » Outlook Public
How to add a Microsoft Outlook Email from ASP.NET application [message #129827] Wed, 28 February 2007 06:41 Go to next message
xin.yadong
Messages: 18
Registered: February 2007
Junior Member
Is there a way to create an New Outlook Email from an ASP.NET
application? I can not use "mailto:", since it is only support a
string less than 512. I have find a good way from link :
http://zones.advisor.com/doc/17330 , that thread show how to create a
new appointment instead of email. but I have no idea about the format
of a new email. Does any one know the format of a new outlook email
i.e.
Response.ContentType = "text/XXXXXX"
Response.AppendHeader("content-disposition", "inline;
filename=oneEmail.XXXXX")

and the body of the file

Thanks

Lu
Re: How to add a Microsoft Outlook Email from ASP.NET application [message #130440] Thu, 01 March 2007 06:08 Go to previous messageGo to next message
xin.yadong
Messages: 18
Registered: February 2007
Junior Member
On Mar 1, 12:51 am, "F.H. Muffman" <f.h.muff...@hotmail.com> wrote:
> xin.yad...@gmail.com wrote:
> > Is there a way to create an New Outlook Email from an ASP.NET
> > application? I can not use "mailto:", since it is only support a
> > string less than 512. I have find a good way from link :
> >http://zones.advisor.com/doc/17330, that thread show how to create a
> > new appointment instead of email. but I have no idea about the format
> > of a new email. Does any one know the format of a new outlook email
> > i.e.
> > Response.ContentType = "text/XXXXXX"
> > Response.AppendHeader("content-disposition", "inline;
> > filename=oneEmail.XXXXX")
>
> > and the body of the file
>
> Lu,
>
> Just to clarify what you're trying to do... Do you want to send a mail
> programmatically, or are you trying to insert a new, unread message into the
> inbox of the user on the machine itself?
> --

what I want to do is create a draft (new mesage), which could have
sent to , subject, body, and let user choose to send it through
outlook or not.

Thanks

Lu
Re: How to add a Microsoft Outlook Email from ASP.NET application [message #152850] Wed, 28 February 2007 21:51 Go to previous message
f.h.muffman
Messages: 5651
Registered: February 2007
Senior Member
xin.yadong@gmail.com wrote:
> Is there a way to create an New Outlook Email from an ASP.NET
> application? I can not use "mailto:", since it is only support a
> string less than 512. I have find a good way from link :
> http://zones.advisor.com/doc/17330 , that thread show how to create a
> new appointment instead of email. but I have no idea about the format
> of a new email. Does any one know the format of a new outlook email
> i.e.
> Response.ContentType = "text/XXXXXX"
> Response.AppendHeader("content-disposition", "inline;
> filename=oneEmail.XXXXX")
>
> and the body of the file

Lu,

Just to clarify what you're trying to do... Do you want to send a mail
programmatically, or are you trying to insert a new, unread message into the
inbox of the user on the machine itself?
--
f.h.
Re: How to add a Microsoft Outlook Email from ASP.NET application [message #152864] Thu, 01 March 2007 06:08 Go to previous message
xin.yadong
Messages: 18
Registered: February 2007
Junior Member
On Mar 1, 12:51 am, "F.H. Muffman" <f.h.muff...@hotmail.com> wrote:
> xin.yad...@gmail.com wrote:
> > Is there a way to create an New Outlook Email from an ASP.NET
> > application? I can not use "mailto:", since it is only support a
> > string less than 512. I have find a good way from link :
> >http://zones.advisor.com/doc/17330, that thread show how to create a
> > new appointment instead of email. but I have no idea about the format
> > of a new email. Does any one know the format of a new outlook email
> > i.e.
> > Response.ContentType = "text/XXXXXX"
> > Response.AppendHeader("content-disposition", "inline;
> > filename=oneEmail.XXXXX")
>
> > and the body of the file
>
> Lu,
>
> Just to clarify what you're trying to do... Do you want to send a mail
> programmatically, or are you trying to insert a new, unread message into the
> inbox of the user on the machine itself?
> --

what I want to do is create a draft (new mesage), which could have
sent to , subject, body, and let user choose to send it through
outlook or not.

Thanks

Lu
Re: How to add a Microsoft Outlook Email from ASP.NET application [message #152963] Fri, 02 March 2007 10:07 Go to previous message
f.h.muffman
Messages: 5651
Registered: February 2007
Senior Member
xin.yadong@gmail.com wrote:
>>> Is there a way to create an New Outlook Email from an ASP.NET
>>> application? I can not use "mailto:", since it is only support a
>>> string less than 512. I have find a good way from link :
>>> http://zones.advisor.com/doc/17330, that thread show how to create a
>>> new appointment instead of email. but I have no idea about the
>>> format of a new email. Does any one know the format of a new
>>> outlook email i.e.
>>> Response.ContentType = "text/XXXXXX"
>>> Response.AppendHeader("content-disposition", "inline;
>>> filename=oneEmail.XXXXX")
>>
>>> and the body of the file
>>
>> Just to clarify what you're trying to do... Do you want to send a
>> mail programmatically, or are you trying to insert a new, unread
>> message into the inbox of the user on the machine itself?
>
> what I want to do is create a draft (new mesage), which could have
> sent to , subject, body, and let user choose to send it through
> outlook or not.
>

Ok, that's a little clearer. I'll be honest, my initial response really
wants to be 'Why not just build SMTP functionality into your program?'

But, that said, I'd look at the CreateMail function at
http://msdn2.microsoft.com/en-us/library/aa201312(office.11).aspx.

--
f.h.
Previous Topic:where's image toolbar?
Next Topic:Outlook 2007: when selecting a new folder, the highlighted selection always resets to the top. OL200
Goto Forum: