Link to home
Start Free TrialLog in
Avatar of globalwm
globalwm

asked on

Using MAIL_FILES procedure (PLS-00201 error)

<Newbie to Procedures and Packages>

I've created the MAIL_FILES procedure successfuly:

http://home.clara.net/dwotton/dba/oracle_smtp.htm

and now, I want to test using:

execute MAIL_FILES ( from_name='oracle',to_name='myemail@mydomain.com',subject='A test',message='A test message');

but I'm getting:

ERROR at line 1:
ORA-06550: line 1, column 20:
PLS-00201: identifier 'FROM_NAME' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

(v8.1.7.4 Win2k btw)


Any ideas on what I'm doing wrong?
ASKER CERTIFIED SOLUTION
Avatar of biglaxman17
biglaxman17

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of globalwm
globalwm

ASKER

Thanks, that was (simply) it. Forgot about just specifying the vars...

Now, onto the next errors:

ERROR at line 1:
ORA-29540: class oracle/plsql/net/TCPConnection does not exist
ORA-06512: at "SYS.UTL_TCP", line 537
ORA-06512: at "SYS.UTL_TCP", line 199
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 121
ORA-06512: at "SYSTEM.MAIL_FILES", line 133
ORA-06512: at line 1

heh