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,787 of 10,840   
   Rico to Rico   
   Re: Sending email in code   
   18 Aug 09 16:59:50   
   
   XPost: alt.comp.lang.vb   
   From: me@you.com   
      
   nvm, I figured it out using CDOSYS....now if I could only figure out why the   
   HTML isn't formatting properly!   
      
   "Rico"  wrote in message news:sehim.39449$Db2.23118@edtnps83...   
   > 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