Author |
|
tho78 Newbie
Joined: 19 June 2009 Location: Greece
Online Status: Offline Posts: 2
|
Posted: 23 July 2009 at 2:55am | IP Logged
|
|
|
Hello!
I'm using MailBee ActiveX v.5.6.0.136 Registered version in our asp scripts, i create an email and try to attach 2 files from C:\ , the email is sent but the files are not attached, the AddAttachment returns false
My code is:
If objSMTP.Connect Then
objSMTP.Message.ToAddr = "someaddress_to"
objSMTP.Message.FromAddr = "someaddress_from"
objSMTP.Message.Subject = "test1"
objSMTP.Message.BodyText = "some text"
if not objSMTP.Message.AddAttachment("C:\file1.jpg") then
response.write "file 1 not attached<br>"
end if
if not objSMTP.Message.AddAttachment("C:\file2.jpg") then
response.write "file 2 not attached<br>"
end if
objSMTP.Send
objSMTP.Disconnect
end if
i have also tried to add the files from another directory (for example: "C:\folder1\file1.jpg") and still i have the same problem.
Do you have any idea what might be the problem or what i'm doing wrong??
Thanks!!
Theo
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 23 July 2009 at 3:10am | IP Logged
|
|
|
Most likely, permission problem (your application may have no permissions to read files in the specified folders). You should use folders where the corresponding permissions are granted to your application.
Regards,
Alex
|
Back to Top |
|
|
tho78 Newbie
Joined: 19 June 2009 Location: Greece
Online Status: Offline Posts: 2
|
Posted: 23 July 2009 at 4:05am | IP Logged
|
|
|
Thanks for the quick reply, well i'm checking the permissions but it seems that it's ok, although i'm not sure 100%, i'm searching if there's something else that i miss on the permissions of the folder.
Regards
|
Back to Top |
|
|