function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gdkgdk 

Visualforce email Template limit is exceeds

Iam getting the following error while sending the mail, how can i overcome this

Error: Invalid Data.
Review all error messages below to correct your data.
You have exceeded your daily limit for emails.
Ramu_SFDCRamu_SFDC
The following article might help
http://help.salesforce.com/apex/HTViewSolution?id=000004727&language=en_US
Shashikant SharmaShashikant Sharma
Hi,

There is a daily email limit . Please check this for email limits : https://na10.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf

You must be testing your funcitonality and sending emails. Thats why you crossed the limit. Limt is very less on Free Developer Org I think only 20 emails. It will be refreshed after 24 hours. 

Let me know if more information needed.




gdkgdk
Hi Ramu,
                     Thanks for your reply

                 I created Visualforce Email Template , I want to send this Template as a Mail with Attachment to my contacts(50) once per a month
Using free developer edition , Is it possible using free developer edition pls help



Thanks!

           
Sfdc CloudSfdc Cloud
Are you using Single Email Messaging.If Yes then you can not send more than 10 email per instance at a time.You can use single email messaging in list
Like :
List<Messaging.SingleEmailMessage> em= new list<Messaging.SingleEmailMessage>();

In Developer Edition organizations, your organization can send mass email to no more than 10 external email addresses per day

Your  org  Governor Limits depends on Salesforce license, you can only send 1000 single emails a day (or less, depending on license).
Using the API or Apex, you can send single emails to a maximum of 1,000 external email addresses per day based on Greenwich Mean Time (GMT). Single emails sent using the Salesforce application don't count toward this limit.

Refer Governer limit for Email Limits
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm
If this answer will  helps,please mark it as best answer to help other out :)
Sfdc CloudSfdc Cloud
Hi Gdk
global class ScheduledApexFromEvent implements Schedulable
{
   
    User u=new user();
    global void execute(SchedulableContext ctx)
    {
       //List<Messaging.SingleEmailMessage>  myEmails = new List<Messaging.SingleEmailMessage>();
       
       list<Contact> con = [SELECT Id,Email,Name  FROM Contact];
       EmailTemplate et = [SELECT Id FROM EmailTemplate WHERE name = 'Template_name']; 
          for(Contact C:con)
          {
               Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
               mail.setToAddresses(new String[] {C.email});
  //The ID of the contact, lead, or user to which the email will be sent
               mail.setTargetObjectId(u.id);
               mail.setWhatId(C.id); //Target id for merge object Data With Vf Template
               mail.setSaveAsActivity(false);
               mail.setTemplateId(et.Id);
               mail.setSaveAsActivity(false);
               mail.setTemplateId(et.Id);
              // mail.setCcAddresses(us.email);
               Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
          } 
                             
    }   
}
Here is the Code for your problem.I think this should work properly Its working in my org.

If this answer will  helps,please mark it as best answer to help other out :)
rajesh k 10rajesh k 10
Hi Shashikant Sharma,
                                         In your blog we displayed fields without using fieldset.
please give me how to save displayed fields dynamically in database?

plesae help me.............