Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Cannot attach files Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tho78
Newbie
Newbie
Avatar

Joined: 19 June 2009
Location: Greece
Online Status: Offline
Posts: 2
Posted: 23 July 2009 at 2:55am | IP Logged Quote tho78

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 View tho78's Profile Search for other posts by tho78 Visit tho78's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 23 July 2009 at 3:10am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
tho78
Newbie
Newbie
Avatar

Joined: 19 June 2009
Location: Greece
Online Status: Offline
Posts: 2
Posted: 23 July 2009 at 4:05am | IP Logged Quote tho78

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 View tho78's Profile Search for other posts by tho78 Visit tho78's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide