Click here to Skip to main content
15,892,697 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calling functions in a win32 dll from vb.net application. Pin
Abhijit Jana16-Jul-09 5:56
professionalAbhijit Jana16-Jul-09 5:56 
QuestionMysterious FormatException for Convert.ToInt32()... Pin
chanakya3316-Jul-09 4:58
chanakya3316-Jul-09 4:58 
AnswerRe: Mysterious FormatException for Convert.ToInt32()... Pin
Christian Graus16-Jul-09 7:04
protectorChristian Graus16-Jul-09 7:04 
GeneralRe: Mysterious FormatException for Convert.ToInt32()... Pin
chanakya3316-Jul-09 7:41
chanakya3316-Jul-09 7:41 
QuestionHow I can call a javascript function on Treeview Node Click/Select Pin
Qasim198416-Jul-09 3:23
professionalQasim198416-Jul-09 3:23 
Questionjunk mail problem Pin
Mogamboo_Khush_Hua16-Jul-09 3:12
Mogamboo_Khush_Hua16-Jul-09 3:12 
AnswerRe: junk mail problem Pin
Abhishek Sur16-Jul-09 3:18
professionalAbhishek Sur16-Jul-09 3:18 
GeneralRe: junk mail problem Pin
Mogamboo_Khush_Hua16-Jul-09 3:34
Mogamboo_Khush_Hua16-Jul-09 3:34 
Abhishek Sur wrote:
Is it making Junk in your Company MailBox or in GMail


Junk mail is coming in my company mailbox

Abhishek Sur wrote:
Check if the IsBodyHtml of the MailMessage object is set to true as well... Smile Smile


Already done

Abhishek Sur wrote:
And also make proper HTML document always if you set IsBodyHtml to true. Dont put anchor tag inside a plain text email body.


Cannot understand i am attaching my my code 4r ur reference.

try
        {
            string authUser = System.Configuration.ConfigurationSettings.AppSettings["MailServerUserName"].ToString();
            string authPass = System.Configuration.ConfigurationSettings.AppSettings["MailServerPassword"].ToString();
            string domain = System.Configuration.ConfigurationSettings.AppSettings["Domain"].ToString();
            NetworkCredential authenticatedMail;
            if(domain != "")
                authenticatedMail = new NetworkCredential(authUser, authPass,domain);
            else
                authenticatedMail = new NetworkCredential(authUser, authPass);

            string SMTPServer = System.Configuration.ConfigurationSettings.AppSettings["MyMailServer"].ToString();
            SmtpClient client = new SmtpClient();
            client.Host = SMTPServer;
            client.Port = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["MyMailServerPort"]);
            MailAddress from = new MailAddress(fromEmailAddress, fromName);
            MailAddress to = new MailAddress(toAddress, toName);
            MailMessage message = new MailMessage(from, to);
            message.Subject = Subject;
            message.Body = MessageBody;
            message.IsBodyHtml = true;
            message.Priority = MailPriority.High;
            client.UseDefaultCredentials = true;
            client.Credentials = authenticatedMail;
            //client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
            client.Send(message);
            resultMail = true;
        }

GeneralRe: junk mail problem Pin
Mogamboo_Khush_Hua16-Jul-09 3:36
Mogamboo_Khush_Hua16-Jul-09 3:36 
AnswerRe: junk mail problem Pin
Tamer Oz16-Jul-09 3:25
Tamer Oz16-Jul-09 3:25 
QuestionImage preview Pin
Rijz16-Jul-09 3:11
Rijz16-Jul-09 3:11 
AnswerRe: Image preview Pin
Abhishek Sur16-Jul-09 3:14
professionalAbhishek Sur16-Jul-09 3:14 
GeneralRe: Image preview Pin
Rijz16-Jul-09 3:24
Rijz16-Jul-09 3:24 
GeneralRe: Image preview Pin
Enver Maroshi16-Jul-09 4:02
Enver Maroshi16-Jul-09 4:02 
GeneralRe: Image preview Pin
Rijz16-Jul-09 18:46
Rijz16-Jul-09 18:46 
QuestionBinding Data from Dataset to asp table Pin
getaccessyr16-Jul-09 2:53
getaccessyr16-Jul-09 2:53 
AnswerRe: Binding Data from Dataset to asp table Pin
K030616-Jul-09 3:00
K030616-Jul-09 3:00 
AnswerRe: Binding Data from Dataset to asp table Pin
Muhammad Mazhar16-Jul-09 3:13
Muhammad Mazhar16-Jul-09 3:13 
QuestionSystem.Configuration.ConfigurationManager.AppSettings Pin
Member 426027016-Jul-09 2:14
Member 426027016-Jul-09 2:14 
AnswerRe: System.Configuration.ConfigurationManager.AppSettings Pin
Vimalsoft(Pty) Ltd16-Jul-09 2:49
professionalVimalsoft(Pty) Ltd16-Jul-09 2:49 
Questionerror:Unrecognised grouping construct Pin
Astitva2316-Jul-09 1:04
Astitva2316-Jul-09 1:04 
AnswerRe: error:Unrecognised grouping construct Pin
Christian Graus16-Jul-09 1:25
protectorChristian Graus16-Jul-09 1:25 
QuestionIIS and Authorisation error Pin
koolprasad200316-Jul-09 0:53
professionalkoolprasad200316-Jul-09 0:53 
AnswerRe: IIS and Authorisation error Pin
Abhijit Jana16-Jul-09 1:00
professionalAbhijit Jana16-Jul-09 1:00 
GeneralRe: IIS and Authorisation error Pin
koolprasad200316-Jul-09 22:44
professionalkoolprasad200316-Jul-09 22:44 

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.