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
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
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.
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
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
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 ...
Rank: Newbie
Groups: Registered
Joined: 8/18/2011(UTC) Posts: 3
Thank you very much Regards jpcouillet
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.