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

ASP.NET

 
AnswerRe: to call the value from the database Pin
N a v a n e e t h16-Nov-08 21:14
N a v a n e e t h16-Nov-08 21:14 
GeneralRe: to call the value from the database Pin
varsh1217-Nov-08 1:46
varsh1217-Nov-08 1:46 
GeneralRe: to call the value from the database Pin
N a v a n e e t h17-Nov-08 15:05
N a v a n e e t h17-Nov-08 15:05 
AnswerRe: to call the value from the database Pin
Tarun Dudhatra16-Nov-08 21:38
Tarun Dudhatra16-Nov-08 21:38 
GeneralRe: to call the value from the database Pin
varsh1217-Nov-08 1:57
varsh1217-Nov-08 1:57 
Questionmore than one excel sheet Pin
vikas272716-Nov-08 20:24
vikas272716-Nov-08 20:24 
AnswerRe: more than one excel sheet Pin
N a v a n e e t h16-Nov-08 21:20
N a v a n e e t h16-Nov-08 21:20 
Questionsending Email Pin
joindotnet16-Nov-08 18:21
joindotnet16-Nov-08 18:21 
hi all, I am learning to send an email frm my website using system.net.mail. The mail is sent and there is no error but the recipient doesn't recieve the mail but it is shown in Inetpub\mailroot\queue and after sometime delivery is failed.
Plz help me.Where I am wrong ?? Any specific setting for this??

//variables
string strFromEmail = tbxFrom.Text;
string strToEmail = tbxTo.Text;
string strSubject = tbxSubject.Text;
string strMsg = ftbMsg.Text;
string strHostName = "mail.gmail.com";
int iHostSMTPPort=25;
//string strImagePath;

//variable to create message instace
MailAddress mailAddrFrom = new MailAddress(strFromEmail);
MailAddress mailAddrTo = new MailAddress(strToEmail);
MailMessage msgObj = new MailMessage(mailAddrFrom,mailAddrTo);


//definitions to send mail
SmtpClient smtpObj = new SmtpClient(strHostName, iHostSMTPPort);

//settings to send email
msgObj.Subject = strSubject;
msgObj.Body = strMsg;
msgObj.IsBodyHtml = true;
smtpObj.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;



//sending email
smtpObj.Send(msgObj);
AnswerRe: sending Email Pin
Abhijit Jana16-Nov-08 19:40
professionalAbhijit Jana16-Nov-08 19:40 
GeneralRe: sending Email Pin
joindotnet16-Nov-08 19:43
joindotnet16-Nov-08 19:43 
GeneralRe: sending Email Pin
Tarun Dudhatra16-Nov-08 21:41
Tarun Dudhatra16-Nov-08 21:41 
AnswerRe: sending Email Pin
N a v a n e e t h16-Nov-08 21:22
N a v a n e e t h16-Nov-08 21:22 
GeneralRe: sending Email Pin
joindotnet16-Nov-08 21:41
joindotnet16-Nov-08 21:41 
Questionlabel viewstate not preserved Pin
hassanmohamed16-Nov-08 14:54
hassanmohamed16-Nov-08 14:54 
AnswerRe: label viewstate not preserved Pin
Paul Conrad16-Nov-08 17:55
professionalPaul Conrad16-Nov-08 17:55 
AnswerRe: label viewstate not preserved Pin
Paddy Boyd16-Nov-08 20:47
Paddy Boyd16-Nov-08 20:47 
AnswerRe: label viewstate not preserved Pin
N a v a n e e t h16-Nov-08 21:23
N a v a n e e t h16-Nov-08 21:23 
AnswerRe: label viewstate not preserved Pin
Anish Gopi17-Nov-08 0:26
sitebuilderAnish Gopi17-Nov-08 0:26 
QuestionHttp header issue Pin
George_George16-Nov-08 14:29
George_George16-Nov-08 14:29 
AnswerRe: Http header issue Pin
B.Balachandhar16-Nov-08 20:29
B.Balachandhar16-Nov-08 20:29 
GeneralRe: Http header issue Pin
George_George17-Nov-08 0:55
George_George17-Nov-08 0:55 
QuestionProblem with divs layout when using a slooooow connection Pin
AlexeiXX316-Nov-08 8:38
AlexeiXX316-Nov-08 8:38 
AnswerRe: Problem with divs layout when using a slooooow connection Pin
Christian Graus16-Nov-08 12:51
protectorChristian Graus16-Nov-08 12:51 
GeneralRe: Problem with divs layout when using a slooooow connection Pin
AlexeiXX316-Nov-08 17:32
AlexeiXX316-Nov-08 17:32 
GeneralRe: Problem with divs layout when using a slooooow connection Pin
N a v a n e e t h16-Nov-08 21:28
N a v a n e e t h16-Nov-08 21:28 

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.