P-Track Application Not Sending Mail

I'm running the P-Track application on APEX 4.2.2 w/ Embeded PL/SQL gateway Oracle 11.2.0.2 DB. Whenever I try to send a report via email from the app it says it was successfully sent, however no email is received. Whenever I check the APEX mail queue I can see the messages with the following error:
ORA-29279: SMTP permanent error: 501 5.1.7 Invalid address
I tried the format "[email protected]" and "apexuser" (valid APEX user) but neither work.
I can successfully send email from within APEX but not the application.
Thanks,
Leighton
Edited by: LeightonLNelson on May 13, 2013 1:11 PM

In the schemas with ptrack, I created this function to be called by apex (I prefixed it with EBA so that I would easily identify this as being part of apex packaged apps, as they do their code) with the comma delimited string of "people":
create or replace
FUNCTION  EBA_VALIDATE_EMAIL
  (p_email      IN  VARCHAR2
  ,p_domain  IN  VARCHAR2 DEFAULT '@yourdomain.org')
  RETURN VARCHAR2 IS
  lt_emails  apex_application_global.vc_arr2;
  email_string varchar2(4000);
BEGIN
  -- split string into separate addresses
  lt_emails := apex_util.string_to_table(p_string    => REPLACE(p_email,' '), p_separator => ',');
   FOR i IN 1..lt_emails.COUNT LOOP
    if (instr (lt_emails(i), '@')=0) then -- no at sign, so lets append the default domain or the passed domain
      lt_emails(i):=lt_emails(i) || p_domain;
    end if;
    email_string:=  email_string || ',' || lt_emails(i); -- assemble the new list
  END LOOP email_val;
  return substr(email_string,2); -- remove leading comma and return the new list
END EBA_VALIDATE_EMAIL;ie, input could be "Joe, [email protected], [email protected], frank, ron" and it'd return *"[email protected], [email protected], [email protected], [email protected], [email protected]"*
In any apex application, but in this case P-Track, I wrap the page variable with the function in the page process where email is sent, from inside the apex_mail_send calls: on Page 20, 37, and 85 - I haven't made any other changes:
*(this is a snippet from P20):*
declare
   l_clob clob;
   l_message varchar2(4000);
   l_to varchar2(64):=:P20_TO;
   l_from varchar2(64):=:P20_FROM;
   l_cc varchar2(64):=:P20_CC;
begin
for c1 in (select clob001 from apex_collections where collection_name = 'EMAIL') loop
l_clob := c1.clob001;
l_message := nvl(:P20_MESSAGE,'');
l_clob := '<html><body>'||l_message||l_clob||'</body></html>';
APEX_MAIL.SEND(
    p_to => eba_validate_email(l_to),
    p_from => eba_validate_email(l_from),
    p_body => nvl(to_clob(l_message),''),
    p_body_html => l_clob,
    p_subj => :P20_SUBJECT,
    p_cc  => eba_validate_email(l_cc),
    p_bcc   => null,
    p_replyto => l_from);
apex_mail.push_queue;
end loop;
commit;It's simple and not otherwise very amazing, but it works swimmingly for us. All our users are AD authenticated via ldap, and none of them as owners or otherwise throughout the apps are known as whomever@domain.. only as whomever. It was a must have, but it also fixed the issue for me that I think you are experiencing with the invalid FROM not having a domain.
With that said, I also changed the assignment of the :P20_FROM which is display only on that page -- to be a plsql function body,
return lower (:APP_USER);.. but this could have been forced in the process block of code too, or alternatively I could have not used a call to apex_mail_send there, but made my function send the email and grab the APP_USER there.. etc etc etc (so many ways to arrive at the same result)

