Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!!
Email Attachments ARG!! Email Attachments ARG!!
Email Attachments ARG!!
Go Back  Xtreme Visual Basic Talk > > > Email Attachments ARG!!


Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2001, 04:33 AM
Octavo
Guest
 
Posts: n/a
Default Email Attachments ARG!!


I've searched the forum with no real solution to my problem.
I can't seem to attach stuff to emails generated through code.

I don't know whether to use the MAPI controls supplied with VB or the MS Outlook 9 libraries.

With both cases I can't seem to attach things. PLEASE help


Reply With Quote
  #2  
Old 09-06-2001, 07:59 AM
sethindeed's Avatar
sethindeed sethindeed is offline
Contributor
 
Join Date: Mar 2001
Location: Montreal Canada
Posts: 715
Default Re: Email Attachments ARG!!

This code should do it...

Dim objOutlook As Outlook.Application
Dim objMailItem As Outlook.MailItem


With objMailItem
.To = "Theguy@hotmail.com"
.Subject = "Fu*** attachment !!!"
.Body = "Did you get my porn file ?!?"
.CC = "Mom@hotmail.com
.Attachments.Add "C:\Temp\Natasha.jpg"
End With
objMailItem.Send
Set objMailItem = Nothing
Set objOutlook = Nothing

__________________
What I don't know keeps me excited...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!! Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!! Email Attachments ARG!!
Email Attachments ARG!!
Email Attachments ARG!!
 
Email Attachments ARG!!
Email Attachments ARG!!
 
-->