Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
problem sending mail using UTL_SMTP (STARTTLS ?)

jort
Member Posts: 43
I am getting the following error using the UTL_SMTP package.
"SMTP Permanent error: 530 5.7.0 Must issue a STARTTLS command first"
Can anyone tell me how to work around this? I'm using AUTH LOGIN to pass in a username and password.
Thanks,
Josh
"SMTP Permanent error: 530 5.7.0 Must issue a STARTTLS command first"
Can anyone tell me how to work around this? I'm using AUTH LOGIN to pass in a username and password.
Thanks,
Josh
Comments
-
Did You encode USER and PASSWORD to connect?
After which command did You rerceive the error? -
Sorry. UTL_SMTP does not support SSL currently (which seems to be what your SMTP server requires according to the STARTTLS message). This should be an enhancement request.
If you need to send email from the database that requires SSL, you may consider using Java stored procedure and JavaMail API instead.
Thanks. -
Dear experts,
Can you please answer my questions? Thanks In Advance.
1. Is UTL_SMTP able to support STARTTLS after more than 1 year has passed? If it is, how can we issue the command "STARTTLS" to the database?
2. How do Oracle Databases support STARTTLS in a general way, apart from Oracle Virtual Directory and Oracle Mail?
Best Regards,
Jing Huang -
rpang wrote:Hi,
Sorry. UTL_SMTP does not support SSL currently (which seems to be what your SMTP server requires according to the STARTTLS message). This should be an enhancement request.
Anyone knows if this functionality is actually available on 10.2.0.4 version ??? or not yet ???
Thanks -
It's only supported in Oracle Database 11g Release 2 (11.2.0.2)
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/u_smtp.htm#CHDHHBJD
Edited by: Filipe Silva on Sep 16, 2010 1:06 PM -
am following up the link
BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''127.0.0.1'''; UTL_MAIL.send(sender => '[email protected]', recipients => '[email protected]', subject => 'Test Mail', message => 'Hello World', mime_type => 'text; charset=us-ascii'); END; /
but it result inERROR at line 1: ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command first. bj7sm12523388pab.24 ORA-06512: at "SYS.UTL_SMTP", line 21 ORA-06512: at "SYS.UTL_SMTP", line 99 ORA-06512: at "SYS.UTL_SMTP", line 222 ORA-06512: at "SYS.UTL_MAIL", line 407 ORA-06512: at "SYS.UTL_MAIL", line 594 ORA-06512: at line 3
so i had question by utl_mail can able to send email or not?
following scenario.
from my1companydomainmail.com to my2comapnydomainmail.com
from gmail to mycompany domain.com -
Check if SMTP_OUT_SERVER is set properly.
Refer -- http://docs.oracle.com/cd/B12037_01/server.101/b10755/initparams198.htm -
SMTP_OUT_SERVER : am using smtp.gmail.com
This discussion has been closed.