473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

UTL_SMTP Stripping MIME-Version header information

Hello,

I am attempting to attach a .pdf file to an email generated using
oracle's utl_smtp. I am working on Oracle9i Enterprise Edition Release
9.2.0.4.0. I beleive that the utl_smtp.write_data is stripping out
part of what I am passing to it. Here is the code I am having trouble
with:

utl_smtp.write_data(conn, 'From: "Curious George" <cg@apollogrp.edu>
'||crlf);
utl_smtp.write_data(conn, 'To: "Scott Watson" <'||v_recipient||'>
'||crlf);
utl_smtp.write_data(conn, 'Subject: '||v_subject||' '||crlf);
utl_smtp.write_data(conn, 'Date: '||to_char(sysdate,'Day, DD Mon YYYY
HH:MI:SS')||crlf);
utl_smtp.write_data(conn, 'MIME-Version: 1.0'||crlf);
utl_smtp.write_data(conn, 'Content-Type: '||v_content_type||'
'||crlf);
utl_smtp.write_data(conn, ' boundary"'||v_boundary||'"'||crlf);
utl_smtp.write_data(conn, 'X-Priority: '||v_priority||' '||crlf);
utl_smtp.write_data(conn , 'X-Unsent: 1'||utl_tcp.CRLF);
utl_smtp.write_data(conn, 'X-MSMail-Priority: Normal'||crlf);
utl_smtp.write_data(conn ,'X-Unsent: 1'||crlf);
utl_smtp.write_data(conn ,'X-MimeOLE: Produced By Microsoft MimeOLE
V5.00.2919.6700'||crlf);

I saved the email as a .txt file to see what was going on:

From: Curious George [cg@apollogrp.edu]
Sent: Thursday, March 03, 2005 1:49 AM
To: Scott Watson
Subject: Store IRN Nbr for all Factulty

Importance: High

The 'From:', 'To:' and 'Subject:' are written correctly but the rest is
stripped out. The x-priority is changed to 'Importance' so I am
assuming that utl_smtp is checking out what I am passing and making
changes to or excluding some information that is passed.
If I remove the 'Importance: High' and replace it with the information
that was stripped out the attachment works.

I guess my question is, why is this information being stripped out,
does utl_smtp not support setting up the MIME information? And can I
view the source code of the utl_smtp package to see exactly what it is
doing when it removes this information?

Regards,

Scott Watson

Jul 19 '05 #1
0 4800

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jorge Pinto | last post by:
Hi folks, I'm having a problem with initjvm.sql. I created a procedure to send a message using utl_smtp and when I run it, I got an error ORA-29540. I read that I needed to install JVM so I...
2
by: Patrick | last post by:
Hello, after learning that I was taking a class in VB.NET, I have been drafted to solve all my companies VB/scripting problems - hey, I should know everything; I've already taken 6 classes ;) I...
4
by: Lu | last post by:
Hi, i am currently working on ASP.Net v1.0 and is encountering the following problem. In javascript, I'm passing in: "somepage.aspx?QSParameter=<RowID>Chèques</RowID>" as part of the query...
4
by: Spondishy | last post by:
Hi, I'm looking for help with a regular expression and c#. I want to remove all tags from a piece of html except the following. <a> <b> <h1> <h2>
7
by: Edward Elliott | last post by:
I'm looking for the "best" way to strip a large set of chars from a filename string (my definition of best usually means succinct and readable). I only want to allow alphanumeric chars, dashes,...
1
by: fabrizio.viggiani | last post by:
I need to send a mail message to an SMTP server. The .net framework provides System.Net.Mail namespace to send an email: - Build a System.Net.Mail.MailMessage and send it using SmtpClient The...
0
by: comp.lang.php | last post by:
if (!function_exists('mime_content_type_fileinfo')) { /** * Will use {@link http://us2.php.net/fileinfo FileInfo} functions provided within {@link http://pecl.php.net PECL} bundle to return mime...
1
by: comp.lang.php | last post by:
<pre> if (!function_exists('mime_content_type_fileinfo')) { /** * Will use {@link http://us2.php.net/fileinfo FileInfo} functions provided within {@link http://pecl.php.net PECL} bundle to return...
1
by: Anna C. Dent | last post by:
Jorge Pinto wrote: You need to manually & properly MIME format the message.
5
by: vamsioracle | last post by:
Hi all, I have a problem with the ult_smtp package. Let me explain how the structure of my code is procedure------------ begin declarations of variables and cursors...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.