Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI - Sending Attachments to Recipients Programmaticall
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00261254
Message ID:
00262528
Views:
27
>>Yeah! That would be great. The only thing is... I haven't used other classes before. Can you explain how to "drop it on a form"? Thanks. E-mail address is chuckh@ebaa.com.
>
>I sent you the class via email. Take the attachment and save it to the folder where your project resides (or preferrably in a sub folder below the project named ClassLib). Then open the form you want the MAPI control in and find the Forms control toolbar (the one where you choose textbox or label from). Click on the Library icon immediately to the right of the pointer (arrow). and choose Add from the pull down menu. Now point to the Mapi.Vcx I emailed you (the attachment) and you will notice your Forms control toolbar changes. There will be only one button in there, the MAPI control. click on it and then click anywhere in the form other than in a container (in other words don't drop it in a pageframe). Go to properties and give it some name like cusMAPI. Anywhere in your form, you can refer to it like:
>
>ThisForm.cusMAPI.Send()
>
>Clicking on it in the Form Designer, you can go to your property sheet and set properties you want. You can also set properties programmatically like:
>
>ThisForm.cusMAPI.cSubject = 'Open this message please'
>
>Let me know if you need more help.

I received the class in my e-mail. Thanks!

You may recall that I was having a problem with a "No Transport Provider" error. I did some looking in TechNet and came upon the resolution to that problem:

1) I had an SMTP e-mail recipient address in my Personal Address Book with a friendly name of Chuck Henry, which is my e-mail address for when I want to send something to my e-mail account at home.

2) However, the friendly name of Chuck Henry is also in our LAN Global Address List on our MSMail Server (MAPI). Plus, our MSMail Server is not set up to deliver SMTP (Internet) mail.

3) The ResolveName Method was trying to resolve the address found in my PAB, which is an SMTP address, and thus found no transport provider in the MSMail Service, which I have Outlook configured for. (I use Outlook Express and connect to an Internet mail server via our ISP for sending Internet e-mail.)

4) All I had to do was delete the address from my PAB. After that, ResolveName successfully resolved my friendly name from the GAL.

I thought this info would be worth sharing. I could see how it might easily come up with somebody else.

The next step in my project is that I need to be able to conditionally send this e-mail to multiple recipients in a table called Members.dbf. Any ideas? TIA, Chuck.
Chuck Henry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform