CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26

Thread: Email with VB

  1. #16
    Join Date
    Nov 2002
    Location
    Baby Land
    Posts
    646

    Re: Email with VB

    Why not try vbsendmail.dll, it's been around for a while now, with full source code, only need winsock.
    You can find it in this link
    http://www.freevbcode.com/ShowCode.Asp?ID=109

  2. #17
    Join Date
    Jul 2004
    Location
    Jakarta, Indonesia
    Posts
    596

    Re: Email with VB

    thanks Luthv and Zeb..
    it just coincedent or vbsendmail that u and Zeb talking are the same?

    well..i guess i'm gonna give it a try...
    thanks again

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL

  3. #18
    Join Date
    Oct 2001
    Location
    Melbourne, Australia
    Posts
    576

    Re: Email with VB

    no coincidence - it's a pretty commonly used dll cause it is so much better than MAPI

  4. #19
    Join Date
    Mar 2004
    Posts
    2

    Re: Email with VB

    Hi all,

    I seem to have problems tackling the security issues of the Microsoft Outlook as the window on
    "A program is trying to automatically send emails on your behalf.
    Do you allow this?

    If this is unexpected, it may be a virus and you should choose "No"."

    I have searched through msdn pages, and found this url.
    http://msdn.microsoft.com/library/de...mmatically.asp

    However, the security features on my Microsoft Outlook is disabled. So how is it possible to still get this message? what else can I do?

    Thanx. Need the help i could get!

  5. #20
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Re: Email with VB

    I'm afraid you can't do anything.
    Older versions of Outlook didn't have that feature but Microsoft added it for extra security.
    I strongly recommend that you use vbSendMail.dll (see posts above).
    Visit www.greekroms.net

    Greek translations of roms

  6. #21
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Email with VB

    This may help you out. It only uses winsock:
    http://www.codeguru.com/forum/showth...562#post685872
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  7. #22
    Join Date
    Mar 2004
    Posts
    2

    Re: Email with VB

    Well i realised i cant get past the outlook thingy. So the best way is probably to use SMTP which i did.

    Dim iMsg As New CDO.Message
    Dim iConf As New CDO.Configuration
    Dim Flds

    Set Flds = iConf.Fields

    With Flds
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = SMTPServer
    'Use SSL to connect to the SMTP server:
    .Item(cdoSMTPServerPort) = SMTPPort
    .Item(cdoSMTPConnectionTimeout) = 10
    .Update

    End With

    With iMsg
    Set .Configuration = iConf
    .To = ReceiveBY
    .From = SendBY
    .Subject = strSubj
    .HTMLBody = strBody
    End With

    And it works fine and save me all the trouble of finding ways to bypass the outlook security. But anyway thanx guys for the help.

  8. #23
    Join Date
    Jan 2004
    Location
    San Diego
    Posts
    148

    Re: Email with VB

    Quote Originally Posted by babtbaby
    Well i realised i cant get past the outlook thingy.
    Actually, you can bypass the Outlook warning messages. ContextMagic has written a freeware program called ClickYes that essentially suppresses the Outlook warnings. The following link allows you to download the program and offers instructions on how to implement its use in various programming languages. http://www.contextmagic.com/express-clickyes/
    Naturally, due to inherent risks from viruses I'd recommend using this program only when absolutely necessary (i.e. if Outlook is your only option for sending email), otherwise keep it turned off.
    Death is life's special way of telling you you're fired.

    For I do not seek to understand in order to believe, but I believe in order to understand. For I believe this: unless I believe, I will not understand. - Anselm of Canterbury (1033–1109)

  9. #24
    Join Date
    May 2005
    Posts
    2

    Smile Re: Email with VB

    Here is that tricky code that will allow you to get past the Outlook security box when auto-sending emails thru a program. It puts an Icon on the task tray that you can set the activation on. It is called ClickYesSetup. I didn't attach it because it is an executable and we all are wary of those.
    But, you can google it and it will come up. This will save a tone of time when your program has to send out more than just a few emails

    Al

  10. #25
    Join Date
    Feb 2006
    Posts
    7

    Re: Email with VB

    when I use this code to send mail,my McFee displayes the "Protocol Error" message.
    I am using this code.

    Private Sub Command1_Click()
    MAPISession1.SignOn
    MAPIMessages1.SessionID = MAPISession1.SessionID
    MAPIMessages1.Compose
    MAPIMessages1.RecipAddress = "[email protected]"
    MAPIMessages1.ResolveName
    MAPIMessages1.MsgSubject = "Message Subject"
    MAPIMessages1.MsgNoteText = "Hello World"
    MAPIMessages1.Send False
    MAPISession1.SignOff
    End Sub

    plz tel me the solution quicky.

  11. #26
    Join Date
    Feb 2006
    Posts
    7

    Email with VB (Still Getting Problem)

    I have run the following code a number of times,the code runs correctly, no error msg.but after some time my McFee display that a mail to specified person with subject is beaing sent,but with a protocol msg,So, I Uninstall the McFe. sut still I am unable to sent mail.I have run code from "Bnoyzy"but still.....
    I am getting no msg ,but unable to send mail.
    plz tell me the sol.

Page 2 of 2 FirstFirst 12

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

Featured