home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,786 of 10,840   
   Rico to All   
   Sending email in code   
   17 Aug 09 18:23:20   
   
   XPost: alt.comp.lang.vb   
   From: me@you.com   
      
   Hi All,   
      
   I have a client that wants to send email via their program.  I'm using   
   CDONTS code to send email, but I'm not sure where it's getting the SMTP   
   information from.  I'd like to set the SMTP to be a specific server.  Here   
   is the "test" code that I have so far;   
      
      Dim oEmail As New CDONTS.NewMail   
       oEmail.From = "myemail@From.com"   
       oEmail.To = "myemail@To.com"   
       oEmail.BodyFormat = CdoBodyFormatHTML   
       oEmail.Subject = "My Newsletter " & Format(Now(), "mmm-dd-yyyy hh:nn   
   ampm")   
       oEmail.Body = GetHTML("http://www.mywebsite.com/index2.html")   
       oEmail.MailFormat = 0   
       oEmail.Send   
      
   Any help would be greatly appreciated.   
      
   Thanks!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca