Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2005, 04:14 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default email problem in asp.net

Hello,
I am using smtp email in asp.net.

following is the code

        Dim obj As System.Web.Mail.SmtpMail
        Dim MailReportAttachment As System.Web.Mail.MailAttachment
        Dim Mailmsg As New System.Web.Mail.MailMessage

        Dim vSmtpServer As String = ConfigurationSettings.AppSettings("EmailServer")

        Try
            obj.SmtpServer = vSmtpServer
            Mailmsg.To = vMailMsgto
            Mailmsg.Cc = vMailMsgCC
            Mailmsg.From = "\" & vFromDisplayName & "\ <" & vFromMsg & ">"
            Mailmsg.BodyFormat = Mail.MailFormat.Text
            Mailmsg.Subject = vSubject
            Mailmsg.Body = vMsgBody
            obj.Send(Mailmsg)
        Catch ex As Exception
            Throw ex
        End Try

here i am passing valid From , To , CC addresses also i am passing proper SMTP address. I am passing string to CC address sepearated by semicolon (;). but email does not go to all people. some people receives it and some does not. This is working fine in some cases but does not work properly in some cases. It does not even throw error message.

Can anyone please help me?

Thanks


 
Old February 8th, 2005, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Could their spam filters be stopping the emails?






Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML email problem in asp.net sanjivbshinde ASP.NET 2.0 Professional 5 May 29th, 2008 06:49 AM
ASP.NET 2.0 Email Problem-Urgent sohrabus ASP.NET 2.0 Professional 3 October 6th, 2006 11:19 PM
Email in asp.net asif_sharif ASP.NET 1.0 and 1.1 Basics 0 January 3rd, 2006 11:48 AM
the email of asp.net calvinpost ASP.NET 1.x and 2.0 Application Design 3 March 28th, 2004 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.