Sending an Email from the app along with table data

Hi All,
I would like to send an email from my app. I tried to put in the field attachment SQL this query: select * from Table_Name where id = (select max(id) from Table_Name) but it did not work. It showed me this error:
1 error has occurred
Wrong number of columns selected in the SQL query. See Help of attribute for details.
I would like to send an email every time the user insert a row with that row in the email... How can I do that?
Thank You.

What I would suggest is the following:
Build an After Insert Trigger on the table in question. In this trigger build a string with ALL the columns that are being inserted into the table. Then you will need to build some local variable to submit your mail. You will send your e-mail via UTIL_SMTP mail, since you may NOT always being in an APEX application when the table is updated..
Ask away if you have more questions..
Thank you,
Tony Miller
Webster, TX
I am a Ranger! We walk in the dark places no others will enter! We stand on the bridge and no one may pass! We live for the One, we die for the One!
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • Sending encrypted emails from the iPad is not working

    I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2
    Let me explain what I did:
    1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on the iPad.
    2. I set "When using this certificate" to "Always Trust" in both certificates.
    3. I exported 1 S/MIME certificate (p12) and installed it on the iPad. Then I deleted this certificate and its private&public keys in iMac Keychain Access
    4. I exchanged public certificates between the 2 devices. I installed one certificate in iMac Keychain Access and the other in iPad/Settings/General/Profiles.
    5. On the iMac in the iPad certificate I set "When using this certificate" to "Always Trust"
    6. I tested whether I can send and receive signed and/or encrypted emails
    Results:
    1. From the iMac I can send signed and/or encrypted emails to the iPad.
        On the iPad I can read the encrypted emails. The signature is not trusted
    2. On the iPad I can send signed messages to the iMac. On the iMac the signature is trusted.
        I cannot send encrypted emails from the iPad to the iMac. The iPad doesn't know about the public certificate in iPad/Settings/General/Profiles
    So much for the straight forward part. Now it gets a bit more complicated and confusing.
    1. I deleted the iMac certificate in the iPad/Settings/General/Profiles. Then in iPad Mail I opened the signed mail coming from the iMac.
        I viewed the untrusted certificate in Mail and installed it. From this point on all signed emails from the iMac are trusted.
        Strangely the by this method installed certificate doesn't appear in iPad/Settings/General/Profiles.
        Furthermore I still cannot send encrypted messages to the iMac. This certificate installation seems to be used only to check trust worthiness of the signature.
        Installing on top the iMac public certificate in iPad/Settings/General/Profiles doesn't enable to send encrypted messages from the iPad either.
    To be sure that this problem relates to the iPad certificate management and is not related to an error by me I did the following:
    1. I transferred a p12 file for a certificate that I created in my iMac to a PC running Windows7.
    2. I transferred a p12 file plus its public key (.pem) that I created in my iMac to another iMac into Keychain Access. (I have not tested if the pem is needed).
    3. On the other iMac and the PC I made sure that the certificates are trusted.
        On the PC that means in the Certificate Manager the p12 needs to be in the "Personal" folder and in the "Trusted Root Certification Authorities" folder.
        The public keys need to be in the "Trusted People" folder and the "Other People" folder. One can just copy/paste the certificates.
    4. In both cases I deleted the certificate and public/private keys on my iMac.
    5. I exchanged public certificates between the devices.
    6. I tested exchanging signed and/or encrypted emails between my iMac and the PC and my iMac and the other iMac.
    Result:
    1. I can send signed and/or encrypted emails to the other iMac and the PC
    2. The PC and the other iMac trust the signature from my iMac and can read the encrypted emails
    3. My iMac can read encrypted emails from the PC and the other iMac
    4. My iMac trusts emails with signatures from the PC and the other iMac.
    Everything is working as it should.
    After the above test I wanted to see whether I can set up encrypted email exchange between the iPad and the PC. Strangely iPad Mail recognized the public certificate from the PC installed in iPad/Settings/General/Profiles and allowed me to send an encrypted email to the PC. However, on the PC I was unable to read the encrypted email. And the other way around, encrypted emails send from the PC to the iPad cannot be read on the iPad.
    My conclusion from all this testing is that iPad mail encryption is still "under construction".

    I was able to resolve the above described problem to some degree. Setting up sending and receiving encrypted emails between iOS and OSX I have working.
    What is still not working is reading encrypted emails on the iPad/iOS8 received from Windows 7 PC. And sending encrypted emails to Windows 7 PC.
    The details about how I solved part of the problem are described here.

  • Just got an e mail to say that my Apple ID was just used to download photoshop touch for phone for 2.99 from the App Store with a receipt number. Is this a scam for me to give my Apple ID?

    Just got an e mail to say that my Apple ID was just used to download photoshop touch for phone for 2.99 from the App Store with a receipt number. Is this a scam for me to give my Apple ID?

    No but there's a link to reset your password. Etc etc..
    This is the email I got.
    "Your Apple ID was just used to download Photoshop Touch for phone £2.99 from the App Store on a computer or device that had not previously been associated with that Apple ID.
    If you initiated this download, you can disregard this email. It was only sent to alert you in case you did not initiate the download yourself.
    If you did not initiate this download, we recommend that you go to iforgot.apple.com to change your password, then see Apple ID: Tips for protecting the security of your account for further assistance.
    Regards,
    Apple"

  • Is there a way to send an email from the web gallery module

    Hi all,
    does anyone know if there is a way to send an email from the webmodule, for example to send the link where the gallery was posted?
    Thanks for any help.
    Bart

    I'm certainly not aware of any way, thus my post here (please cast a vote):
    http://feedback.photoshop.com/photoshop_family/topics/lightroom_sdk_email_support
    I don't know if you could get away with using LrHttp to open a mailto link.
    The only other option I know is to send data to your web server and have it send SMTP.

  • Filter Lens Correction is missing from the menu, along with adjacent filters.

    Filter > Lens Correction is missing from the menu, along with adjacent filters.
    I updated 1 day ago via Adobe Connect and it is now missing from the menu drop down. As well as the other filters in that general area.

    hi ffadler
    i experience the same on my laptop,
    do you have an solution already?
    regrds
    piet

  • I can't download any App from the App Store with my iPad 3.

    I can't download any App from the App Store with my iPad 3. I get always the Message: Connection to the iTunes Store is unavailable.

    http://support.apple.com/kb/HT1311

  • Send an email from the portal

    How do I send an email from the portal?
    Is there support for the IMAP protocol?
    Thank you for any and all help,
    Geoffrey

    WLS has support for the JavaMail standard. That's SMTP on the send side and
    IMAP (or others like POP3) on the receive side. Portal does not have the end
    all, be all IMAP client nor does it have a full featured SMTP client to compose
    mail but the sample portlets have a start.
    Geoffrey wrote:
    How do I send an email from the portal?
    Is there support for the IMAP protocol?
    scott dunbar
    bea systems, inc.
    boulder, co, usa

  • I have received a weird email from the App Store about the iCloud...

    I got a weird email from the App Store saying this...
    Dear iCloud Member,
    Your annual subscription was set to renew on Oct 20th, 2012 PDT.Attempt to do so has failed.
    This may occour as a result of change of credit card or billing address. Please take a minute.
    to review your account settings. If you want to change any of the details below, log in to MobileMe
    select Account and click continue. .
    LOGIN HERE TO UPDATE.
    Copyright © 2012 Apple Inc. All rights reserved.
    The thing was, when I clicked on the login thing, it took me to another site and I instantly shut the server down before anything happened. Is this a real email or is it a fake? Has anyone else had this? I have already updated from one to the other so I don't know why I am receiving this.

    As long as you didn't enter your iCloud username and password on the site the link took you too, you will be ok.
    If you did, change your password immediately, and be vigilant for any suspicious activity in your account.

  • I need more storage but every time i try to buy it says payment method declined however i can buy any app from the app store with the same method

    i need more storage but every time i try to buy it says payment method declined however i can buy any app from the app store with the same method

    Make sure there is enough funds for storage. Contact your bank and verify they are not stopping transaction.

  • Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • How do you send an email from a sub account with mail app.

    We have about four sub-accounts with .mac all tied in with our sign in name. Is it possible to compose an email from the other email addresses with the iphone.

    you have to set it up with Mail on the home computer. I forget how many aliases you are allowed to have.
    To set up an alias:
    Choose Mail > Preferences, and then click Accounts.
    Select your MobileMe email account and click Account Information.
    Click Edit Email Aliases, and sign in to MobileMe to create email aliases.

  • Problem Sending Authenticated email from C2 App

    Hi All,
    I am trying to send an auto response with gathered user details back to the user from my app.
    I have completed the sending emaill tutorial but this is for email that does not need authenticated. I am thinking that I just need to pass my e-mail address and password to btinternet ( my mail server) but I am not sure where to pass this in my code. I get the error "To fix this you must make a simple change to your email(known as SMTP authentication)" The app runs as far as the asterisks** below at log("Got client");
    Thanks
    Jim.
    public void sendCustomerDetails(String firstName,String surname,String username,String password,String email,String telephoneNumber,String addressLn1,String addressLn2,String city,String country,String postcode, int customerID) {
    // This will send an Email to the customer with a copy of their login details as stored on the Focal Point customer tabl
    // method to send an e-mail via SMTP
    // (if no authentication is required from the mailserver)
    boolean loggedIn = getSessionBean1().getLoggedIn();
    String from = "***********"; // from address
    String to = "email"; // to address
    String mailserver = "***********";
    String SMTP_AUTH_USER = "***********";
    String SMTP_AUTH_PWD = "***********";
    //"[email protected]"
    log("To address is: "+to);
    log("About to try and Email details: To: "+email+" Firstname: "+firstName);
    try {
    log("In the Email try");
    sun.net.smtp.SmtpClient client = new sun.net.smtp.SmtpClient(mailserver);
    log("Got client");
    client.from(from);
    client.to(to);
    log("Set the client from and to - About to create the print stream");
    java.io.PrintStream message = client.startMessage();
    log("Started message");
    message.println("To: " + to);
    // TODO: set the subject line
    message.println("Subject: Customer Details - Focal Point Furniture");
    // TODO: set the body of the message
    // message.println(getTextArea1().getValue().toString());
    if (loggedIn){
    message.println("Hello "+firstName+",\nThanks for updating your details with Focal Point Furniture Online.\n\nPlease check that the following information is correct and keep this Email for your records.\n\n");
    } else{
    message.println("Hello "+firstName+",\nThanks for registering with Focal Point Furniture Online.\n\nPlease check that the following details are correct and keep this Email for your records.\n\n");
    message.println("Your Name: " +(firstName +" "+ surname));
    message.println("YourAddress: " + addressLn1+"\n");
    message.println(" "+ addressLn2+"\n");
    message.println(" "+ city+"\n");
    message.println(" "+country+"\n");
    message.println(" "+postcode+"\n");
    message.println("Your Password is: " + password+"\n\n");
    message.println("Your Customer ID is: " customerID"\n\n If any of these details are incorrect please log in to http://www.focalpointfurniture.co.uk to ammend.\nThanks and Regards,\nJames \n\n NB. If you forget your username and password, you will be able to use your custoomer ID to have your saved details Emailed to you.");
    client.closeServer();
    log("Message is sent!!!");
    } catch (java.io.IOException ex) {
    // in the case of an exception, print a message to the output log
    log("ERROR SENDING EMAIL:"+ex);
    }

    Maybe my response to
    http://forum.sun.com/jive/thread.jspa?threadID=46510&messageID=342045#342045
    helps you as well.
    Thanks,
    -- Marco

  • Cannot send some emails from the address book. Comcast says it is not a server problem.

    Keep getting this message when trying to send a group email from the address book -"The size of the message you are trying to send exceeds a temporary size limit of the server. The message was not sent, try to reduce the message size or wait some time and try again. The server responded: 4.1.1... temporary failure."
    Comcast has checked it - the issue is not the server they say. This problem just started 4 days ago. It appears other people have this problem on the thunderbird forum and it has not been resolved yet.

    The Comcast server is issuing the error message. Have them explain how this is not their problem.

  • HT1491 how do I purchase games from the app store with an itunes card from my device?

    How do I purchase games from the app store using an itunes card from my device?

    Redeem the card into your iTunes account and make purchases.
    Apple - iTunes - Inside iTunes - How to Redeem Free Download Codes and Gift Cards In the App Store and iTunes

  • How to send an email from the database

    i have create a post insert trigger at the database level for the emp table and that trigger call a procedure and that procedure send a email to the new employee, i the trigger send the firt name , second name , last name and the email address to the procedure .so my questions is about the command that will send the email to the new employee ,and the send email will look like this
    Dear "fist name "second name" "last name"
    welocme to..........................................................

    This thread could help answer some of your questions:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2391265038428
    C.

Maybe you are looking for

  • How to use due date in credit management

    hi, i want to calculate my credits according to net due date how can i use due date in credit management? thank you

  • Iam getting error in controlling under kp06 t.code pls help me on this.

    Version 0 is not defined for fiscal year 2010. Message no. GP626 Diagnosis The version 0 is not defined in controlling area FAB for the fiscal year 2010. You have to maintain the fiscal year-dependent version parameters for all actual versions for wh

  • FB60 required/mandatory text field

    Hi all, i have a quick question. how do you configure FB60 so that "text" field becomes a mandatory input. Thank you

  • HP Support Assistant Not Finding Updates

    Over the past couple of months I have setup around 10 different Probook 450 G2 laptops. When I run HP Support Assitant to install driver and BIOS updates it always comes back that there are no updates available. Yet when I go to the product page for

  • Moving Black2 to a new computer

    Help, I am trying to move my existing (and loaded with data) Black2 to my new computer. The new computer is not seeing it, and neither is the WD Installation software.