Results 1 to 3 of 3

Thread: Sending Email CDO Schemas

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    564

    Sending Email CDO Schemas

    So I've got some code that sends email using Gmail. It relies on schemas.microsoft.com but the link seems to have very recently gone dead. I was thinking it might have changed from http to https but that's not working either. Any ideas?

    Here's my code snippet:

    Code:
       schema = "http://schemas.microsoft.com/cdo/configuration/"
       Flds.Item(schema & "sendusing") = 2
       Flds.Item(schema & "smtpserver") = "smtp.gmail.com"
       Flds.Item(schema & "smtpserverport") = 465
       Flds.Item(schema & "smtpauthenticate") = 1
       Flds.Item(schema & "sendusername") = Email$
       Flds.Item(schema & "sendpassword") = SMTPPass$
       Flds.Item(schema & "smtpusessl") = 1
       Flds.Update
    Thanks in advance for any help.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Sending Email CDO Schemas

    Those are not web site URLs. They are just strong names.

    They also exist as predefined constants so your concatenation isn't necessary.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    460

    Re: Sending Email CDO Schemas

    add

    Code:
    smtpusessl = 1
    and change the port to 587

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