|
|
|
|
![]() ![]() |
Nov 20 2006, 11:12 PM
Post
#1
|
|
|
Super Member Group: [HOSTED] Posts: 501 Joined: 25-April 05 Member No.: 4,374 |
I’m thinking that this is more of a Astahost host question than a VB.NET question. An application that I am working on needs to send notification once an update is performed. I figured the best way to do this was to send an email message to a specific Astahost email account. I have already setup the account and it works fine but I’m having problems using Astahost as the relay. Below is a snippet of the code that I am using.
CODE Public Function sendMail() As Boolean Try ‘_strFrom= “x@ycoderscookbook.com” ‘_strTo= “y@ycoderscookbook.com” Dim mail As New MailMessage(_strFrom, _strTo) mail.Subject = _strSubject mail.Body = _strBody Dim SmtpMail As New SmtpClient SmtpMail.Host = "ycoderscookbook.com" SmtpMail.Send(mail) Catch ex As Exception MessageBox.Show(ex.ToString) End Try I get an exception thrown (Unable to read data from the transport connection: net_io_connectionclosed). When sniffing the packets, the request is made but no reply is ever received. I’m guessing that Astahost has done something to block this behavior (prevent SPAM) and that’s why no communication is happening. Any ideas on the mail issue or perhaps a better way to send program notifications? |
|
|
|
Dec 7 2006, 03:23 PM
Post
#2
|
|
|
Super Member Group: [HOSTED] Posts: 501 Joined: 25-April 05 Member No.: 4,374 |
Any word on this yet? I have found a stop gap solution but it is not perfect by any means.
My solution so far includes using phpFormGenerator from the Fantastico Cpanel addon. My biggest gripe is that the attachments are saved in a very weird way and I can not customize the subject. |
|
|
|
Dec 12 2006, 06:58 AM
Post
#3
|
|
|
the Q Group: [HOSTED] Posts: 982 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
I don't know about vb.net, but when I use php on astahost server I can send email using smpt, hope this helps.
|
|
|
|
Apr 28 2008, 04:37 AM
Post
#4
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
For Emailing option
SMTP Access? I want to know, I have received my all massages diffrent-2 Email ID to received only one Email ID address. -question by Sumit Khicha |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 6th July 2008 - 10:17 PM |