|
Google for "c# console mail" and check out the first two results
I are troll
|
|
|
|
|
private void Sendmail(string strMailMessage, string strSubject)
{
MailMessage myMail = new MailMessage();
SmtpClient objSMTP = new SmtpClient("mail.domain.com");
string strEmail = "a@domian.com,b@domain.com";
string[] arrEMail = strEmail.Split(';');
foreach (string strMail in arrEMail)
{
myMail.To.Add(strMail);
}
myMail.From = new MailAddress("info@domain.com");
myMail.Subject = strSubject;
myMail.Body = strMailMessage;
myMail.IsBodyHtml = true;
try
{
objSMTP.Send(myMail);
Console.WriteLine("@@@ Notification Send....");
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
Console.WriteLine("@@@ FAILED TO SEND NOTIFICATION....");
}
}
|
|
|
|
|
Really good sample.. but remember you cannot catch an unsent or bounce mail info here.. It's just about the C# runtime error
|
|
|
|
|
Amandeep Singh Bhullar wrote:
string strEmail = "a@domian.com,b@domain.com";
string[] arrEMail = strEmail.Split(';');
if I'm not wrong then you are splitting a wrong char ';'
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I am sorry.
But in my code the Comma seprated Email's are stored AppConfig file.
Actually there is ';' than ','
|
|
|
|
|
how to get data from file to textbox
|
|
|
|
|
If you read the reply to your previous post, you must have understood that no one is going to spoon feed you here. Try google or read/refer some books and if you get stuck then everyone here would be happy to help you out.
|
|
|
|
|
Well said ..
|
|
|
|
|
|
|
Too confuse you a bit more[^]
I are troll
|
|
|
|
|
I never used barcodes in crystal reports. I have found there are several barcode generators for crystal reports, but they are not freeware. Should I build my own implementation for barcodes generation for this purpose? Maybe someone has some experience in this area. Thanks in advance!
|
|
|
|
|
I don't have any experience, but I think to remember there being an article of a C# bar code genrator on this site.
|
|
|
|
|
Yes, I've read this article, finally, I think, I will use that generator
|
|
|
|
|
how to copy data from file to textbox
|
|
|
|
|
OMG!
Have you tried drag and drop? Or copy/paste?
Try harder...
var question = (_2b || !(_2b));
|
|
|
|
|
Read your books...I'm sure you will get the answer
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
this is my server code...Once i it recieves the message from the client it just closes..So im not able to see the received message in the server...
I want to call the server again so that it will stay alive for a long time...
I tried by calling the start() method again...Can you give me some suggestions
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class UdpServer
{
public static void Main()
{
try
{
int recv;
byte[] data = new byte[1024];
while (true)
{
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
newsock.Start();
Console.WriteLine("Waiting for a client...");
IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9050);
EndPoint tmpRemote = (EndPoint)(sender);
recv = newsock.ReceiveFrom(data, ref tmpRemote);
Console.ReadLine();
Console.WriteLine("Message received from {0}:", tmpRemote.ToString());
Console.WriteLine(Encoding.ASCII.GetString(data, 0, recv));
data = new byte[1024];
string ss = "Welcome to the Server";
data = Encoding.ASCII.GetBytes(ss);
newsock.SendTo(data, data.Length, SocketFlags.None, tmpRemote);
Console.WriteLine("\nSent Acknowledgement");
}
}
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
Console.ReadLine();
}
}
|
|
|
|
|
how message is embed in a video and send me code for that entire project
|
|
|
|
|
Send me money, plz.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hehe, nice one...got my 5
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Good one.
|
|
|
|
|
how can i conver an image into a pixel matrix using the c#.net language
|
|
|
|
|
An image is a pixel matrix, isn't it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am doing a project which is about
MY project Task: Generation of html to pdf (Encryption of MULTIPLE MARKED text included, PDF document must be at least 10 pages and encryption is to be done on each page)
I am using example: ID = 1 to encrypt the text
Can anyone help me as i do not understand how to use Itext for my project.
======================================================================================================
Is like the words that are encrypted in the HTML are being hidden.
After that, i need to generate it into a pdf.
example: This is an anple
After i encrypted "This is"
In the html file <encrypted ID = 1> This is </encrypted>
After it had been generate into pdf, it will show:
<<encrypted>> an apple
This can be done into multiple encryption (more than 1 page)
So how can i do this using Itext?
Itext: iText is a library that allows you to generate PDF files on the fly.
But how do i use it?
======================================================================================================
Thank you
|
|
|
|