Results 1 to 38 of 38

Thread: email sender

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    email sender

    this email can send ssl mails + attachments, for example to hotmail, gmail, etc..
    i use 2 methods
    1. cdo object, when using ssl in this method, i could send to gmail, no problems,
    but i couldn't yet send to hotmail.
    2. full ssl protocol, i took it from psc, all the credits included.
    i improved it a little.

    this can probably work with any server,
    i checked it with gmail and hotmail, both using ssl.

    feel free to post any comment.

    added new controls: socket and listview, so it can work on Windows7

    enjoy.

    EDIT: this is an update
    it includes now also standard protocol, (no ssl)
    some fixing to the engine + gui
    but i haven't the time to test all features yet.
    if you try it, please let me know how it works for you.
    i plan to continue work on it, especially on the gui side,
    and maybe recieving also.
    Attached Files Attached Files
    Last edited by whatsup; Dec 25th, 2010 at 07:44 PM.

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Is there any reason why you chose .7z to archive the file? Perhaps using Winzip would have been more appropriate since it comes with Windows. How are the runtime files used in the program and which directory are you suppose put them in?

    Edit:

    For those who can't open the .7z file you can download the .7z extractor here.
    Last edited by Nightwalker83; Mar 16th, 2010 at 10:02 PM. Reason: Adding more
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    every thing is sorted in the project file
    you don't have to worry about the folders
    as long as you unpack all the archive to one parent folder

    about the 7z, i found it the best zip utility,
    it is full free, availbe with source code
    and i think this site should support it.

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Which operating system did you use to create the project on? I have Vista and unfortunately, the project doesn't won't to load for me.

    Edit:

    I just tried your program and it does send the email to my email address.
    Last edited by Nightwalker83; Mar 16th, 2010 at 10:55 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: email sender

    Please put the full source code in a zip file attachment.

    Thank you.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i updated the mailer
    i made some tests, and found some things
    with the CDO method i can send to gmail.com but not to live.com - SSL on
    without CDO, i can send to hotmail, and not to gmail - SSL on

    so when you come to send and fail, try the other method, (with/without CDO).


    with no SSL i didn't test it yet, i don't know servers with no SSL

    also i guess that no secure connection is going to disapear.

  7. #7
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: email sender

    I am getting an error on Sub Main() - I am running in Win7. Is that the reason?

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    what error do you get exactly ?

  9. #9
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: email sender

    OK I don't get it anymore. (I don't know why....?)

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i uploaded a fix + some gui addons

  11. #11
    New Member
    Join Date
    Apr 2010
    Posts
    12

    Re: email sender

    That's great! thanks whatsup

    just a small question, when we edit the settings, do we edit the server and port? if we do what do we put there? How do I know the server and port?
    Last edited by Q80BOY; Apr 7th, 2010 at 06:29 AM.

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    the server you need to get from the mail provider or do a search in google,
    the same for the port
    i included a file with details of gmail.com
    and the default settings are for live.com (hotmail.com)
    so you already have 2 major servers

    i should update the server list with hotmail details too.

  13. #13
    New Member
    Join Date
    Apr 2010
    Posts
    12

    Re: email sender

    Quote Originally Posted by whatsup View Post
    the server you need to get from the mail provider or do a search in google,
    the same for the port
    i included a file with details of gmail.com
    and the default settings are for live.com (hotmail.com)
    so you already have 2 major servers

    i should update the server list with hotmail details too.
    ahaa thanks and please do update with the hotmail details

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    Quote Originally Posted by Q80BOY View Post
    ahaa thanks and please do update with the hotmail details
    done, with also some changes to the code.

  15. #15
    New Member
    Join Date
    Apr 2010
    Posts
    12

    Re: email sender

    Your help is highly appreciated!!

  16. #16
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    @ whatsup

    Which code is used instead ofmaking the email go through out look? I made a email program but can't figure out how to send the email, etc without needing access to outlook?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  17. #17

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i don't use any outlook
    i'm using CDO or the actual SSL protocol
    can't you see this in my code ?

  18. #18
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Quote Originally Posted by whatsup View Post
    i don't use any outlook
    i'm using CDO or the actual SSL protocol
    can't you see this in my code ?
    Yes! I use the mapi controls in my program and was wondering how I could bypass having to use outlook and not having to rewrite my code.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  19. #19

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    Quote Originally Posted by Nightwalker83 View Post
    Yes! I use the mapi controls in my program and was wondering how I could bypass having to use outlook and not having to rewrite my code.
    it shouldn't be a problem because you have the source code how to do this.
    you probably want to use GUI version, so open Forms\MailSender.frm and
    view the code,
    it is very simple.

    in general, instead of call outlook object, call cdo or ssl - mail send

    if you still have a problem you can post your project,
    and i'll try to merge it with mine.

    NOTE:
    before you do that, you better check that my program can actually send the email to the account you need.
    there could be some problems,
    for example, i couldn't send to gmail via SSL only via CDO,
    and couldn't send to hotmail via CDO, only via SSL.

  20. #20
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Quote Originally Posted by whatsup View Post
    it shouldn't be a problem because you have the source code how to do this.
    you probably want to use GUI version, so open Forms\MailSender.frm and
    view the code,
    it is very simple.

    in general, instead of call outlook object, call cdo or ssl - mail send

    if you still have a problem you can post your project,
    and i'll try to merge it with mine.

    NOTE:
    before you do that, you better check that my program can actually send the email to the account you need.
    there could be some problems,
    for example, i couldn't send to gmail via SSL only via CDO,
    and couldn't send to hotmail via CDO, only via SSL.
    Ah ok! thanks. I started a thread in the VB6 section about the MAPI controls earlier today if you want to look at it. It also includes a link to the thread where my program is located.
    Last edited by Nightwalker83; May 16th, 2010 at 05:56 AM. Reason: Fixed spelling!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  21. #21
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Re: email sender

    hope you will support yahoo?
    is it possible?

  22. #22

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i don't knowthe exact setting. (server, port)
    you can try, and tell me the result,
    and i'll check this.

  23. #23

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    this is an update
    1. it uses now a new winsocket, no need for ocx any more
    2. it doesn't use richtext ocx.
    Attached Files Attached Files

  24. #24
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Quote Originally Posted by whatsup View Post
    2. it doesn't use richtext ocx.
    In the latest version of my email program I replaced the Rich text boxes with normal textboxes setting the multiline value to true. I found if I used my program in Win 7 before I did that my program would error saying that ocx that controls the rich text box was missing.

    Edit:

    The error message box needs to be fixed! There is no visible message displayed on it.
    Last edited by Nightwalker83; Aug 9th, 2010 at 09:10 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  25. #25

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i'm sorry i;m maid some changes to the socket, and it's still in progress

  26. #26

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    I made the fixes, and now everything should work perfectly.

    i tested this also with a 90K attachment, (that is much more than MAX SSL Packet)
    and it works well.

  27. #27
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    I receive an error "Time out: 30000I/O " Error Number: 87h Module when attempting to send an email.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  28. #28

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    yes it's a bug, i fixed it now,
    updated the attachment

  29. #29
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Now I get "Time out: 30"!

    Edit:

    Just received: "Time out: 30I/O " Error Number: 87h Module

    Following your connection setting listed in servers.txt for gmail.

    Also, I found out that yahoomail wont allow smtp/pop unless the user has a premium account.
    Last edited by Nightwalker83; Aug 17th, 2010 at 02:21 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  30. #30

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i get refused connection also with the old version, that uses old vb ocx
    so i'll check with a different wireless and come with result.

    anyway, i could sent + 90k attachment, from a different location, as i said in the post above, no problem.

  31. #31
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    The attachment in the first post was the one I downloaded.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  32. #32

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i just checked this, from the attachment in this post, and it works , fast and good no problems.

    BTW: when i said 90K attachment, i ment that i sent a mail with attached file, file size: 90kb

    i'm sorry, but i don't know what's the problem on your machine.
    maybe your wireless ?

    yesterday, i tested , with a public wireless, and i got refused connection,
    but that because it was a public wireless.

    not a problem with the mailer nor the sock.
    they both were tested several times, and work fast and good.

  33. #33
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: email sender

    Quote Originally Posted by whatsup View Post
    i'm sorry, but i don't know what's the problem on your machine.
    maybe your wireless ?
    I reckon it's Vista causing the problem! Going to upgrade to Win7 at Christmas.

    Edit:

    Nope! Tried it on my Win7 Pro laptop and it fails on there too. Funny thing is one of the previous versions of your program you had uploaded worked on both my laptop and pc.
    Last edited by Nightwalker83; Aug 19th, 2010 at 04:44 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  34. #34
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    Re: email sender

    Hello whatsup, I have another question again.

    I did just find following post on your thread (#23):

    this is an update
    1. it uses now a new winsocket, no need for ocx any more
    2. it doesn't use richtext ocx.
    Now I was wondering, if the attachment from this post is newer than the one from the first post...
    The edit date from the first post is the newest - but maybe you did not change the attachment as you edited that post.

    I think the best would be to always update the first post with the newest release and delete all attachments from the other posts.

    Would be nice to hear from you. Thanks!

  35. #35

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    i added a new version with new listview control
    i tested this on windows7 and it works well.
    no ocx file is required.

  36. #36
    New Member
    Join Date
    May 2011
    Posts
    1

    Re: email sender

    I'm sorry to bumb this old thread, but mailer gives me error on 'Sending: Master Key' , so Sending Failed ..
    Can some confirme , or is it just me ?
    tnx in andvance

  37. #37
    New Member
    Join Date
    Apr 2011
    Posts
    1

    Re: email sender

    Just tested, same problem here.

  38. #38

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: email sender

    the ssl engine won't work anymore for live server because microsoft made changes to that server
    so now the ssl engine is useless
    what still works, is CDO engine with gmail

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width