Similar Messages

  • ALERT---ALERT since upgrading to last version 1/2 hour ago I can NOT send mail-ALERT ---

    HI,
    I upgraded to the latest version half an hour ago. My TB is in French. Since then I can NOT send mail. A window appears with the mention " adjunction of // ajonction de" and the blue bar keeps going up to 10 minute. After 10 min i decided to abort, restart TB, make another testmail but same problem.
    Please act quickly

    Hello,
    Certain Thunderbird problems can be solved by peforming a ''Clean Reinstall''. This means you remove Thunderbird's Program Files then reinstall Thunderbird. Please follow these steps:
    #Download the latest version of Thunderbird from http://www.mozilla.org/en-US/thunderbird/ and save the setup file to your computer.
    #After the download is complete, close all Thunderbird windows (Click Exit/Quit from the menu button on the right).
    #*'''Windows:'''
    #** C:\Program Files\Mozilla Thunderbird\
    #** C:\Program Files (x86)\Mozilla Thunderbird\
    #*'''Mac:''' Delete Thunderbird from the Applications folder.
    #*'''Linux:''' If you installed Thunderbird with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Thunderbird on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/en-US/thunderbird/ Thunderbird Download Page], simply remove the folder ''thunderbird'' in your home directory.
    #Now, go ahead and reinstall Thunderbird:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to open Thunderbird after clicking the Finish button.
    <b>WARNING:</b> Do not run Thunderbird's uninstaller or use a third party remover as part of this process, because that could permanently delete your Thunderbird data, including but not limited to, extensions,emails, personal settings and saved passwords. <u>These cannot be recovered unless they have been backed up to an external device!</u>
    Please report back to see if this helped you!
    Thank you.

  • Multiple hotmail accounts but one will not send mails and gives no error messages

    I have four hotmail accounts on my iPad (me, kids, wife) and we have all been using them fine however, my wife's hotmail account will not send mails.  I get no error messages at all for this to explain why, it just doesn't reach the intended recipient and does not turn up in the sent mail folder.
    I have deleted the account and re installed using a number of the choices including other outlook and even tried yahooing no change.
    Can anyone assist.
    I am on the latest iOS
    Thanks

    This problem in Mail is usually caused by some Launch Services cache or preferences corruption that affects the built-in spell checker. The following article describes how to manually reset Launch Services — the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, take a look at this other article for general troubleshooting and cache-cleaning procedures. Actually, you should also verify/repair the startup disk (not just permissions), as described there:
    Resolving Disk, Permission, and Cache Corruption
    The most appropriate utility for this particular problem probably is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Go to Maintenance > Reset and check LaunchServices database.
    4. Un-check any other pre-checked options.
    5. Click the Execute button.
    6. Restart the computer.

  • WF mailer is not sending mail.

    Hi,
    WF mailer is not sending mail. earlier it was sending email. Nothing change in configuration.
    Select * from WF_NOTIFICATIONS
    mail_status is showing FAILED.
    Earlier password reset was working also.
    Please advice.

    Please mention the details of the application release, database version and OS.
    Please check the workflow log file as well as the database log for any details about the errors.
    Also, see old threads which discuss the same topic.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Workflow+not+sending+emails&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Workflow+not+working&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Bursting Program not sending mails

    Bursting Program is not sending mails , we have checked everything and looking good , not generating logs.
    XML Publisher: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOBURSTREP module: XML Publisher Report Bursting Program
    +---------------------------------------------------------------------------+
    Current system time is 14-JAN-2014 07:50:56
    +---------------------------------------------------------------------------+
    XML/BI Publisher Version : 5.6.3
    Request ID: 101436869
    All Parameters: Dummy for Data Security=Y:ReportRequestID=101245852:DebugFlag=Y
    Report Req ID: 101245852
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:RPC5150
    Preparing parameters
    null output =/u000/oracle/PTCCON/apps/apps_st/appl/xdo/12.0.0/out/ESCM1/EM185082.101436869
    inputfilename =/u000/oracle/PTCCON/apps/apps_st/appl/ncr_custom/ncrx/12.0.0/out/ESCM1/EM185082.101245852
    Data XML File:/u000/oracle/PTCCON/apps/apps_st/appl/ncr_custom/ncrx/12.0.0/out/ESCM1/EM185082.101245852
    Set Bursting parameters..
    Temp. Directory:/tmp
    [011414_075107900][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
    [011414_075107910][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=101245852, user-variable:cp:language=en, user-variable:cp:responsibility=51687, user-variable.OA_MEDIA=http://ESPROD.daytonoh.ncr.com:8008/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=101245852, user-variable:cp:locale=en-US, user-variable:cp:user=EM185082, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=101436869, user-variable:cp:org_id=152, user-variable:cp:reportdescription=NCR_MFS_ACKNWLG_PDF_REP, user-variable:cp:Dummy for Data Security=Y}
    Start bursting process..
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 14-JAN-2014 07:51:08
    +---------------------------------------------------------------------------+

    I was troubleshooting my own issue noted above and tried to send the attachments via gmail's web interface (bypassing Apple Mail). This time, gmail provided an error message stating that the file contained a virus.
    Since it was a zip of several Word docs, I saved them as PDFs and then rezipped, and Apple Mail sent them off like a champ.
    Evidently, Mail does not have a method for relaying the precise nature of the error message that gmail sends (in this case that the attachment had what gmail thought was a virus). This would be a prime area for some software developers to tackle on a future version of Mail.
    By the way, the files almost certainly do not contain viruses; they are extremely old Word Docs that have been on my successive Mac hard drives for at least 9 years. Too old a format for gmail to recognize?
    Hope this helps someone who may be having the same trouble.

  • Can  not send mail using wifi at a motel .I can receive mail fine

    can  not send mail using wifi at a motel .I can receive mail fine

    Hi there tamarafromdarien,
    You may find the troubleshooting steps for iCloud Mail in the article below helpful.
    iCloud: Troubleshooting iCloud Mail
    If you can't send mail in OS X Mail
    If you receive this alert or a similar alert when sending a message from your iCloud email address in OS X Mail:
    “This message could not be delivered and will remain in your Outbox until it can be delivered. The reason for the failure is: An error occurred while delivering this message via the smtp server: server name.”
    In OS X Mail, choose Preferences from the Mail menu.
    Click Accounts in the Preferences window.
    Select your iCloud account from the list of accounts.
    Click the Account Information tab.
    Choose your iCloud account from the Outgoing Mail Server (SMTP) pop-up menu. Example: “Derrick Parker (iCloud)”.
    Note: The Outgoing Mail Server (SMTP) menu also includes an Edit SMTP Server List command. If you choose this command, be aware that the iCloud SMTP server won't be among the servers that can be edited. This is normal.
    If you're attaching a large file
    Message attachments can't exceed the maximum size allowed by your email service provider or the recipient's email service provider. The maximum size varies by service provider. Try compressing the filebefore sending it, or send your message without the attachment to verify that there are no issues with sending.
    -Griff W.  

  • Why can I receive mail on my iPAD during my visit to the USA but not send mail?

    Why can I receive mail on my iPad during my visit to the USA but not send mail?

    Double check to make sure that your same email addresses are set up on both devices in the Messages settings. Also ensure that you have text messaging forwarding turned off if you do not want to receive them on your iPad.

  • Why can I receive but not send mail?

    Why can I receive but not send mail?

    With sparse information you give I would venture that you have not set up the correct Outgoing Mail Server settings in Mail>Preferences>Accounts. Contact your ISP for their set up.

  • Mail will not send mail, only receive.

    I have spent the majority of today re-installing OS X and all necessary updates, music, data after the death of a hard drive. Luckily everything went perfectly, except for the same problem I had with Mail even before the 1st hard drive died. Mail will not send mail, only receive.
    All efforts time out and give me this message: "The connection to the server mail.earthlink.net on port 25 timed out"
    Mail used to send messages, but stopped suddenly in 2004 and has yet to start again. Any idea guys?! I can't figure it out, under Account settings I have necessary fields filled in: Outgoing Mail Server (SMTP) is set to "mail.earthlink.net", Server Port is set to 25, and Authentication drop menu is set to None.
    Any help would be greatly appreciated.
    --DANIEL

    This is NOT a problem with Mail or OS X. This is an incorrect settings problem - garbage in = garbage out and this information is certainly available at Earthlink's website and Earthlink also provides technical support.
    Earthlink has an authenticated SMTP server they changed to long ago.
    SMTP Server: smtpauth.earthlink.net
    Server Port: 587 but 25 should work if you are using Earthlink as your internet service provider for connecting to the internet.
    Use SSL: Off or not selected.
    Authentication: MD5 Challenge-Response
    User Name: Your ENTIRE Earthlink email address.
    Password: The account's password - the same password used to check the incoming mail server for new messages.

  • Not send mail for external domains

    Hi,
    I have installed OCS 10g(10.1.2) in linux. All components ok, but i not send mail for external domain.
    Att,
    Mesti

    I remember in version 9.0.2 that i configure in SMTP_OUTBOUND the IP of DNS external to send mail for other domains.
    Mesti

  • SendMail: can not send mail with body more than 1000 caracters

    Hi,
    I can not send mail with a body wich is more than 1000 caracters.
    FUNCTION SendMail(SMTPServerName IN STRING,                     
                        Sender IN STRING,                     
                        Recipient IN STRING,                     
                        CcRecipient IN STRING,                     
                        BccRecipient IN STRING,                     
                        Subject IN STRING,                     
                        Body IN STRING,                     
                        ErrorMessage OUT STRING,                     
                        Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS      
                        AttachmentList VARCHAR2(4000) := '';      
                        AttachmentTypeList VARCHAR2(2000) := '';   
                          BEGIN       ParseAttachment(Attachments,                      
                                                      AttachmentList);      
                                      RETURN JSendMail(SMTPServerName,
                                                       Sender,                       
                                                       Recipient,                       
                                                       CcRecipient,                       
                                                       BccRecipient,                       
                                                       Subject,                       
                                                       Body,                       
                                                       ErrorMessage,                       
                                                       AttachmentList); 

    Hi,
    I can not send mail with a body wich is more than 1000 caracters.
    FUNCTION SendMail(SMTPServerName IN STRING,                     
                        Sender IN STRING,                     
                        Recipient IN STRING,                     
                        CcRecipient IN STRING,                     
                        BccRecipient IN STRING,                     
                        Subject IN STRING,                     
                        Body IN STRING,                     
                        ErrorMessage OUT STRING,                     
                        Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS      
                        AttachmentList VARCHAR2(4000) := '';      
                        AttachmentTypeList VARCHAR2(2000) := '';   
                          BEGIN       ParseAttachment(Attachments,                      
                                                      AttachmentList);      
                                      RETURN JSendMail(SMTPServerName,
                                                       Sender,                       
                                                       Recipient,                       
                                                       CcRecipient,                       
                                                       BccRecipient,                       
                                                       Subject,                       
                                                       Body,                       
                                                       ErrorMessage,                       
                                                       AttachmentList); 

  • I can not send mail when at school. Please help

    I can not send mail when at school. Please help

    What is the email provider? If it is from your home Internet service provider, they usually block sending when not on their network. If this is the case, see if you can log into the smtp server with username and password. If they allow that, you can enter that in the email account settings.

  • Backend query to configure do not send mail

    Hi,
    We need to configure workflow notification mailer in production instance: The plan of action is as follows:
    Change the mail_status to 'SENT' for all mails which are in queue.
    Update the personalised status for all users to 'DO NOT SEND MAIL'
    Select few users and set status to 'MAIL TYPE HTML' so that these users will be able to receive mails.
    Configure workflow mailer.
    Test the mailing service.
    Now in above plan we need to find out backend query to update this status from backend for changing status to 'DO NOT SEND MAIL' as there are 200's of users. and manually would be time consuming.
    Can you please guide.
    Regards,

    Hi,
    Please see these docs.
    How To Set Email Style Preference For All Users At Once? [ID 578574.1]
    How To Update 'Notification Style/Email Style' Under The Notification Preference For All The Users Globally .? [ID 564713.1]
    How to mass change Mail Preferences for FND USERS [ID 451929.1]
    Thanks,
    Hussein

  • HT2500 without changing settings, iMac mail V4.6, 1)will not save password 2)takes accounts offline 3)will not except password 4)will not send mail from accounts every time.     What happen?

    without changing settings, iMac mail V4.6,  1)will not save password   2)takes accounts offline  3)will not except password   4)will not send mail from accounts every time.
        What happen?  How do I correct this?

    Hi Nuch1,
    I found an article that is contains very thorough Mail troubleshooting steps:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    You can use that article to figure out what part of the email "ecosystem" is the cause of the issue, and it can also help you attempt to resolve it.
    Hope that helps,
    David

  • CiscoWorks LMS 3.2 Not sending mail

    HI,
    I have got a CiscoWorks LMS which is not sending mail for HUM reports.
    Here's the log that I receive when it is supposed to send the mail in smtp.log
    [ Sun Oct 16 13:17:42 CAT 2011 ] INFO   [MailUtility : isMailServerWorking]  : The mail server [10.102.247.57] is responding
    I can telnet to the server port 25. No authentication is required for sending mail to local domain.
    There is a MacAfee Agent but it is configured to send mail.
    I don't have a clue what is causing it.
    Could you please help.
    Thanks,
    Ashley

    Hi,
    Are other email messages being sent as expected? 
    Do you have a size limit defined under CS > Server > Admin > System Preferences?
    Have you verified the email leaves the LMS server?
    Are there any related logs on you mail server?
    Does the condition persist when you disable any host firewall and anti-virus agents?
    Try some debugging:

