Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jpcouillet  
#1 Posted : Thursday, August 18, 2011 12:01:49 PM(UTC)
jpcouillet

Rank: Newbie

Groups: Registered
Joined: 8/18/2011(UTC)
Posts: 3

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  
#2 Posted : Thursday, August 18, 2011 6:43:33 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
jpcouillet wrote:
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


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  
#3 Posted : Friday, August 19, 2011 12:31:49 AM(UTC)
jpcouillet

Rank: Newbie

Groups: Registered
Joined: 8/18/2011(UTC)
Posts: 3

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  
#4 Posted : Friday, August 19, 2011 4:17:30 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
jpcouillet wrote:
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





Hi, AddAttachment is a method.

You can use it like this:
Code:

AddAttachment FolderFile1
AddAttachment FolderFile2



Example
Code:


  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  
#5 Posted : Saturday, August 20, 2011 12:07:08 AM(UTC)
jpcouillet

Rank: Newbie

Groups: Registered
Joined: 8/18/2011(UTC)
Posts: 3

Thank you very much

Regards

jpcouillet
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.

EXPLORE TUTORIALS

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