Not able to Send HTML Content in Apex Mail
Hi,
I am using Oracle Apex 4.2 and Oracle 11g XE
I am trying to add HTML content in the apex_send mail procedure. But it give me the below error.
>>•ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
Below is the code i am trying to add in the apex_send mail
DECLARE
l_from varchar2(1000);
l_body CLOB;
l_body_html CLOB;
BEGIN
l_body := null;
l_body_html := '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta property="og:title" content="Seasons Greetings from sudhir Networks" />
<title>Seasons Greetings from sudhir Networks</title>
<style type="text/css">
/* Client-specific Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
/* Reset Styles */
body{margin:0; padding:0;}
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
table td{border-collapse:collapse;}
#backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
body, #backgroundTable{
/*@editable*/ background-color:#FAFAFA;
#templateContainer{
/*@editable*/ border: 1px solid #DDDDDD;
h1, .h1{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:34px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
h2, .h2{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:30px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
h3, .h3{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:26px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
h4, .h4{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:22px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
#templatePreheader{
/*@editable*/ background-color:#FAFAFA;
.preheaderContent div{
/*@editable*/ color:#505050;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:10px;
/*@editable*/ line-height:100%;
/*@editable*/ text-align:left;
.preheaderContent div a:link, .preheaderContent div a:visited, /* Yahoo! Mail Override */ .preheaderContent div a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
#templateHeader{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border-bottom:0;
.headerContent{
/*@editable*/ color:#202020;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:34px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
/*@editable*/ padding:0;
/*@editable*/ text-align:center;
/*@editable*/ vertical-align:middle;
.headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
#headerImage{
height:auto;
max-width:600px;
#templateContainer, .bodyContent{
/*@editable*/ background-color:#FFFFFF;
.bodyContent div{
/*@editable*/ color:#505050;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:14px;
/*@editable*/ line-height:150%;
/*@editable*/ text-align:left;
.bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
.bodyContent img{
display:inline;
height:auto;
#templateFooter{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border-top:0;
.footerContent div{
/*@editable*/ color:#707070;
/*@editable*/ font-family:Arial;
/*@editable*/ font-size:12px;
/*@editable*/ line-height:125%;
/*@editable*/ text-align:left;
.footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
.footerContent img{
display:inline;
#social{
/*@editable*/ background-color:#FAFAFA;
/*@editable*/ border:0;
#social div{
/*@editable*/ text-align:center;
#utility{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border:0;
#utility div{
/*@editable*/ text-align:center;
#monkeyRewards img{
max-width:190px;
</style>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
<center>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
<tr>
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Header \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
<tr>
<td class="headerContent">
<img src="http://www.sudhirnetworks.com/i/logo/sudhir-logo.png" style="max-width:600px; padding-top: 20px;" id="headerImage campaign-icon" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext />
</td>
</tr>
</table>
<!-- // End Template Header \\ -->
</td>
</tr>
<tr>
<td align="center" valign="top">
<!-- // Begin Template Body \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
<tr>
<td valign="top" class="bodyContent">
<!-- // Begin Module: Standard Postcard Content \\ -->
<table border="0" cellpadding="20" cellspacing="0" width="100%">
<tr mc:repeatable>
<td valign="top">
<img src="http://www1.sudhirnetworks.com/ecard/sudhir_holidaycard_clickhere.jpg" style="width:560px;" mc:label="postcard_image" mc:edit="postcard_image" mc:allowtext />
<div mc:edit="std_content00">
<strong>Custom Message</strong> goes here.
</div>
</td>
</tr>
</table>
<!-- // End Module: Standard Postcard Content \\ -->
</td>
</tr>
</table>
<!-- // End Template Body \\ -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>
l_from := lower(:app_user) || lower('@sudhirnetworks.com');
apex_mail.send(
p_to => :P1_TO,
p_from => l_from,
p_body => l_body,
p_body_html => L_BODY_HTML,
p_subj => :P1_SUBJECT);
APEX_MAIL.PUSH_QUEUE;
END;
Please suggest me how to fix this issue.
Thanks
Sudhir
What happens if the user isn't reading the message in a HTML enabled mail client?
Besides, even if you don't want to send an equivelant message in plain text, at least say something like 'Please open the message in an HTML enabled mail client'.
It is a required field, so requires some value (not null).
From the docs:
Plain text and HTML email content. Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.
Similar Messages
-
I am not able to see the contents of the mail in the screen although the mails appear in the list
I have registered my Yahoo, GMail and also my office mails on to my Apple Ipad. I am able to see listing of mails, the mail contents does not appear on the screen even after clicking on the mail.
Try closing the Mail app completely and see if the bodies of the emails show when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
Unable to send web content emails from mail as web page since upgrading to the new OS X 10.9
I am no longer able to send web content emails from mail as web page. The images / layout no longer transmit. This started when I upgraded to the new OS X 10.9. The emails appear correctly in the orginal message prior to sending but once they are sent all the images and layout are removed. The sent message folder shows the emails in the changed versions vs what the draft showed prior to sending. If the webpage is only an image my final sent message will only show an empty box with an question mark.
Hold down the option key and select
▹ System Information...
from the menu bar. In the window that opens, select
Hardware ▹ USB
from the list on the left. On the right you should now see a list of all connected USB devices, as well as some built-in components. Is the device shown? -
Not able to view the content in Microsoft help viewer (MS VS 2012)
Hello Team,
I'm Rahul from Daimler-Chrysler, Bangalore location. I’m the IT Engineer for Daimler-Chrysler.
We tried many settings in IE but still not able to resolved. So i need more expert help.
My customer having one issue-
# User is not able to view the content in Microsoft help viewer (MS VS 2012), below is the error: Its opening in HTML Format.
So please help me. Contact no- +91-9972004298. and personal id:- [email protected]/[email protected]
I call you to Microsoft customer care they advice me to ASK Question. Please help me, I'm waiting for your reply.
Thanks,
Rahul B. Patil.
+919972004298.Hi Sri,
it looks that your HANA instance has been created before we enabled the web-based development workbench. Some privileges are missing, we can't migration those existing instances.
Nevertheless you can ignore the error above. You can see all the content inside your instance "smstest1".
If you want to get rid of the cosmetic issue. You might delete this instance and create a new one.
Best regards
Xu -
Could not able to send email notification through approval workflow
Hi,
I am trying to send an email notification to the requester and approver on request creation and when the approver approves the request then an email should get triggered to the request with approve/reject outcome. All the SOA configuration has been done and also able to send test email through SOA console but could not able to send email through SOA composite.
For configuring an email notification, I am using notification tab in ApprovalTask, but still problem is not resolved.
Please help me in resolving the issue.
Thanks.Use this link to check again whether you have configured the Email driver properties properly. http://www.iamidm.com/2012/09/oim-11g-r2-lab-6-managing-notifications.html
Also check whether any firewall issue is there which is preventing OIM to contact the email server in sending out emails. Check the logs if there are any issues.
Also check this system property 'RequestNotificationLevel'. This property indicates whether or not notification is sent to the requester and beneficiary when a request is created or the request status is changed. If the value is 0 for this system property, make it 1.
I was facing a similar type of issue due to two reasons:
1. System property
2. Firewall
Check both of them and try again.
Edited by: Durgaprasad on Apr 15, 2013 2:08 AM -
Not able to add more content in a topic
Hi,
I am working on a project in RoboHelp7. The final output that I will be giving are seperate html files.
The problem that I am facing is, even if the helpbody height is set to auto, I am not able to see that content I add into a topic after a certain length.
However, the content that I've added can be seen if I open the html file of that topic.
Please help!!
Thanks,
DivyaWhere are you setting helpbody height?
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Outlook Calendar invite - Not able to send from exchange server.
Hi,
I am not able to send outlook calendar invite from exchange server. But if i installed outlook on my local machine/server it works fine. Below code the i used to build calendar invite for your reference.
public static void sendOutlookInvitationViaICSFile1(EAppointmentMail objApptEmail)
try
log.Info("Invite Started");
Microsoft.Office.Interop.Outlook.Application apptApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.AppointmentItem agendaMeeting = apptApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
DateTime venueDate = Convert.ToDateTime(objApptEmail.VenueDate);
string formatedVenueDate = venueDate.Year.ToString() + "/" + venueDate.Month.ToString() + "/" + venueDate.Day.ToString();
DateTime from = Convert.ToDateTime(formatedVenueDate + " " + objApptEmail.FromTime);
DateTime to = Convert.ToDateTime(formatedVenueDate + " " + objApptEmail.ToTime);
System.Net.Mime.ContentType typeHTML = new System.Net.Mime.ContentType("text/html");
//Create the Body in HTML format
string strBodyText = "Type:Single Meeting\r\nOrganizer: {0}\r\nStart Time:{1}\r\nEnd Time:{2}\r\nTime Zone:{3}\r\nLocation: {4}\r\n\r\n\r\n\r\n{5}";
strBodyText = string.Format(strBodyText, objApptEmail.Email, from.ToLongDateString() + " " + from.ToLongTimeString(),
to + " " + to, System.TimeZone.CurrentTimeZone.StandardName,
objApptEmail.Location, objApptEmail.Body);
if (agendaMeeting != null)
Console.WriteLine("started");
agendaMeeting.MeetingStatus =
Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
agendaMeeting.Location = objApptEmail.Location;
agendaMeeting.Subject = objApptEmail.Subject;
agendaMeeting.Body = strBodyText;
agendaMeeting.Start = from;
agendaMeeting.End = to;
Microsoft.Office.Interop.Outlook.Recipient recipient = agendaMeeting.Recipients.Add(objApptEmail.Email);
recipient.Type = (int)Microsoft.Office.Interop.Outlook.OlMeetingRecipientType.olRequired;
((Microsoft.Office.Interop.Outlook._AppointmentItem)agendaMeeting).Send();
log.Info("Invite Successfully End");
Console.WriteLine("End");
catch (Exception ex)
log.Info("Error: " + ex.Message.ToString());
Console.WriteLine("Error: " + ex.Message.ToString());
In exchange server/ not outlook installed server, i am getting below error.
"Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
Help me to send calendar invite without installing outlook on the specified server. Please do the needful.Hi
It is probably that the stuff you doing is for outlook and because outlook is not installed it cannot find the classes.
Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Notification mailer is not able to send mails to Outside domain i.e gmail
Hi All,
We are in 12.1.3 EBS application with 11.1.0.7 DB on Aix 64 bit platform:
resently we configured notification mailer with out any issues
But the issue is notifications are delivered to with in the domain itself but not to outside the domain i.e gmail and yahoo
SMTP server host name is owa.craftsmanautomation.com the same we used to configure the Notification mailer
Even we verified from os level using telnet utility as follows:
$ telnet owa.craftsmanautomation.com 25
Trying...
Connected to 192.168.5.8.
Escape character is '^]'.
220 Capl-cas01.CRAFTSMAN.LOCAL Microsoft ESMTP MAIL Service ready at Thu, 12 Jul 2012 14:03:47 +0530
EHLO CAPL-PROD
250-Capl-cas01.CRAFTSMAN.LOCAL Hello [192.168.5.12]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOW
MAIL FROM: [email protected]
250 2.1.0 Sender OK
RCPT TO: [email protected]
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Subject: Test message
Test message body
250 2.6.0 <[email protected]> [InternalId=85753] Queued mail for delivery
quit
221 2.0.0 Service closing transmission channel
Connection closed.
In the above command in place of FROM and TO mail-id's if we use any personal mail-id's getting error message as "Unable to Relay".Please suggest is there any changes we need to done at SMTP server Level or OS level or Application Level.
Thanks in Advance925263 wrote:
Hi Hussein,
Thanks Alot for your reply.
Currently we changed the SMTP Server(mail.craftsmanautomation.com).we used anoth SMTP server to configure Notification Mailer.Because previous one(owa.craftsmanautomation.com) is not able to send mail's to outside domains.
But in this case we got the below error message while testing.Below error message we captured from the output file of the script Oracle Workflow ATG Support: R12 Java Mailer Setup Diagnostic Test.
ERROR
[Nov 10, 2012 1:32:45 PM GMT+05:30]:1352534565017:-1:-1:capl-prod.craftsmanautomation.com:192.168.5.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:192.168.5.13:84096:1352529863628:11:ERROR:[SVC-GSM-WFMLRSVC-110812-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.send(Message)]:Problem encountered when sending to {[[WFTEST <[email protected]>]]} -> javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 5.7.1 <[email protected]>: Sender address rejected: Access denied
Please see these docs.
Email Not Received javax.mail.SendFailedException: Invalid Addresses [ID 876835.1]
Workflow Notification Mailer Unable to Send E-Mail Notifications [ID 374804.1]
Unable to Email Proposal Documents to an 'External Address' [ID 1126223.1]
How to address Email Center: Outbox Processor Error: Invalid Addresses [ID 1399427.1]
Thanks,
Hussein -
Hi All,
I am not able to send any SMS from my blackberry device from past one day. I have checked all possible things including my network, the message settings etc. I am able to choose contacts and type messages but when I am trying to send it it gets hanged , the track pad doesnot send it...even if I try clicking the green tab for options to choose,it doesnot wrk...as a result I have to press back, once i press back i see the typed message highlighted in green in my message box and if i click on it it goes away.The sent outbox doesnot show that the message is sent also when i enquire with the recipient they inform that message is not delivered. Could anybody advice why this can happen? also is this due to some virus? If so can the scan and restore back my curve with difault settings....reuqest you all to please please reply back soonnnnnnnnnnnnnn.......My curve model is 8520, carrier VODAFONE and OS v5.0..
Thanks ,
Prasun
Solved!
Go to Solution.You need to turn off the media sync in the Desktop Software, so that it does not occur immediately and only when you click to initiate it.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
I am not able to send messages to multiple person from my iphone 5s after updating to ios 8.1.2. It shows message not delievered
Hi waqaskhan91,
Thank you for visiting Apple Support Communities.
If you're not able to send text or iMessages to certain contacts after updating your iPhone, start with the troubleshooting tips in this article:
iOS: Troubleshooting Messages - Apple Support
If you only see this behavior with a few contacts, you may want to try these steps first:
If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
If the issue occurs with a specific contact or contacts, delete and recreate the contact from the Contacts app. Send a new message to the contact.
Best Regards,
Jeremy -
I'm not able to send emails with mail.ru. Receiving is not a problem. Creating a mail is also not a problem and the mail will be stored at mail.ru as still to be send, only problem is its not possible to send. I noticed the buttons for sending change colour when used but they don't perform. What it is?
Don't know what changed, but all of a sudden able to send emails by mail.ru ...... sorry for bothering.
-
My wife and I share the same email address and Apple ID. We are not able to send and receive Text Messages to one another. Is the cause of this because we share the same Apple ID? Will we have to set up 2 separate primary email addresses to be able to send and receive Tex Messages to one another? Like I said, we share the same email address and woul like to keep it that way to keep up with our email together. Is there a way to by-pass having to set up 2 primary emaill addresses if this is the problem?
Thanks.go to the settings and turn off imessage
but that don't change the issue that you will never be able to facetime eachtoher
the appleID is really meant as the handle that identify you it was not meant to be shared
but can see that people may want to do not buy apps more then once -
I can't synch my iPhone with iTunes because the device does not show up in a device window when I plug it in...it's missing in action and thus I'm not able to add any content from the iTunes to my iPhone, e.g. podcasts. All the instructions on synching start with "find your device in the device window". But what if you have no device window?
Missing "message" from above: The iPad "DGMTR" is synced with another iTunes library on DGMTR's MacBook Pro. Do you want to erase this iPad and sync with this iTunes library? An iPad can be synched with only one iTunes library at a time. Erasing and syncing replaces the contents of this iTunes library.
I thought the libraries were the same. -
Ever since I updated my iphone 4 to 5.1.1, I am not able to send more than one picture at a time in a text message. Does anyone know how to fix this?
Yes, I know the photos stored on the device... But which app are you accessing the photos with? Which app do you want to be able to highlight more than one pic at a time in?
There are literally thosands of apps that access the iOS Photo Library - which one(s) are you using? -
Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMessages.
Kolyei, sorry for the late reply.
Have your brother create a contact in his phone for himself. Inside his own contact, have him add his phone number and his iCloud address.
Settings > Messages > Send & Receive Have your brother select both his phone number and email addresses where he would like to receive iMessages.
Maybe you are looking for
-
Hi I am doing some BPM and I have a scenario where we send a message into BPM and I need to split the message. The Source Message has Header, Account and Details I want to split this so one message has Header and Account The other Message has Header
-
Error in invoking servlet from JSP
Hi - again! after being thoroughly reprimanded for posting on the wrong board, and hence seeing the error in my ways, all help greatly appreciated.... I have read elsewhere that it is possible to call a servlet (which produces HTML) from within a JSP
-
I'm trying to copy a version of the forecast from the working version to V1 with the following script: //ESS_LOCALE English_UnitedStates.Latin1@Binary SET UPDATECALC OFF; SET CLEARUPDATESTATUS OFF; SET AGGMISSG ON; FIX ( Forecast, V1, FY12, FY13, FY1
-
How to enable Further Entry Information from Entries Screen
How to enable Further Entry Information field from Entries Screen. My requirement is to add a new input value in an existing element but system is not allowing me to enter a new input value , so I have decided to use Further Entry Information if it i
-
My time machine will not back up. I get a Time Machine Error message that reads: "The backup disk image "/Volumes/Backup/(myname)'sMacBook Pro.sparsebundle" is already in use. I have not been able to back up for two weeks, I think this occurred after