Problem with APEX 4.1 Email to values

Hi,
I thought this would be a simple one, but not sure if the syntax is correct. Basically, I need to pick up the email from a text field and pass that email to the APEX MAIL. send procedure. Now when I enter the actual email in the APEX_MAIL.send e.g
previous code....
apex_mail.send(
p_to => '[email protected]', -- change to your email address
p_from => '[email protected]', -- change to a real senders email address
p_body => l_body,
p_body_html => l_body_html,
p_subj => 'APEX_MAIL Package - HTML formatted message');
END;
works fine.
But when I try something like
apex_mail.send(
p_to => :P1_EMAIL_ADD, -- change to your email address
p_from => '[email protected]', -- change to a real senders email address
p_body => l_body,
p_body_html => l_body_html,
p_subj => 'APEX_MAIL Package - HTML formatted message');
END;
I tried, V('P1_EMAIL_ADD') also in the ampex_mail.send call.
Can you advice?
Thanks,
Sun

>
Please read the FAQ and forum sticky threads. Always include the following information with your initial question:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
Always post code&mdash;any and all code, including HTML and CSS&mdash;in <tt>\...\</tt> tags.
I thought this would be a simple one, but not sure if the syntax is correct. Basically, I need to pick up the email from a text field and pass that email to the APEX MAIL. send procedure. Now when I enter the actual email in the APEX_MAIL.send e.g
previous code....
apex_mail.send(
p_to   => '[email protected]',   -- change to your email address
p_from => '[email protected]', -- change to a real senders email address
p_body      => l_body,
p_body_html => l_body_html,
p_subj      => 'APEX_MAIL Package - HTML formatted message');
END;works fine.
But when I try something like
apex_mail.send(
p_to   => :P1_EMAIL_ADD,   -- change to your email address
p_from => '[email protected]', -- change to a real senders email address
p_body      => l_body,
p_body_html => l_body_html,
p_subj      => 'APEX_MAIL Package - HTML formatted message');
END;
Where/when is this code run?
Is there a valid email address in <tt>P1_EMAIL_ADD</tt> when it runs? (Check the value in the session state viewer.)
What happens? Is there an error message? No mail sent?
In the SQL Workshop, check the mail queue:
select * from apex_mail_queueand the mail log:
select * from apex_mail_logfor errors.