Maybe you are looking for

  • Forcing Safari to open new links in a new tab

    Without sounding cynical, I love Safari but have been using Chrome for several years because it behaves like "I" want...not like "Apple" wants.  I keep hoping Apple will fix the remaining two quirks (for me anyway) that keep me from using it full tim

  • MacBook Air connected to a Laserjet Pro MFP but not printing

    Hi, I am trying to print from an HP LaserJet Pro MFP M-125a which is connected to a MacBook Air via a USB cable. The software has been downloaded and the print job window is always showing as if it is in the process of printing the print job given bu

  • Early 2009 Macbook display problems

    I have a early 2009 macbook (aluminium). when i try to turn it on all that comes up is a lit up black screen, as if it is on but nothing happens. i went in to an apple store and he connected it to an external display but still nothing happened.Please

  • How to enter data manually in SQL server mgmt studio 2012

    On a new table,  I right click and select "Edit Top 200 rows".  It looks like I can enter data here but I dont see a 'commit' button anywhere.  If I click outside the cell it generates an error that I have not committed the data. I just want to enter

  • Network Model Question

    What does "1 link(s) with referential integrity problems." mean when you do a: MDSYS.SDO_NET.VALIDATE_NETWORK on a network data model? This is 10.2.0.1 on windows/32. I also did... SELECT mdsys.sdo_net.validate_node_schema('COMM_PATH') from dual; SEL