Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 9th, 2007, 12:35 PM   #1
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 190
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Angry More Mail Problems!!!

Right OK, I want to create this mailing feature of one of my programs. So you were very helpful and gave me the namespace I needed to research. I initially tried it and had problems with the relay server and now I'm trying to fix these:

Sub Authenticate()
'create the mail message
Dim mail As New MailMessage()

'set the addresses
mail.From = New MailAddress(“matt@mattireland.co.uk”, Matt Ireland)
mail.To.Add(“eg@example.net”, “Mr Example”)

'set the content
mail.Subject = "Testing"
mail.Body = "Testing email"

'send the message
Dim smtp As New SmtpClient("127.0.0.1")

'to authenticate we set the username and password properites on the SmtpClient
‘what do I do with this bit???
smtp.Credentials = New NetworkCredential("username", "password")
smtp.Send(mail)
End Sub 'Authenticate

I'm not sure what to do with the bit that I've marked. Please could someone help? I'm still a real noob in this area so haven't quite grasped the relay server bit yet. Goodness: and I thought that DX was the hardest VB got!
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Jul 9th, 2007, 12:48 PM   #2
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 190
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Oh just received a really helpful post:

I just have to be an ass and say "A bit" I think that's an under statement. Google SMTP server or go to download.com and search for SMTP server. Or if you have windows xp pro, or server, install IIS, and there is a default smtp server in there. Once you have an SMTP server, you will want to then learn how to configure it

I'll try this but any help in the mean time would be really, really helpful. Thanks! I do have XP pro on my notebook and can use that.
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail::Sender Problems Pizentios Perl 4 Sep 19th, 2006 5:18 PM
google mail vs yahoo mail hoffmandirt Coder's Corner Lounge 23 Sep 7th, 2006 2:22 PM
Java mail problem with attachment tsofras Java 1 Dec 16th, 2005 4:45 AM
cgi file upload with images yuckz Perl 1 Sep 10th, 2005 4:51 PM
2 problems with a script glevine Perl 5 Jul 20th, 2005 12:57 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:44 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC