Saturday, March 24, 2012

SmtpClient , sending mails to @gamil.com or @yahoo.com or @anyOtherThing.com

i am creating a SmtpClient as follows

Dim Client As New SmtpClient("mycompany.com")

itwork fine for all ids end with @dotnet.itags.org.mycompany.com (i mean the To field)

but it throws an exception when i send mails to ids endingwith @dotnet.itags.org.gamil.com or @dotnet.itags.org.yahoo.com or @dotnet.itags.org.anyOtherThing.com

and the exception.message is

'Thread was being aborted.

how can i get escape

Check your SMTP server settings and check the SMTP server logs. My guess is you're not allowed to forward outside your domain.

Jeff


in my servers control panel ,

i have two Email related tabs

1)Email Accounts (POP3)
2)Email Forwarding

in Email Forwarding tab

i have

Add Email Forward

and there i have

Email Address: ............@.paq.info

Email Server:mail.paq.info

Forward To:..............

what can i do with this? :(

the the portion that i marked as .............. is input boxes that i should supply some value

please help me


see my more codes

Dim Message As New MailMessage()

Message.From = New MailAddress(Trim(TxtBxFrom.Text))

Dim MailTo As String = Trim(TxtBxTo.Text)

Dim StringArray As String() = MailTo.Split(";")

For i = 0 To StringArray.Length - 1
Message.To.Add(New MailAddress(StringArray(i)))
Next

Message.Subject = SubjectLine

Message.BodyEncoding = System.Text.Encoding.UTF8

Message.Body = ReplaceManager.Replace

Message.IsBodyHtml = True

Dim Client As New SmtpClient("mycompany.com")

Client.Send(Message)


sujithukvl@.gmail.com:

in my servers control panel ,

i have two Email related tabs

1)Email Accounts (POP3)
2)Email Forwarding

Neither of these apply to sending mail. Talk you your ISP/Host/Server Admin about your mail sending specs.

Jeff


Is there any thing more, that i can do with codes ,before i contact my admin?


You can try a different SMTP server. Take a look atwww.systemweb.mail for code samples.

Jeff


now i m getting an error like this

Mailbox name not allowed. The server response was: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)


That's because the server you're using is not configured to allow you to use it.

Contact your host or admin. Ask them what you need to do to send email from your web site. They control your ability to do so.

Jeff


this seems to be end of all riots

let me do so

thanks

:)


usign localhostas smtp host has solved the issue

:)


following link may be use full for new bies

http://www.systemnetmail.com/default.aspx

http://forums.asp.net/p/1097175/1676636.aspx#1676636

0 comments:

Post a Comment