Similar Messages

  • Problem with Apex hosted SQL Workspace

    Hi,
    I am having trouble with using currval on this site in SQL workshop. I have a demo table and have defined a sequence via sql. I successfully insert a sequence_name.nextval but when I try to add a related child record with current value of the sequence I keep getting this:
    ORA-08002: sequence ORDERS_ORDER#_SEQ.CURRVAL is not yet defined in this session
    I can check on nextval from dual and I can select the currval from dual also but when I try to use the currval in an insert, I get the same error above. Also, sometimes I get the same message even when selecting currval from dual. Seems like a problem with Apex at this hosted site. Or does Apex SQL workshop have issues with currval.
    PM

    Scott, Can you explain a little more about the difference between a hidden item that is set to display never & the other type of item which I am assuming is "display as text saves state" and display never?
    When I viewed the source for both of these I could not see the items in source code.
    Also for an item that is passed into a popup I am exposing hidden item's identity is there a different way to pass values... here is my example:
    <!-- Begin of popup for DNS_NAME -->
    <script language="JavaScript" type="text/javascript">
    <!--
    <!-- window size was 800*600 -->
    <!-- window size was 400*300 -->
    function popupPage(url) {w = open(url,"winDnsName","Scrollbars=1,resizable=1,width=500,height=450"); if (w.opener == null) w.opener = self; w.focus(); }
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function callDnsNamePopup (IPId) {
    var IPId = document.getElementById('P103_IP_ID').value;
    var url;
    url = 'f?p=110:106:2066309280674317::::P106_IP_ID:' + IPId;
    w = open(url,"winDnsName","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    <!-- END of popup for DNS Name -->
    At the same time if I set an item as hidden and display never I cannot use it with a call to a popup...

  • Problem with complete task via email

    Hello,
    I have problem with complete task via email. I found this blog very useful (http://blogs.adobe.com/ADEP/2010/11/how-to-complete-a-task-via-email-using-reply-to-comple te.html), but...
    I set up everything as it’s written in blog mentioned above. When a task is assigned to me, I received an email notification with actions (accept, deny). After that I replied with action “accept”. Then I received email with subject “Errors from LiveCycle ES”:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.pof.POFRuntimeException: Transaction is not active: tx=TransactionImple ; – nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple )
    This response to your original email
    Subject:RE:Task Assignment – Process: Test/Email_Test. Task 76 has been assigned to you.
    Date Sent:Thursday, October 24, 2011 1:17 PM
    Body:accept
    DO-NOT-DELETE: MTMhMzE0ITMyOA==!
    Attachments:
    In log appeared this following error:
    Caused by: ALC-DSC-215-000: com.adobe.idp.dsc.DSCRuntimeException: None of the Auth Provider could authenticate the user. Authentication Failed
    at com.adobe.livecycle.notification.TaskNotificationServiceImpl.processEmailComplete(TaskNot ificationServiceImpl.java:1157)
    Can you me please? I have no idea what to do to succesfully complete task via email endpoint. Thanks
    Jan Petrla

    Hi Diana, thanks for your reply.
    You're probably right about 2 different error messages.
    To the 1st one: I'm sure that status task is Assigned (to me). I received an email and I also reply on that email.
    To error log: I found out that error log appears when I enable email endpoint on Complete Task service. But I managed to solve this problem. I set wrong user. Now I have here the same user as is written in login-config.xml so log seems to be ok.
    So I created new task and tried to complete it via email. Now I receive email with another error:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.idp.dsc.provider.service.email.impl.EmailProviderException: Error getting user context
    This response to your original email
    Subject:RE:Task Assignment - Process: WorkFlowClient/Test. Task 92 has been assigned to you.
    Date Sent:Thursday, October 27, 2011 3:05 PM
    Body:Complete
    DO-NOT-DELETE: MTIxMSExNjAzITIwMTE=!
    Attachments:
    And to the last point: email endpoint is set up with TestPOP3@mydomain and user receiving email has jpetrla@mydomain. I use Lotus Notes as email client, I tried another account with gmail, but the result was same.
    Now I really don't know to do...
    Jan

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • I gotta problem with security question recovery email I'd, mistakenly I entered wrong email I'd so now I want to edit that I'd plz help me

    I gotta problem with security question recovery email I'd, mistakenly I entered wrong email I'd so now I want to edit that I'd plz help me

    expresslane.apple.com to get a hold of itunes to reset them by email the only way

  • Problem with contact list in email w/ 3.0

    After upgrading to 3.0 I'm having a problem with the "To" in emails. I start typing in a name in the "To" field and it does not bring up matching entries in my contact list (it used to do so with the previous version SW).
    I have to try to send the email at which time an error message comes up. I have to cancel the send, delete the name in the "To" field and type the name in again. The second time it brings up the contact list and eveything works fine.
    Anyone else having this problem?

    Jackson_Bill wrote:
    What IDE are you using and what platform?Read first.
    Moh Bob wrote:
    I'm using J2ME platform SDK 3.0
    db

  • After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    I am having the same problem also  Thought it was my network and reset everything including Apple TV but still the problem is there . I assume now it is down to iOS 8 prior to that was perfect

  • Hi im having problems with my internet and email ive reset the network even with my wifi on ive also turned off and on airplane mode help please thank you

    hi im having problems with my internet and email Ive reset the network even with my WiFi on Ive also turned off and on airplane mode help please thank you

    hi Ive reset my network toggled the airplane on and off and turned off my carrier off then turned my phone off and turned my carrier back on but still problem persists

  • Problem with Apex: wwv_flow.accept

    Hello!
    I've developped an application which worked perfect since nearly one year. Now - suddenly - when changing data in an tabular form and pressing the submit button this page appears:
    <h1>Not found</h1>
    The requested URL /apex/wwv_flow.accept was not found on this server
    <br>
    From time to time it seems to work again, but then - after changing some data again... it appears again. Turning Debugging on has no effect. Do someone know or give me some advice what went wrong? Thank you Johann Message was edited by: horvatj
    I aksed this topic in the APEX Forum - see thread:
    Problem with Apex: wwv_flow.accept
    Scott answered:
    Johann - Check the Apache error log for more details.
    Okay, but XE doesn't use Apache!?
    How can I access the logfiles?
    Where can I find them?
    Thank you
    Johann

    If you believe it or not, I solved without any logfile...
    The problem was some kind of corrupt data.
    After correcting this everything works fine again. I really don't know why this not found error occurs, but ;-)
    Thanks Johann

  • Installation Problem with APEX 3.1 on 11g

    Hey,
    I've a big problem with apex3.1 on 11g. Yesterday i wanted to install the new version, which i've downloaded from the oracle server. Furthermore i have followed the instructions by the documentation.
    i executed:
    1. apexins.sql FLOW_1 USERS TEMP /i/ Is that correct?
    2. apxconf.sql
    Do i have do remove the old version (3.0)?
    Thanks for your help
    Best Regards,
    Andi

    Hi Andrea,
    I tried to reproduce this and could not.
    I created a new 11.1.0.6 database on Oracle Enterprise Linux with character set WE8MSWIN1252. I even did this with an OS locale of Italian (and trust me, it was a struggle, as my Italian is about as weak as my German). The only thing that is different between my test and your configuration is the server OS.
    I then installed APEX 3.1, tried it in browser language 'it' and 'en-us', but I could not reproduce the issue.
    Can you think of anything atypical in your configuration, installation, or database parameter settings?
    Joel

  • Having a problem with Firefox using Hotmail email. Inbox - as checking messages it freezes up or a 1 item window follows cursor and does not allow you to enter

    I am having a problem accessing Hotmail email messages via Fireflox server. When I am in the Inbox, reviewing messages, it either freezes up or a "1 item" small icon window follows cursor and does not allow me to enter messages or do anything. Have to log off and start over. Suggestions>?

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • Problem with searching for 'empty' emails with BAPI_BUPA_SEARCH

    Dear ABAP'ers.
    I have got a small problem with BAPI_BUPA_SEARCH.
    I Use this BAPI to search for Business Partners with the Email condition.
    I put rhe Email to lv_email variable, it works ok.
        lv_email = ' '
        CALL FUNCTION 'BAPI_BUPA_SEARCH'
          EXPORTING
            email = lv_email
          TABLES
            searchresult = lt_searchresult   <= returns no BuPas
            return       = ls_bapiret2  .
    But I need to have a possibility to search for such Business Partners who have got no email address. Unfortunatellu when I pass an empty lv_email to BAPI, it returns no Business Partners whilst such BuPas exist in database.
    Is there some possibility to search for those BuPas who have got no email address assigned?
    I will be thankful for help.
    Regards,
    P.

    Can you query ADR6 table where SMTP_ADDR = space.
    and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that ..

  • I have a problem with mail autofilling info email addresses. Emails sent to me the from looks like this: Holiday in the United States email address . I have no idea what this Holiday in the United States is...How can I fix/change to my name?

    I have an irritating problem with mail autofilling info in email addresses. Emails sent to me the from looks like this: Holiday in the United States <my email address>. I have no idea what this Holiday in the United States is or how it got to be there...How can I fix/change to my name?
    I fixed the To: autofilling incorrectly by deleting my email address from the Previous Recipients List, but is there a way to stop that from coming up on emails that I receive?

    Have you checked your Mac address book? If your email is saved somewhere in your address book with the name "Holidays in the United States" it might be adding the name automatically in Mac Mail.
    Alternatively, try this:
    Delete an Email Address from Auto-Complete in Mac OS X Mail
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: About.com

  • Problem with call log and email signature.​..

     Hi, I have 2 little problem with my BB
    First, the day won't appear in the call logs. It only displays the month like 08/dd.
     Pic 1
    Second, when I send emails, my signature gets all mixed up because of my french punctuation, any idea why ?
    Pic 2
    Message Edited by Jerg on 08-09-2009 11:29 AM
    Message Edited by Jerg on 08-09-2009 11:31 AM

    Wow, that's REALLY low. That number means there's only 6MB free. It's recommended to have AT LEAST 15MB free. Check under Options | Status, hit the menu button, then choose Database Sizes. What number is listed for Total Size at the top?
    If the Content Store is really big then that means all of the media files (pictures, videos, etc) are being saved in the device memory rather than on a media card. Does your boss have a media card to store the media on?
    Did you also change the Keep Appointments setting to something lower like you did with the Keep Messages setting?
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Problems with compressed words in emails sent through Outlook in Office for Mac 2011

    I have had problems with sending emails through Outlook both when:
    1) I copied text from a Word document and pasted into an email.
    2) I shared as HTML and sent an email.
    The problem I experience is that emails are received with random spaces dropped, such that words get merged together.
    I have spoken with Microsoft and have been told that problems with the copy and paste from Word into Outlook is a known issue.
    However, I have been told that I should be able to "Share as an HTML" in an email without issue. However, the very same problem exists.
    Now I am told that this may be a problem with my documents. However, I have had a colleague use my docs in the same way in Outlook on his PC without a problem. The other possibility I am told is that possibly I have a problem with my OS.
    Have others expererienced the same problem?

    Is your Outlook window formatted as HTML or text only? A word file has formatted text. If you want to copy only the text from your Word file, you should make a detour over a TextEdit window, or if you have BBEdit like follows:
    Copy your Word text, paste it into a TextEdit window - in this window you have to make a command first SHIFT + COMMAND + T if you have a window allowing formatting ("rich text"). Copy it once again - all the Meta formatting from Word are eliminated now! - and paste the text into your Outlook Window.
    If you want to send an HMTL Email, I am not sure, whether a copy and paste between Word and Outlook will work. This would mean, that the copy and paste should transform the Word-formatting into HTML-formatting fit for Outlook. Perhaps some others could answer this question.
    marek

Maybe you are looking for

  • Help with problem connecting to itunes

    My son's Ipod touch is not showing up as being recognized by Itunes. We did and reset on it and now all that comes up on his screen are the icons that show to plug your ipod into the USB port so it can link with Itunes. When we plug it in nothing hap

  • Issue in mapping Operation subcontracting scenario

    Hi all, I will explain my scenario of subcontracting, i am getting issue when mapping the scenario in SAP. Scenario: For manufasturing 1 SF my client require 4 operations. All the raw materials required will be issued in the first operation. After fi

  • IPhone screen on other monitors

    Is there a way to get the iphone screen to shjow up on another minitor?

  • Pb with getting Dreamweaver evaluation version

    Hello, I downloaded an evaluation version of Adobe Creative Cloud (in 2014, October the 8th), because I wanted to evaluate Dreamweaver before buying it. But in the Apps window, I could never see anything (except the hourglass icon...). I have to say

  • Cannot change Desktop Background image

    When I go to change my Desktop Background, it will try and load up the pictures in my Pictures folder (but no subfolders). I can switch my background to one of these images, even though the "Loading" progress bar is still visible. Here is the odd thi