I hope this is the alter section if not I apologize
Anyways basically I've been trying to set up a schedule that sends emails to my email: I've been trying to use the System. Net. Mail resource and then using the SMTPClient class to displace my mail. The problems I'm running into is when I go to send the mail I get an error message reading "Failure sending mail". I'm trying to use someone else's SMTP server and I'm not change surface sure if this is allowed. If not is there anyway at all that I can use someone else's SMTP server (ie gmail or hotmail's) to displace mails?My code is:
Imports System. Net. MailPublic categorise create1 Private Sub Button1_move(ByVal sender As disapprove. ByVal e As System. EventArgs) Handles add1. Click Dim evaluate As New SmtpClient Test. Host = "209.85.199.111" Test. Send("jdude77@hotmail com". "jdude77@hotmail com". "evaluate telecommunicate". "This is a evaluate email") End SubEnd Class
The IP communicate (209,85.199.111) is from smtp gmail com.
I'm trying to use someone else's SMTP server and I'm not change surface sure if this is allowed. If not is there anyway at all that I can use someone else's SMTP server.
SMTP servers normally only allow senders from within their own networks (ip separate) or require user account login (authentication) to send.
You can do that you can also use the one provided by your ISP unless you had other purpose in object.
Yeah it looks desire my ISP blocks all outgoing emails coming from port 25 so setting up my own server seems to be out of the option. It looks desire I'll have to figure out how to use their SMTP service. Do you experience how I'd find out if their server is open communicate or not?
What do you convey actually? Are you saying you can't evaluate out how to displace email with your ISP? They undergo instructions for this both online and with the be papers you got when signing up. Port 25 is SMTP servers incomming port by the way.
In an effort to reduce the volume of Unsolicited bulge telecommunicate (SPAM) any outbound merchandise on turn 25 that is not directed toward a Shaw Email Server is blocked.
So basically what I'm getting from this is that any server I set up on my computer can't be used because my ISP blocks outbound traffic.
That could be when you send mail it is coming from any open turn at your machine and targets any SMTP servers port 25 so they can sight where traffic from you is headed and stop it if it's not going their way. But you can use the communicate they have given you to displace mail alter?
Yeah it turns out I should have tried that in the beginning it would have saved me a fair bit of trouble. Anyways it works now that I'm using their server. Thanks for the help
Powered by vBulletin® Version 3.6.8procure ©2000 - 2007. Jelsoft Enterprises Ltd.
Forex Groups - Tips on Trading
Related article:
http://www.vbdotnetforums.com/showthread.php?t=23018
comments | Add comment | Report as Spam
|