|
Thanks Neil, do you have a link I can't seem to find
this.
Thanks,
Corinna Robertson
Boston Software Systems
The
Essential Tool for Healthcare Integration
603-598-5122
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Carman Sent: Friday, December 05, 2003 12:12 AM To: [EMAIL PROTECTED] Subject: Re: [Talk] emailing within a script question Below is sample VB code to send an email using Aemail. Private Sub SendEmail() aeObject.Clear aeObject.HostName = "smtp-server.GenHosp.com" 'You can use the IP address of the smtp server or the server name if you are running DNS aeObject.FromAddress = "[EMAIL PROTECTED]" If SEAup Then 'Only send regular email - Script is running aeObject.Subject = Status aeObject.AddTo "[EMAIL PROTECTED]", "" aeObject.Body = TxtMsg & vbCrLf & Response & vbCrLf & "Tests Completed =" & Str(TestNum) aeObject.AddAttachment "c:\temp\mydocument.doc" Else 'Send email and Page Cell Phone - Script crashed aeObject.Subject = Status aeObject.AddTo "[EMAIL PROTECTED]", "" aeObject.AddTo "[EMAIL PROTECTED]", "" aeObject.Body = TxtMsg End If aeObject.Send txtStatus.Text = Status & " " & Format(Now, "hh:nn am/pm") & " Err=" & aeObject.LastError End Sub If you have any other questions, give me a call. Corinna Robertson wrote: Neil Carman Director Technical Development Manigault & Associates LLC http://www.m-allc.com Work: (805) 680-5601 Fax: (714) 968-5632 |
- Re: [Talk] emailing within a script question Neil Carman
- Re: [Talk] emailing within a script question Corinna Robertson
- Re: [Talk] emailing within a script question Neil Carman
- RE: [Talk] emailing within a script questio... Corinna Robertson
- RE: [Talk] emailing within a script question Jobin, Michael
- RE: [Talk] emailing within a script question Johnson, Thomas
- RE: [Talk] emailing within a script question Terry Evans
- RE: [Talk] emailing within a script question Zimmerman, Scott
- RE: [Talk] emailing within a script question Johnson, Thomas
- RE: [Talk] emailing within a script question Corinna Robertson
