15 Maret 2012 14:43
I am completely new to visual basics, I have never used it before, I'm not even sure if I am asking this question in the correct forum!
What I would like to do is create a command button that launches an email from outlook attaching the current word document to a set email address. I'm not fussed if the word document is saved or not as it is only the email receipent that needs it, likewise I don't mind if the code instructs the email to send of just opens it ready to be sent. I have read through loads of forums and tried loads of codes but cannot get any to work. If someone could write the code for me I would be very grateful.
15 Maret 2012 16:03
Rather than use Office automation to send an email I would suggest trying out SMTP method. If open to this there are samples at the following page.
Section 3.1 explains HTML body for the email
Section 3.4 explains how to attach files to an email.
19 Maret 2012 3:01Moderator
Welcome to the MSDN forum.
Your application is not suitable for VB newer.
Based on your description, the application will including edit the Word files send the data to Outlook and send the email.
Here is some information can help you:
Visual Basic Guided Tour: http://msdn.microsoft.com/en-us/library/90h82b3x%28v=vs.90%29.aspx
How to send attachments in an e-mail message by using Visual Basic .NET: http://support.microsoft.com/kb/313803
How To Handle Events for Microsoft Word Using Microsoft Visual Basic .NET: http://support.microsoft.com/kb/302816
Hope this helps.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
- Ditandai sebagai Jawaban oleh Mark Liu-lxfModerator 23 Maret 2012 7:18