.NET Framework - Using MAPI to send emails with Outlook

Asked By naga on 06-May-07 06:41 AM
I'm using MAPI to control the email application from my application.
I've tested it with many applications (Thunderbird, Eudora, The Bat)
and it works fine. If Outlook (both 2003 or 2007) is the active
application, nothing happens. Any idea on how to handle this?
Thanks
Andrea




wawan replied on 07-May-07 01:10 AM
Hi Andrea,

I'm not sure if I fully understand your question, so please feel free to
correct me if I've misunderstood anything.

Do you mean you want to use Outlook to send email and the sent email should
be kept in Outlook's "Sent Items" folder?

If your only objective is to send email using a SMTP server, you could
either use System.Web.Mail (.NET 1.1, see http://www.systemwebmail.com) or
System.Net.Mail (.NET 2.0, see http://www.systemnetmail.com).

Hope this helps.


Sincerely,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
wawan replied on 09-May-07 07:57 AM
Hi Andrea,

Have you seen my last reply? If you have any questions, please don't
hesitate to reply here. Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
naga replied on 03-Jun-07 03:10 PM
Thanks Walter.
I just wanted to open Outlook with a new mail. I discovered that the
problem was that I send empty CC and BCC fields and that created
problems.
Thanks.
Andrea
wawan replied on 03-Jun-07 08:27 PM
Hi Andrea,

Thanks for the update. So the problem is solved now? If not, would you
please show us some code?

Let me know if there's anything else I can help.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.