SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Attachment problems

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Attachment problems
Author Message
Justin Chapman



Joined: 28 Jul 1999
Posts: 3

Post Attachment problems Reply with quote

I am trying to use the MailSendWithAttachment command in a script and keep getting "An error occured while executing 24X7 script: Sending mail failed: Mail Return Attachment Not Found!." Here is my syntax
"MailSendWithAttachment( "microsoft outlook",,"jchapman@pdmi.com","test subject","test message" , file_name)"
I am storing the complete name of the file in a variable and tested the variable with the NotFileExists. The NotFileExists returns a False meaning that the file is found correct. I can do the MailSend command with no problem also..

Wed Jul 28, 1999 1:15 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: Attachment problems Reply with quote

First of all you have missed the password. If you don't want to supply a password just use an empty string instead like the following:
"MailSendWithAttachment( "microsoft outlook","","jchapman@pdmi.com","test subject","test message" , file_name)"

Because file_name is a variable name can you describe what is the value of this variable?

: I am trying to use the MailSendWithAttachment command in a script and keep
: getting "An error occured while executing 24X7 script: Sending mail
: failed: Mail Return Attachment Not Found!." Here is my syntax
: "MailSendWithAttachment( "microsoft
: outlook",,"jchapman@pdmi.com","test
: subject","test message" , file_name)"
: I am storing the complete name of the file in a variable and tested the
: variable with the NotFileExists. The NotFileExists returns a False meaning
: that the file is found correct. I can do the MailSend command with no
: problem also..

Wed Jul 28, 1999 3:13 pm View user's profile Send private message
Justin Chapman



Joined: 28 Jul 1999
Posts: 3

Post Re: Attachment problems Reply with quote

: First of all you have missed the password. If you don't want to supply a
: password just use an empty string instead like the following:
: "MailSendWithAttachment( "microsoft
: outlook","","jchapman@pdmi.com","test
: subject","test message" , file_name)"

: Because file_name is a variable name can you describe what is the value of
: this variable?

Sorry about that.
Here is the syntax with the file hard coded and the password = "", but it still doesn't seem to work.
MailSendWithAttachment( "microsoft outlook", "","justin.chapman@pdmi.com" , "test", "test", "C:\a1999-07-27.TXT" )
Thanks

Wed Jul 28, 1999 4:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: Attachment problems Reply with quote

Please try using short file name instead. May be your email system doesn't like long file names.

: Sorry about that.
: Here is the syntax with the file hard coded and the password = "",
: but it still doesn't seem to work.
: MailSendWithAttachment( "microsoft outlook",
: "","justin.chapman@pdmi.com" , "test",
: "test", "C:\a1999-07-27.TXT" )
: Thanks

Wed Jul 28, 1999 5:24 pm View user's profile Send private message
Justin Chapman



Joined: 28 Jul 1999
Posts: 3

Post Re: Attachment problems Reply with quote

I changed the file from a1999-07-27.txt to a.txt and still nothing. Here is a list of things I have tried.
1: moved the file to the 24X7 directory
2: changed the "\" to "/"
3: used the absolute address "\\CONF_ROOM\Justin 0\a.txt"
4: used the relative address "\a.txt"

I am running Windows NT 4.0 pack 4 and Outlook 97. The message is "Mail Return Attachment Not Found". Why "Return"? I am wondering if Outlook is the problem?

Thanks

Thu Jul 29, 1999 9:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: Attachment problems Reply with quote

24x7 simply fills out several MAPI structures then pases them to MAPI (Windows messaging application program interface). Outlook 97 is a client program in this case just like 24x7 Scheduler. So this is the issue around MAPI version installed on your system. "Mail Return" part comes from the 24x7 (meaning "returned status"), "Attachment Not Found" comes from the MAPI.

I would sugest trying 24x7 v1.5 that will be released in a couple of days or so. It may update some of your system files with the newest versions and this way fix the problem.

Chears.

: I changed the file from a1999-07-27.txt to a.txt and still nothing. Here is a
: list of things I have tried.
: 1: moved the file to the 24X7 directory
: 2: changed the "\" to "/"
: 3: used the absolute address "\\CONF_ROOM\Justin 0\a.txt"
: 4: used the relative address "\a.txt"

: I am running Windows NT 4.0 pack 4 and Outlook 97. The message is "Mail
: Return Attachment Not Found". Why "Return"? I am wondering
: if Outlook is the problem?

: Thanks

Thu Jul 29, 1999 10:05 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.