Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> SMTP Access?
tansqrx
post Nov 20 2006, 11:12 PM
Post #1


Super Member
Group Icon

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?
Go to the top of the page
 
+Quote Post
tansqrx
post Dec 7 2006, 03:23 PM
Post #2


Super Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
Quatrux
post Dec 12 2006, 06:58 AM
Post #3


the Q
Group Icon

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. wink.gif
Go to the top of the page
 
+Quote Post
Feedbacker
post Apr 28 2008, 04:37 AM
Post #4


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Can't Access The Cpanel!(7)
  2. Error Accessing Forum Topics(1)
  3. Alternate Way To Access(0)
  4. Site Not Working(5)
  5. Can't Access Astahost Hosteed Sites (including Cpanel And Ftp)(21)
  6. Can't Access Any Site Hosted On The Server(4)
  7. Domain Name Is Not Assigned To Ip. Access Cpanel With Ip Not With Domain Name.(5)


 



- Lo-Fi Version Time is now: 6th July 2008 - 10:17 PM