PDA

View Full Version : Attachment Location



lifeson
09-15-2008, 01:56 AM
I have the following code to send an email with an attachment (fName)

With MItem
.To = eMail
.Subject = subj
.Body = msg
.Importance = 2 'high
.Attachments.Add fName, 4
.Display
'.Send
End With 'mail item

Looking at the syntax from the msdn site here
http://msdn.microsoft.com/en-us/library/aa217214.aspx there is an option for position, but there is no mention what the values are supposed to be.

.Add(Source, [Type], [Position], [DisplayName])

I want the attachment to be positioned below the message

Any ideas what the values are?

Bob Phillips
09-15-2008, 02:37 AM
Documentation on it seems sparse ... so experiment.

dominicb
09-15-2008, 02:42 AM
Good morning lifeson

Looking at the syntax from the msdn site here
http://msdn.microsoft.com/en-us/library/aa217214.aspx there is an option for position, but there is no mention what the values are supposed to be.
This knowledge base article seems to indicate that this value is supposed to be an integer which is to reflect at which character of text the object is to be shown.
http://support.microsoft.com/kb/198897

HTH

DominicB