Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Problem
Message
From
02/07/2014 03:42:01
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01603052
Message ID:
01603066
Views:
64
What's the value of memail when you get the error?

>I am using the following code to send emails to customers
>under program control. For the last month it seemed to
>work fine. But now I'm getting a error saying Outlook
>doesn't recognize one or more names.
>
>Any help on what that actually means would be great.
>
>Brad
>
>memail = alltrim(gencmt) && email address for customer
>mfile = 'c:\transfer\test\emails\'+mfile
>**********************************************************
>o=createobject("outlook.application")
>oitem=o.createitem(0)
>oitem.subject="SSC Customer Water Bill"
>oitem.to = memail
>oitem.body="See attachment for current water bill"
>oitem.Attachments.Add(mfile)
>oitem.send
>o=.null.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform