SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
can't send attachments

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
can't send attachments
Author Message
Leonardo Rozas



Joined: 14 Mar 2001
Posts: 1

Post can't send attachments Reply with quote

Hi! I would be pleased if somebody can help me. I have created all the database objects needed for DB Mail: send_mail, attach_data and attach_file functions, the mail_attach table and the mail_attach_seq sequence. Also are granted the necesary permissions and created the public synonyms for all them.

I have permission to CREATE ANY DIRECTORY (with Read implicit) in Oracle. This database is on Windows NT 4, the Oracle Home is E:\orant, being E: a logical partition on the local server's HDD. The directory I've created is 'attachment', with the next syntax:
CREATE OR REPLACE DIRECTORY ATTACHMENT AS 'E:\ORANT\NET80\ADMIN';

Then, I try to send a message with an attachment: the file TNSNAMES.ORA, located in the mentioned directory. For that purpose, I used the attach_file function as seen on the DB Mail examples (replacing necessary data):

DECLARE
attach_id INTEGER;
ret_code INTEGER;
BEGIN
attach_id := Attach_File(NULL, 1, 'tnsnames.ora', 'attachments');
ret_code := send_mail('lrozas@lemans.cl', 'Test message with attachments... LEO', 'This message has one attachment... LEO', NULL, NULL, NULL, attach_id);
END;
/

I receive the mail, but it comes with no attachment. The DB Mail console shows an error: table or view does not exist.

Does somebody know what is happening? Thank you very much for your help and sorry about my english, I'm writing from Chile (we speak Spanish)...

Wed Mar 14, 2001 10:30 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: can't send attachments Reply with quote

Please post your message on the Oracle Tools message board at http://www.softtreetech.com/cgi_bin/mconfig.cgi

By the way, if you get "table or view does not exist", it means you either have something missing in your database or have no permissions to access some object.

Did you create public synonym or granted permissions to DB Mail objects to the user who runs DB Mail functions?
Have you tried to reinstall DB Mail?

Please reply in the Oracle Tools message board.

: Hi! I would be pleased if somebody can help me. I have created all the
: database objects needed for DB Mail: send_mail, attach_data and
: attach_file functions, the mail_attach table and the mail_attach_seq
: sequence. Also are granted the necesary permissions and created the public
: synonyms for all them.

: I have permission to CREATE ANY DIRECTORY (with Read implicit) in Oracle.
: This database is on Windows NT 4, the Oracle Home is E:\orant, being E: a
: logical partition on the local server's HDD. The directory I've created is
: 'attachment', with the next syntax: CREATE OR REPLACE DIRECTORY ATTACHMENT
: AS 'E:\ORANT\NET80\ADMIN';

: Then, I try to send a message with an attachment: the file TNSNAMES.ORA,
: located in the mentioned directory. For that purpose, I used the
: attach_file function as seen on the DB Mail examples (replacing necessary
: data): DECLARE
: attach_id INTEGER;
: ret_code INTEGER;
: BEGIN
: attach_id := Attach_File(NULL, 1, 'tnsnames.ora', 'attachments');
: ret_code := send_mail('lrozas@lemans.cl', 'Test message with attachments...
: LEO', 'This message has one attachment... LEO', NULL, NULL, NULL,
: attach_id);
: END;
: /

: I receive the mail, but it comes with no attachment. The DB Mail console
: shows an error: table or view does not exist.

: Does somebody know what is happening? Thank you very much for your help and
: sorry about my english, I'm writing from Chile (we speak Spanish)...

Wed Mar 14, 2001 11:33 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.