![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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 'AuthenticateI'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! |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |