Attachments

Wormlett

Member
Joined
Jun 25, 2004
Messages
9
Programming Experience
Beginner
hi. i'm making a email program for an even bigger program. when you click the email button it pops up a form and you can email someone. everything works perfectly except the attach function. i can only attach one item at a time. as of now this is how it is laid out.

If Len(Trim(Me.txtAttachment.Text)) > 2 Then

myEmailMessage.Attachments.Add(Me.txtAttachment.Text)

End If


thats on the main button click...

then when you click the attach button this comes up

Me.OpenFileDialog1.ShowDialog()

Me.txtAttachment.Text = Me.OpenFileDialog1.FileName


so what happens is (i guess?, im adding on to a email program someone else made and then i got hired to finish it) the text field for the attachment attaches whatever is in the field. is there some way to attach more than one thing? if you need any other info to help with this, ill be glad to give it. i really need all the help i can get! Thanks!
 
Back
Top