Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Albyn Leslie
  Where is Albyn Leslie?
 Blenheim
 New Zealand
 Albyn Leslie
 Tags
Subject: Email from within an application
Thread ID: 88233 Message ID: 88233 # Views: 54 # Ratings: 0
Version: Visual FoxPro 9 Category: Visual Basic
Date: Sunday, February 12, 2006 5:52:37 AM         
   


I have included an email feature in my software which attachs htm reports I generate in VFP9

I am using Rick Stralls wwipstuff program http://www.west-wind.com/wwipstuff.asp
Works fine in simple networks but fails when I run into networks using Microsoft Exchange.

The error message I recieve when running the following software appears to be at line 31 from wwipstuff.sendmailasync.

The code I am running is as follows:


**Program to send email with attachments
**Needs a number of memory variables defined in the calling program


Set Procedure to wwUtils
Set Classlib to wwIPStuff.Vcx
local loSMTP

loSMTP = CreateObject("wwIPStuff")
loSMTP.cMailServer = "&mailsmtp" &&Defined in calling program
loSMTP.cSenderEmail = "abcdefg@somercon.net.nz" &&Define in calling program
loSMTP.cSenderName = "&mstacomp" &&Define in calling program
loSMTP.cRecipient = "&mailclnt" &&Define in calling program

loSMTP.cCCList = "" &&CC Recipient
loSMTP.cSubject = "&msubject" &&Define in calling program
loSMTP.cMessage = "&mmessage" &&Define in calling program
loSMTP.cAttachment="&mattachment" &&Define in calling program
loSMTP.SendMailAsync()




A J Leslie




COMPLETE THREAD

Tip: click here to scan for Windows Registry Errors and Optimize PC performance
Email from within an application Posted by Albyn Leslie @ 2/12/2006 5:52:37 AM
RE: Email from within an application Posted by Jamie Osborn @ 2/12/2006 8:11:30 AM
RE: Email from within an application Posted by Albyn Leslie @ 2/15/2006 2:40:58 AM