Click here to Skip to main content
15,890,741 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Using Open Flash Chart 2 Pin
Abhishek Sur27-Oct-09 8:09
professionalAbhishek Sur27-Oct-09 8:09 
GeneralRe: Using Open Flash Chart 2 Pin
deezZ27-Oct-09 17:39
deezZ27-Oct-09 17:39 
QuestionJRE test Pin
Subin Mavunkal26-Oct-09 20:42
Subin Mavunkal26-Oct-09 20:42 
AnswerRe: JRE test Pin
Abhishek Sur26-Oct-09 22:35
professionalAbhishek Sur26-Oct-09 22:35 
GeneralRe: JRE test Pin
Subin Mavunkal26-Oct-09 23:50
Subin Mavunkal26-Oct-09 23:50 
GeneralRe: JRE test Pin
Abhishek Sur27-Oct-09 7:59
professionalAbhishek Sur27-Oct-09 7:59 
GeneralRe: JRE test Pin
Subin Mavunkal27-Oct-09 18:50
Subin Mavunkal27-Oct-09 18:50 
Questionmailing functionality in my website Pin
Hemant Thaker26-Oct-09 20:37
Hemant Thaker26-Oct-09 20:37 
hi..

I m using following function for mailing functionality.

using System.Net.Mail; // for mailing functionalities

private void SendMailToUser()
{
/* Sending Email To Users About Registration Confirmation --START*/
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();

string toMail = txtEmail.Text.Trim();
message.To.Add(toMail);
message.Subject = "bla_bla - Registration Confirmation";
message.From = new System.Net.Mail.MailAddress("bla.admin@gmail.com");
string MainBody = "Dear " + txtFName.Text.ToString() + "," + "\r\n";


MainBody = MainBody + "Thank you for registering in bla.com " + "\r\n<br/>";

MainBody = MainBody + "http://www.bla.com" + "\r\n<br/><br/><br/>";
message.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString
(System.Text.RegularExpressions.Regex.Replace(MainBody, @"<(.|\n)*?>", string.Empty), null, "text/plain");
System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(MainBody, null, "text/html");
message.AlternateViews.Add(plainView);
message.AlternateViews.Add(htmlView);

System.Net.NetworkCredential cred = new System.Net.NetworkCredential("bla.admin@gmail.com", "admin1234");


System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.Credentials = cred;
smtp.Port = 587;


message.Body = MainBody;
smtp.Send(message);
message.Priority = MailPriority.High;
/* Sending Email To Users About Confirmation --END*/
}
/////////////////////////////

Now this was ok when i m using gmail service for sending mail from my application,
But i want to use my domain's mail a/c for sending email, but it does not work, gives failure .
can u tell me what changes do i need to make... say my domain is bla.com.
And my email id is "customerservice@bla.com".

thanks
hemant

By:
Hemant Thaker

AnswerRe: mailing functionality in my website Pin
N a v a n e e t h26-Oct-09 20:38
N a v a n e e t h26-Oct-09 20:38 
GeneralRe: mailing functionality in my website Pin
Hemant Thaker26-Oct-09 20:57
Hemant Thaker26-Oct-09 20:57 
QuestionRe: mailing functionality in my website Pin
Hemant Thaker26-Oct-09 21:02
Hemant Thaker26-Oct-09 21:02 
AnswerRe: mailing functionality in my website Pin
Abhishek Sur26-Oct-09 22:51
professionalAbhishek Sur26-Oct-09 22:51 
QuestionHow to get HTML controls in code behind Pin
Inderjeet Kaur26-Oct-09 20:36
Inderjeet Kaur26-Oct-09 20:36 
AnswerRe: How to get HTML controls in code behind Pin
deezZ26-Oct-09 21:39
deezZ26-Oct-09 21:39 
Questiondropdownlist using session Pin
m@dhu26-Oct-09 20:34
m@dhu26-Oct-09 20:34 
AnswerRe: dropdownlist using session Pin
N a v a n e e t h26-Oct-09 20:53
N a v a n e e t h26-Oct-09 20:53 
GeneralRe: dropdownlist using session Pin
m@dhu26-Oct-09 21:00
m@dhu26-Oct-09 21:00 
QuestionGridview asp.net 2005 Pin
5fingers26-Oct-09 18:40
5fingers26-Oct-09 18:40 
AnswerRe: Gridview asp.net 2005 Pin
Vimalsoft(Pty) Ltd26-Oct-09 20:29
professionalVimalsoft(Pty) Ltd26-Oct-09 20:29 
Question[Message Deleted] Pin
Purish Dwivedi26-Oct-09 18:24
Purish Dwivedi26-Oct-09 18:24 
AnswerRe: how to maintain session with AccessDataSourceControl in asp.net with C# Pin
Rajmendra*Nh26-Oct-09 19:26
Rajmendra*Nh26-Oct-09 19:26 
QuestionRe: how to maintain session with AccessDataSourceControl in asp.net with C# [modified] Pin
Purish Dwivedi26-Oct-09 20:04
Purish Dwivedi26-Oct-09 20:04 
QuestionWeb deployment project not replacing existing files after 3.5 upgrade Pin
Jordan Marr26-Oct-09 14:12
Jordan Marr26-Oct-09 14:12 
AnswerRe: Web deployment project not replacing existing files after 3.5 upgrade Pin
Oakman26-Oct-09 15:47
Oakman26-Oct-09 15:47 
QuestionDisplaying Image in ASP.NET AJEX Pin
bapu288926-Oct-09 10:03
bapu288926-Oct-09 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.