PDA

View Full Version : این خطا مال چیه؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟



Asad.Safari
جمعه 29 خرداد 1383, 12:10 عصر
این خطا مال چیه؟(مربوط به ارسال نامه است
The transport failed to connect to the server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.

Source Error:


Line 52: objmail.priority=mailpriority.high
Line 53: smtpmail.smtpserver="mail.yahoo.com"
Line 54: smtpmail.send(objmail)
Line 55: response.Redirect("thank.htm")
Line 56: end sub

SoheilKH
جمعه 29 خرداد 1383, 13:25 عصر
smtpmail.smtpserver="mail.yahoo.com
اس ام تی پی سرور رو خالی بذار


smtpmail.smtpserver=""

توی همین بخش هم یک سرچ بکنی در مورد این موضوع بحث شده است

موفق باشید

Asad.Safari
شنبه 30 خرداد 1383, 19:10 عصر
وقتی که خالی گذاشتم اینو داد
:خیلی متعجب:
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

Source Error:

SoheilKH
شنبه 30 خرداد 1383, 22:50 عصر
احتمالا امکان فرستادن Email را نداری!(البته احتمال را می دهم)

اما طریقه فرستادن ایمیل به صورت زیر است

Dim Message As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage
Message.To = "YourMail"
Message.BodyEncoding = System.Text.Encoding.UTF8
Message.BodyFormat = MailFormat.Html
Message.From = "Web@Yourmail.com"
Message.Subject = "Suggest Increased"
Message.Body = Body
SmtpMail.SmtpServer = ""
SmtpMail.Send(Message)

Asad.Safari
یک شنبه 31 خرداد 1383, 12:10 عصر
HALA CHE KONAM?