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. General Programming
  3. Visual Basic
  4. Pre-requisites for email program

Pre-requisites for email program

Scheduled Pinned Locked Moved Visual Basic
databasesysadminbusinesstutorial
4 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.
  • U Offline
    U Offline
    Uma Kameswari
    wrote on last edited by
    #1

    Hi, I have developed an email program to send emails to users at end of the daily based on the data I have in database. I want to schedule this program in a PC. When I did a test run from that PC I could not get mails from my program. But it is working fine on another computer. Could anyone let me know what are the system requirements for my email program to work correctly. To my uunderstanding we should have SMTP server. How to install/configure SMTP server on the PC. my email code is as follows Dim iMsg As New CDO.Message Const cdoSendUsingPort = 2 ' Apply the settings to the message. With iMsg .To = Recipient .From = Sender .Subject = Subject ' "This is a test CDOSYS message (Sent via Port 25)" .HTMLBody = strHTML .Send End With Regards, Uma

    D _ 2 Replies Last reply
    0
    • U Uma Kameswari

      Hi, I have developed an email program to send emails to users at end of the daily based on the data I have in database. I want to schedule this program in a PC. When I did a test run from that PC I could not get mails from my program. But it is working fine on another computer. Could anyone let me know what are the system requirements for my email program to work correctly. To my uunderstanding we should have SMTP server. How to install/configure SMTP server on the PC. my email code is as follows Dim iMsg As New CDO.Message Const cdoSendUsingPort = 2 ' Apply the settings to the message. With iMsg .To = Recipient .From = Sender .Subject = Subject ' "This is a test CDOSYS message (Sent via Port 25)" .HTMLBody = strHTML .Send End With Regards, Uma

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That depends on the user account your app is running under. For example, if you're using Exchange, you need to setup an Exchange account for the user account that your app is running under.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      U 1 Reply Last reply
      0
      • U Uma Kameswari

        Hi, I have developed an email program to send emails to users at end of the daily based on the data I have in database. I want to schedule this program in a PC. When I did a test run from that PC I could not get mails from my program. But it is working fine on another computer. Could anyone let me know what are the system requirements for my email program to work correctly. To my uunderstanding we should have SMTP server. How to install/configure SMTP server on the PC. my email code is as follows Dim iMsg As New CDO.Message Const cdoSendUsingPort = 2 ' Apply the settings to the message. With iMsg .To = Recipient .From = Sender .Subject = Subject ' "This is a test CDOSYS message (Sent via Port 25)" .HTMLBody = strHTML .Send End With Regards, Uma

        _ Offline
        _ Offline
        _Erik_
        wrote on last edited by
        #3

        It's not usual to find the answer within the question:

        Uma Kameswari wrote:

        .Subject = Subject ' "This is a test CDOSYS message (Sent via Port 25)"

        So, prerrequisite for this code: port 25 must be opened. But port 25 is not usually opened. Some ISP's close it to avoid spam so I guess you should try another port, and maybe SSL, to make sure your emals will be sent. There are several articles here at Code Project that might help you. Search "SMTPClient" and have a look.

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          That depends on the user account your app is running under. For example, if you're using Exchange, you need to setup an Exchange account for the user account that your app is running under.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          U Offline
          U Offline
          Uma Kameswari
          wrote on last edited by
          #4

          We are using exchange server. thank you for your response. Regards, Uma

          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