jasonseay Posted June 17, 2003 Posted June 17, 2003 I'm having trouble sending an email in vb.net the 'cdonts' that i used in vb6 don't seem to work can anyone help? Quote
*Experts* mutant Posted June 17, 2003 *Experts* Posted June 17, 2003 You can do something like this: Dim mailmsg as new Web.Mail.MailMessage mailmsg.from = "youremail" mailmsg.to = "person'semail" mailmsg.Subject = "yoursubject" mailmsg.Body = "thebodyofmsg" Web.Mail.SmtpMail.SmtpServer = "localhost" 'set the server Web.Mail.SmtpMail.Send(mailmsg) 'send it Quote
hog Posted June 25, 2003 Posted June 25, 2003 Mutant, at present I have my app using Outook for sending auto emails, but this only works if the user has Office2000 installed. We still have many user on Office97 so the email function does not work. You mention web mail above, do I need any thing particular to make that work. I mean if my app was to send an auto email would it open up a browser or something? Quote My website
*Experts* mutant Posted June 25, 2003 *Experts* Posted June 25, 2003 It requires the SMTP service to be installed on the computer, or you could try to set the server property to something else which I never tired. Quote
Faceless Master Posted June 26, 2003 Posted June 26, 2003 mutant :- What if i change the smtp to mx4.hotmail.com (smtp of hotmail) and then send mail ;will it work then ??? P.S I dont have Smtp server installed Quote Creativity Beyond Imagination http://www.facelessmaster.tk
begin_with_A Posted July 17, 2003 Posted July 17, 2003 You canmake your Windows XP into an SMTP server... Just go to Control Panel -> Add/Remove programs --> Add/Remove Windows Component and activate SMTP. -A http://www.autojobapply.com/ [send your resume to thousands of job-opennings within minutes! Automate your job hunt!] Quote
Dark Kai Posted September 15, 2003 Posted September 15, 2003 Cool man! work's like a charm How do I add a file attachment to the mail ?? Thanks in advance Quote
Dark Kai Posted September 15, 2003 Posted September 15, 2003 Uhh just got it. mailmsg.Attachments.Add(New System.Web.Mail.MailAttachment("<Filename>", Web.Mail.MailEncoding.UUEncode)) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.