ORACLE Send Email using SSL - oracle

is it possible to send e-mail over ssl in plsql?
thanks for helping.

Not with pure PL/SQL afaik. We added some java classes to the database which performs the SSL mail sending with the java mail api.

Oracle's UTL_SMTP does not support SMTPS (SMTP over SSL) - you have to wrap the connection. See this link for a working, but not recommended for production use, example.

Related

Is it possible to create a websocket server with Oracle?

I came accross the following article that explains how to make connections from Oracle PL/SQL to Websocket server : https://www.opencodez.com/oracle/oracle-pl-sql-programming-socket-connection.htm
In the example the Websocket server is written in Java.
I would like to know please if it's possible to create such Server with Oracle PL/SQL or Apex ? Which means a server that accepts websocket connections entirely inside Oracle environment.
I know that Oracle Apex allows to create RESTful API server. Was wondering if there is something that can be done for Websockets.
Thanks,
Cheers,

Mule connection to Exchange Server

I need to connect to Exchange Server in Mule but Mule provided OOB IMAP and POP3 are not enabled on our exchange server hence we cannot use them.
Can anyone shed some light here on other alternative ways to connect to exchange server and read the emails.
Mule mail transport implements standard transports, these being IMAP, POP3 and SMTP.
If you need anything beside these to access your mail server you should consider writing a custom connector using devkit.
An example of such an approach is the gmail connector that leverages google API to retrieve emails rather than the standard mail transport.
Most of the connections from the Internet are handled by IIS on the Exchange Server. The options can be:
RPC Over Https. Well known as “Outlook Anywhere”.
EWS. Mostly used by MAC Outlook.
Activesync – Mobility
ECP – management console, configuration via OWA
Thanks,
hope answer the question

How to send email alerts without SMTP server? [duplicate]

I have a .Net application. I want this application to send an email to me. How do I implement this without installing an SMTP server?
Using an SmtpClient to send a MailMessage does not require you to have a server on your local machine.
Your e-mail service provider is the one with the server (e.g. smtp.gmail.com), and your SmtpClient talks to it.
This article by Peter Bromberg on eggheadcafe.com
C# SMTP Mail without SMTP Service or CDO
explains how to send email without relying on an SMTP client:
Sending email via TCP using the native
SMTP RFC commands "HELO", "MAIL From",
RCPT TO", etc. is no big deal. That's
one of the first tricks we learn with
Telnet. Finding or writing managed
code that will do so reliably is
another story. The code in the class
that follows is not my original code -
I've cobbled it together from three
different sample sources, fixing
namespaces, error handling, and other
minor items, changing console code to
class library code, and providing a
complete Winforms - based test harness
front end that illustrates its correct
usage.
I've also included sample code
to correctly process and add a mail
attachment via an OpenFileDialog here.
This code MIME encodes and transmits
the attachment(s) according to the
specification.
You can't send email without the services of a SMTP server, there is of course no need for you to install one, just point your code at your ISPs SMTP server or your companies Exchange server (or what ever they use).

Send mail through gmail SMTP server using Win API

I am trying to use gmail's SMTP server smtp.gmail.com to send mails using C in Windows. I am able to connect to port 587 of the server, however the server responds by saying that STARTTLS/TLS is needed. Is there any Windows API call for starting a TLS connection ?
Should I even consider writing this application in C or use Python ?
Edit: Has anyone been able to send a mail by connecting to smtp.gmail.com using Telnet ? What I got was
220 mx.google.com ESMTP g4sm73428740wae.2
HELO hello
502 5.5.1 Unrecognized command. g4sm73428740wae.2
HELO hello.hello
250 mx.google.com at your service
MAIL FROM:a#gmail.com
530 5.7.0 Must issue a STARTTLS command first. g4sm73428740wae.2
STARTTLS
220 2.0.0 Ready to start TLS
MAIL FROM:a#gmail.com
and the connection is lost
You are going to need either a .NET wrapper around Microsoft's SmtpClient to create a DLL that can use the .NET features for SSL/TLS support through SMTP or use OpenSSL to handle the connections.
It would probably be beneficial for you to write this in C++. I am not familiar with Python, but I am sure there are libraries such as TLS Lite (Edit: see below, smtplib apparently provides you this functionality too).
Edit: Based on your edit, you have to have a program that knows how to handle the STARTTLS command. GMail requires secure connections and a username/password by default on all SMTP connections. You can connect to port 25, but you'll have to switch to the secure port after the initial connection. This is why, when you go to http://mail.google.com, it automatically switches to https connection. There was a whole big discussion about this on the Internet some time ago..
If you do not want to use OpenSSL or other third-party SSL/TLS library, then you can use Microsoft's own SSPI/SChannel APIs instead. It can be used on top of a socket, where the socket handles the low-level input/output of bytes, and you pass the bytes in/out of SSPI/SChannel functions for processing.
If you choose to write it in C then you will need a library like GNU SASL, which enables secure SMTP authentication. If you opt for C++ as was previously suggested then I would look at VMime, which is a free C++ library that uses GSASL. There is an example on the site that shows how to connect to GMail.

Ruby ultra simplistic mail server

I am trying to create a simple ruby mail server ( SMTP server) just or fun. I tried the code in the http://snippets.dzone.com/posts/show/3932
I am not able to sendmail from my machine. I also posted comment there but no reply ;(.
Can any you please help me by giving a pointer or a simple ruby smtp server that can send mail to my gmail account without using a SMTP servers or MTA.
Your SMTP server still needs to connect to smtp.gmail.com to forward your mail. The protocol for doing so can be found in RFC821 (http://james.apache.org/server/rfclist/smtp/rfc0821.txt)
It looks like the example above just allows you to connect to the SMTP server on localhost and store mails locally.

Resources