What code could I use to send an e-mail message.
I've generated all events and I just need this code to send the e-mail.

Private Sub oApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As
Boolean, Cancel As Boolean)
Dim strFileName As String

strFileName = ActiveDocument.FullName

??? Code for the e-mail that in the strFileName some changes have been made.

Thanks

Re: how to send e-mail by Jay

Jay
Tue Jan 11 16:26:45 CST 2005

Alex wrote:
> What code could I use to send an e-mail message.
> I've generated all events and I just need this code to send the
> e-mail.
>
> Private Sub oApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As
> Boolean, Cancel As Boolean)
> Dim strFileName As String
>
> strFileName = ActiveDocument.FullName
>
> ??? Code for the e-mail that in the strFileName some changes have
> been made.
>
> Thanks

Hi Alex,

See http://word.mvps.org/FAQs/InterDev/SendMail.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org