pg_utl_smtp
Oracle UTL_SMTP compatibility extension for PostgreSQL
pg_utl_smtp : Oracle UTL_SMTP compatibility extension for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9290 | pg_utl_smtp | pg_utl_smtp | 1.0.0 |
SIM | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | utl_smtp |
| Requires | plperlu |
| See Also | pg_smtp_client omni_email orafce pg_html5_email_address emailaddr pg_dbms_metadata pg_dbms_lock pg_dbms_job pg_dbms_errlog db2fce |
runtime requires plperlu and Perl Net::SMTP
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 1.0.0 |
18 17 16 15 14 | pg_utl_smtp |
plperlu |
| RPM | PGDG | 1.0 |
18 17 16 15 14 | pg_utl_smtp_$v |
- |
| DEB | PIGSTY | 1.0.0 |
18 17 16 15 14 | postgresql-$v-utl-smtp |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| el8.aarch64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| el9.x86_64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| el9.aarch64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| el10.x86_64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| el10.aarch64 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 | PGDG 1.0 |
| d12.x86_64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| d12.aarch64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| d13.x86_64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| d13.aarch64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u22.x86_64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u22.aarch64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u24.x86_64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u24.aarch64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u26.x86_64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
| u26.aarch64 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 | PIGSTY 1.0.0 |
Source
github.com/hexacluster/pg_utl_smtp
pg_utl_smtp-1.0.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
Usage
pg_utl_smtp: Oracle UTL_SMTP compatibility extension for PostgreSQL
Enabling
Sending an Email
Procedures
- OPEN_CONNECTION(host, port, tx_timeout, …) - Opens a connection to an SMTP server. Returns a
utl_smtp.connectiontype. Supports SSL/TLS viasecure_connection_before_smtp. - EHLO(c, domain) / HELO(c, domain) - Performs initial SMTP handshake.
- MAIL(c, sender) - Initiates a mail transaction.
- RCPT(c, recipient) - Specifies e-mail recipient. Call multiple times for multiple recipients.
- OPEN_DATA(c) - Sends the DATA command to begin message body.
- WRITE_DATA(c, data) - Writes a portion of the message body.
- WRITE_RAW_DATA(c, data) - Writes raw data to the message body.
- CLOSE_DATA(c) - Closes the data session.
- QUIT(c) - Terminates the SMTP session and disconnects.
Connection Type
Notes
- Requires the Perl
Net::SMTPmodule installed on the system - Use
E'\r\n'for line breaks instead ofutl_tcp.crlf - The
wallet_pathandwallet_passwordparameters are not used