jpcouillet
  • jpcouillet
  • 52.25% (Neutral)
  • Newbie Topic Starter
14 years ago
I try to attach more than 1 file (2 or 3) in the "oMail.AddAttachment" but I do'nt have the syntax :
Is AddAttachment a variable, an array or something else ?
If AddAttachment is a variable, Can I and how separate the different file names ?

Thank you for your help


Regards
jpcouillet
ivan
  • ivan
  • 100% (Exalted)
  • Administration
14 years ago

I try to attach more than 1 file (2 or 3) in the "oMail.AddAttachment" but I do'nt have the syntax :
Is AddAttachment a variable, an array or something else ?
If AddAttachment is a variable, Can I and how separate the different file names ?

Thank you for your help


Regards
jpcouillet

jpcouillet wrote:



Hi, EAGetMailObj doesn't support AddAttachment, if you want to edit/compose/send email with attachment, you should use EASendMail, it supports AddAttachment method.

jpcouillet
  • jpcouillet
  • 52.25% (Neutral)
  • Newbie Topic Starter
14 years ago
Ok !

I use really EASendMail but what is the syntax ?

Is something like this ?

AddAttachment FolderFile1
AddAttachment FolderFile2
.....


AddAttachment FolderFilex


Thank you for your help


ivan
  • ivan
  • 100% (Exalted)
  • Administration
14 years ago

Ok !

I use really EASendMail but what is the syntax ?

Is something like this ?

AddAttachment FolderFile1
AddAttachment FolderFile2
.....


AddAttachment FolderFilex


Thank you for your help


jpcouillet wrote:




Hi, AddAttachment is a method.

You can use it like this:

AddAttachment FolderFile1
AddAttachment FolderFile2


Example


  If oSmtp.AddAttachment( "c:\test1.doc" ) <> 0 Then
    MsgBox "add attachment failed"
    MsgBox oSmtp.GetLastErrDescription()
    Exit Sub
  End If
  
  If oSmtp.AddAttachment( "c:\test2.doc" ) <> 0 Then
    MsgBox "add attachment failed"
    MsgBox oSmtp.GetLastErrDescription()
    Exit Sub
  End If

and so on ...
jpcouillet
  • jpcouillet
  • 52.25% (Neutral)
  • Newbie Topic Starter
14 years ago
Thank you very much

Regards

jpcouillet

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.