Hi
I am Sending Thousands of mail at a time but its sends 500 or 600 mails and stops..
So i need a solution so that it does not stop before completing the Task
Please Help me
Cheers
Mahesh
4 1072
u need an Emailer instead of doing it programatically
u need an Emailer instead of doing it programatically
Hi
I am using same but it still its giving problem
Please help me...
then check the docs of ur Emailer, because through emailer u can sent as many as u want.
then check the docs of ur Emailer, because through emailer u can sent as many as u want.
Hi
My code is -
public static void SendMessage(string to, string subject, string message, MailFormat format)
-
{
-
//string smtpServer = GetConfigValue("SmtpServer");
-
//string smtpPort = GetConfigValue("SmtpPort");
-
//string smtpUsername = GetConfigValue("SmtpUsername");
-
//string smtpPassword = GetConfigValue("SmtpPassword");
-
-
MailMessage mailMessage = new MailMessage();
-
-
mailMessage.From = GetConfigValue("SystemEmail"); //from;
-
#if RELEASE
-
mailMessage.To = to;
-
#else
-
mailMessage.To = "mjasonrice@hotmail.com";
-
#endif
-
//mailMessage.Cc = cc;
-
//mailMessage.Bcc = bcc;
-
mailMessage.Subject = subject;
-
mailMessage.Body = message;
-
mailMessage.BodyEncoding = System.Text.Encoding.Default;
-
mailMessage.BodyFormat = format;
-
mailMessage.Priority = MailPriority.Normal;
-
-
// if (attachments != null)
-
// for (int i=0; i<attachments.Length; i++)
-
// mailMessage.Attachments.Add(new MailAttachment(attachments[i], MailEncoding.Base64));
-
/*
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", smtpServer);
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", smtpPort);
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", 2);
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1);
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", smtpUsername);
-
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", smtpPassword);
-
*/
-
//SmtpMail.SmtpServer = smtpServer;
-
SmtpMail.Send(mailMessage);
-
}
-
-
public static string GetConfigValue(string Key)
-
{
-
return System.Configuration.ConfigurationSettings.AppSettings[Key];
-
}
-
-
public static string GetFileText(string FileName)
-
{
-
string text, path = string.Format("{0}\\{1}", GetConfigValue("EmailTemplates"), FileName);
-
using (StreamReader sr = new StreamReader(path)) text = sr.ReadToEnd();
-
return text;
-
}
-
-
public static void SendMessage(bool useHtml, string toEmail, string toName, string subject, string message, string linkUrl, string linkText, DataView data)
-
{
-
try
-
{
-
// build the xml document
-
string path = string.Format("{0}\\Templates\\Message.xml", GetConfigValue("EmailTemplates"));
-
XmlDocument xmlDocument = new XmlDocument();
-
xmlDocument.Load(path);
-
-
xmlDocument.DocumentElement["From"].InnerText = GetConfigValue("SystemEmail");
-
xmlDocument.DocumentElement["To"].InnerText = toName;
-
xmlDocument.DocumentElement["Body"].InnerText = message;
-
xmlDocument.DocumentElement["Link"]["URL"].InnerText = linkUrl;
-
xmlDocument.DocumentElement["Link"]["Text"].InnerText = linkText;
-
-
-
where should i put Docus to assign not to stop in sending mails
-
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Espen |
last post by:
Hi,
I just took over maintaining an ASP codebase for sending out
newsletters by mail, as well as basic subscriber maintenance.
Thing is working ok today, with ~200 subscribers, but there are...
|
by: Nigi |
last post by:
I've made a mysql database with php front end which, in part, contains
mailing lists. I've used a mailto: link to create a new email with
their names in the bcc: field.
Unfortunatley their is a...
|
by: Andy M |
last post by:
ALERT
There is a person by the name of Mike Cox who's trying
to turn this mailing list into a Big-8 newsgroup. Many
of you know that this and most of the other postresql
mailing lists are...
|
by: Nick |
last post by:
I am working on a website for a client and one of their requirements was to
have a mailing list. I decided to XSLT to transform "templates" to HTML so
that editing was very easy and less time...
|
by: techwr-l-confirm+22d099e2f3d881b010eaeb38c05837f62 |
last post by:
Mailing list subscription confirmation notice for mailing list
TECHWR-L
We have received a request from python-list@python.org for
subscription of your email address, "python-list@python.org",...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |