Using MAPI to send emails with Outlook

  • Thread starter Thread starter nagar
  • Start date Start date
N

nagar

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
 
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 ([email protected], 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.
 
Hi Andrea,

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


Regards,
Walter Wang ([email protected], 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.
 
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
 
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 ([email protected], 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.
 
Back
Top