Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. mail from asp.net1.1

mail from asp.net1.1

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nethelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)

    kissy

    C M 2 Replies Last reply
    0
    • K Kissy16

      Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)

      kissy

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Once you have sent any mail at all, then you are able to send mail. Any mail that gets lost, is probably getting caught in a spam filter.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      K 1 Reply Last reply
      0
      • K Kissy16

        Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)

        kissy

        M Offline
        M Offline
        Manas Bhardwaj
        wrote on last edited by
        #3

        Kissy16 wrote:

        following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong.

        The code is ok and you can do nothing in your code to allow this. You should check your smtp server whether it actually sends the mail outside your company domain or not?

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        K 1 Reply Last reply
        0
        • C Christian Graus

          Once you have sent any mail at all, then you are able to send mail. Any mail that gets lost, is probably getting caught in a spam filter.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          K Offline
          K Offline
          Kissy16
          wrote on last edited by
          #4

          thanks for ur replay.when i can send to my company domain,then how the spam can filter other mails. i am not getting,can u please give me some explanation with some example so that i can apply in my code?/ unsent msgs are queued up in queue folder of inetpub please

          kissy

          M 1 Reply Last reply
          0
          • M Manas Bhardwaj

            Kissy16 wrote:

            following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong.

            The code is ok and you can do nothing in your code to allow this. You should check your smtp server whether it actually sends the mail outside your company domain or not?

            Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

            K Offline
            K Offline
            Kissy16
            wrote on last edited by
            #5

            thanks for ur reply. how to check this?what i have to at smtp end? coz i hae keep it on hosting server.accordign that can u give me some idea??? please

            kissy

            C 1 Reply Last reply
            0
            • K Kissy16

              thanks for ur replay.when i can send to my company domain,then how the spam can filter other mails. i am not getting,can u please give me some explanation with some example so that i can apply in my code?/ unsent msgs are queued up in queue folder of inetpub please

              kissy

              M Offline
              M Offline
              Manas Bhardwaj
              wrote on last edited by
              #6

              This is probably an SMTP relaying issue which goes beyond the scope of ASP.Net Talk to your network administrator and tell him that your server needs to be permitted to relay messages.

              Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

              1 Reply Last reply
              0
              • K Kissy16

                thanks for ur reply. how to check this?what i have to at smtp end? coz i hae keep it on hosting server.accordign that can u give me some idea??? please

                kissy

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Talk to your network admin. If mail is only running to your internal address, then the mail server needs to be configured to allow outside mail. Or you should use a different server

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups