Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8454327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:59:52+00:00 2026-06-10T11:59:52+00:00

I am developing a site in Visualforce and would like to offer user a

  • 0

I am developing a site in Visualforce and would like to offer user a simple form to send me feedback via email. There would be 3-4 fields like name, user’s email, reason and feedback and “send” button. Clicking the send button should automatically send that message to my email address.

I do not want to store the form data in salesforce at least for now…All the stuff I found online about visualforce/apex and email is about saving that data to salesforce too.

Can I just make use of apex’s email capabilities and send out email without storing that data anywhere in salesforce?

Thanks,
Calvin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:59:54+00:00Added an answer on June 10, 2026 at 11:59 am

    It’s not required to insert/update/delete any records in the database when executing an action on a VisualForce page. You can leverage the Outbound Email functionality to send out your notification. For something like this, you will probably want to familiarize yourself with the SingleEmailMessage methods.

    A simple example to get you going:

    public PageReference actionSend() {
        String[] recipients = new String[]{'myemailaddress@somedomain.com'};
        Messaging.reserveSingleEmailCapacity(recipients.size());
        Messaging.SingleEmailMessage msg = new Messaging.SingleEmailMessage();
        msg.setToAddresses(recipients);
        msg.setSubject('Test Email Subject');
        msg.setHtmlBody('Test body including HTML markup');
        msg.setPlainTextBody('Test body excluding HTML markup');
        msg.setSaveAsActivity(false);
        msg.setUseSignature(false);
        Messaging.sendEmail(new Messaging.SingleEmailMessage[] {msg}, false);
        return null;
    }
    

    If you are interested in sending these outbound messages from a dedicated email address (something like noreply@somecompany.com), you can set these up through the Setup -> Administration Setup -> Email Administration -> Organization-Wide Addresses menu. Once you have created an org-wide address, grab the Id from the URL and use the setOrgWideEmailAddressId(Id) method on your instance of Messaging.SingleEmailMessage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a site and i would like some simple markup. I would
I am developing a site in rails which requires information whether any analytics like
I'm developing a site using the CakePHP framework. I have a form which shows
I'm developing a site where on first visit, the user will be asked to
I'm developing a site that allows a user to create an order for a
I'm developing a site where a user conducts a given transaction and once completed,
We're currently developing a site that uses a simple JSON API (RoR) to populate
Developing a site that requires monthly subscriptions via PayPal. If a buyer has an
Currently developing this site and I can't pin point as to why there is
I am developing site using codeigniter.I have a form which contains add button and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.