Control Panel
Forum
Hosting Help
ASP.NET 3.5 & SQL 2008 Web Hosting
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Silverlight Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
88776
Average new registrations per day (in last 7 days):
89
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
Problem with e-mail
Problem with e-mail
10/2/2008
Author:
Paul N Mallett
http://aspspider.org/mallett76
Paul's Website
Hello,
I'm receiving an error message, when trying to send e-mail, it is The server response was: 550 5.1.0 Authentication required.
This code actually works at home, but not on my spider web site. Any help would be appreciated.
Thanks,
Paul
Sub btnSendFeedback_Click(sender as Object, e as EventArgs)
'Create an instance of the MailMessage class
Dim objMM as New MailMessage()
'Set the properties - send the email to the person who filled out the
'feedback form.
'''objMM.To = "webmaster@yoursite.com"
'objMM.To = "paulmallet145@comcast.net"
'' objMM.To = "Paul_Mallett@cable.comcast.com" 'using this e-mail address worked from work
'objMM.To = "paulmallet145@comcast.net" 'Seemed to to not error, but didnt' receive any email
objMM.To = "mallett76@hotmail.com"
objMM.From = txtEmail.Text
'If you want to CC this email to someone else, uncomment the line below
'objMM.Cc = "someone@someaddress.com"
'If you want to BCC this email to someone else, uncomment the line below
'objMM.Bcc = "someone@someaddress.com"
'Send the email in text format
objMM.BodyFormat = MailFormat.Text
'(to send HTML format, change MailFormat.Text to MailFormat.Html)
'Set the priority - options are High, Low, and Normal
objMM.Priority = MailPriority.Normal
'Set the subject
objMM.Subject = "4GuysFromRolla.com - Feedback"
'Set the body
objMM.Body = "test"
'Specify to use the default Smtp Server
'SmtpMail.SmtpServer = ""
'SmtpMail.SmtpServer = "mail.comcast.net"
'SmtpMail.SmtpServer = "MACHEEXCMB01.cable.comcast.com" This server worked at work
SmtpMail.SmtpServer = "smtp.comcast.net"
'Now, to send the message, use the Send method of the SmtpMail class
SmtpMail.Send(objMM)
panelSendEmail.Visible = false
panelMailSent.Visible = true
End Sub
Answers .............
Author:
Paul N Mallett
Posted Date: 10/3/2008
http://aspspider.org/mallett76
Paul's Website
I actually found some code, that did work.
I'll post it, in case anyone else runs into the same issue.
Here it is,
'Create a new MailMessage object and specify the"From" and "To" addresses
Dim Email As New System.Net.Mail.MailMessage( _
"mallett76@hotmail.com", "mallett76@hotmail.com")
Email.Subject = "You have a new wood work purchase."
Email.Body = "You have a new wood work purchase."
Dim mailClient As New System.Net.Mail.SmtpClient()
'This object stores the authentication values
Dim basicAuthenticationInfo As _
New System.Net.NetworkCredential("put your e-mail user name here", "put your e-mail password here")
'Put your own, or your ISPs, mail server name onthis next line
mailClient.Host = "smtp.comcast.net"
mailClient.UseDefaultCredentials = False
mailClient.Credentials = basicAuthenticationInfo
mailClient.Send(Email)
Author:
mayank kumar srivastava
Posted Date: 10/21/2008
http://aspspider.info/mayank13dec
MyTestingSite
you can check following link also .....
http://www.aspnettutorials.com/tutorials/email/
i
think, it will help you.
Author:
Izharuddin S Shaikh
Qualis Advisers Private Limited
Posted Date: 10/30/2008
http://aspspider.info/izhar
DotNetExpress
Try This
Imports System.Web.Mail
' Create the message.
Dim Msg As New MailMessage
Msg.Subject = Issue Report
Msg.Body = Body Message
Msg.From = EmailId
' Put your email address here!!
Msg.To = yaour email id
If chkPriority.Checked Then Msg.Priority = MailPriority.High
' Send the message.
SmtpMail.Send(Msg)
Author:
Izharuddin S Shaikh
Qualis Advisers Private Limited
Posted Date: 10/30/2008
http://aspspider.info/izhar
DotNetExpress
Try This
Imports System.Web.Mail
' Create the message.
Dim Msg As New MailMessage
Msg.Subject = Issue Report
Msg.Body = Body Message
Msg.From = EmailId
' Put your email address here!!
Msg.To = yaour email id
If chkPriority.Checked Then Msg.Priority = MailPriority.High
' Send the message.
SmtpMail.Send(Msg)
You must
login
to post answer for this question.
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.