Community discussion forum

Need help about sending mail using VB

  • 2 years ago
    hello, hi there again, well, this is about the MAPI.. SMTP.. Winsocks.. that can be used to send email using VB.. i want to try SMTP and Winsockets but the problem is, i don't know any SMTP servers, and most of the servers i found in the internet cannot be accessed (i'm not surprised though, this is to prevent the spams passing through their servers) .. so i tried using MAPI control of VB6.. and now, i get some errors related with the id stuffs, i think it's related with the authentication process.

    this is what i wish to do with VB..
    -create a program that can automatically send emails without the user knowing it (as much as possible)
    -allow file attachments to the email (like attaching video files or pictures)

    ~extra~
    -maybe allow multiple sending of emails

    thank you Wink [;)]










  • 2 years ago

    You should look up CDONTS, or its replacement, depending upon which version of Windows this is running under.

    But I am very concerned about your requirements. "Send emails without the user knowing.. attach bitmaps.."

    This sounds like a virus to me. What are you trying to do?

  • 2 years ago
    thanks for that, oh, you can use CDONTS in VB right?

    and about the requirements, don't worry, it's not a virus or something, it's for a security system which will automatically send captured images and/or video clips to the owner's email Wink [;)]

    -- and another question? do i really need SMTP servers? how do you get these SMTP servers? thanks





  • 2 years ago

    "How do you get these SMTP servers ?"

    Buy it like all other people do.

     

    "-create a program that can automatically send emails without the user knowing it (as much as possible)"

    Your security system (as you call it) can easily be misused. When you are able to send emails without the user being able to detect this, you are also able to receive emails without the user being able to detect this. A simple function of your program then could be:

    Send mass emails to users with attached licensed content. Receive automatic emails from all users with licensed content as a proof. Accuse all users of license abuse and charge them xxx bucks.

    I dont know if you are doing this or not but the possible misuse of such a system greatly outweights it's benefits in my eyes.

  • 2 years ago
    whew, finally my computer's fixed, Geeked [8-|] so that's how you get the smtp server.. i see..

    hmm, about the program being misused, it will all depend on the programmer, all programs can beasily used by the programmer to his own benefit. It will all depend on his objectives. My objective for this project is to help a small business firm to be able to implement a good security system that will be affordable for them. Don't worry, I'm not THAT kind of a programmer Smiley Face [:)]



  • 2 years ago
    Okay I'm going to give you the benafit of the doubt and assume that your program is some sort of auto notification system.

    Anyway... as for "do you really need an SMTP server".  The answer is both yes and no.

    The only reason why you might NEED to is that some spam controls are a little clever about stopping "zombe" machines sending them email.  This can be a pain in the rear end, if you want to send legitamate messages without an SMTP server.

    It is quite possible to implement an SMTP server inside your own program.  The only real difference in fact is that you talk directly to the recipient's server rather than a intermeduary.  To do this you need to look up the MX record for the recipient.  Eg: if you are sending to someone@hotmail.com, you need to look up the IP, listed on the MX record of hotmail.com.

    If this is way beyond you, you could just download a free SMTP server and run it on your network.

    Hope this helps











  • 2 years ago

    Thank you so much for the help, i'll try it out. Don't worry i don't have intentions of doing unwanted softwares and besides, i don't have extra time for that. Wink thanks again for the help

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback