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
NilaNila 

Email Sending is not working

Hi There,
I have custom s-control to send email to User . Before it was working suddenly it stops working I can not see anything wrong . Any idea? Do I need to change any setting in salesfoece?
 
Code looks like
var singleRequest= new sforce.SingleEmailMessage();
singleRequest.toAddresses =contactEmail;
singleRequest.htmlBody = strBody;
singleRequest.bccAddresses = user;
singleRequest.subject = "test";
singleRequest.replyTo = user;
try
{
var sendMailRes = sforce.connection.sendEmail([singleRequest]);
alert('Email sent to user id: ' + contactEmail);
}
catch(err) {
alert(err)
}
benjasikbenjasik
do you get any error messages back? 
NilaNila

No, I am not getting any error Its saying emai is sent.

But I can not receive email in inbox.

Is it any setting or what?