Email in Asp.Net 2.0
-
Hello I can't send email. What is smtp server? What is host name? I know my mail server ip, my email's user and pass. Now how can i send mail to users and get their feedback. I test many states but i failed... Example:: My Email : info@mysite.com Target User : user@yahoo.com My Server : www.mellihost.com Server Ip : 70.84.176.94 Now please help me. Regards
-
Hello I can't send email. What is smtp server? What is host name? I know my mail server ip, my email's user and pass. Now how can i send mail to users and get their feedback. I test many states but i failed... Example:: My Email : info@mysite.com Target User : user@yahoo.com My Server : www.mellihost.com Server Ip : 70.84.176.94 Now please help me. Regards
You can ask your hosting company about the address of smtp srv.. normally, it works with localhost..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hello I can't send email. What is smtp server? What is host name? I know my mail server ip, my email's user and pass. Now how can i send mail to users and get their feedback. I test many states but i failed... Example:: My Email : info@mysite.com Target User : user@yahoo.com My Server : www.mellihost.com Server Ip : 70.84.176.94 Now please help me. Regards
freshonlineMax wrote:
What is smtp server? What is host name?
Your web host is the best contact to give you the optimal values for these queries for your domain.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT. -
You can ask your hosting company about the address of smtp srv.. normally, it works with localhost..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Ok, But my host couldn't help me well. Can you send some code using my sample options to help me? Tanks
-
Ok, But my host couldn't help me well. Can you send some code using my sample options to help me? Tanks
http://www.google.com/search?q=asp.net+send+mail&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[^]
Dim MailObj As New System.Net.Mail.SmtpClient MailObj.Host = "localhost" MailObj.Send(EmFrom.Text, EmTo.Text, EmSubj.Text, EmMsg.Text)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
http://www.google.com/search?q=asp.net+send+mail&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[^]
Dim MailObj As New System.Net.Mail.SmtpClient MailObj.Host = "localhost" MailObj.Send(EmFrom.Text, EmTo.Text, EmSubj.Text, EmMsg.Text)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Hello Dear Michael I'm a professional desktop developer (C# base), but in sending mail, i really confused. I developed a website for somebody and i'm in final step. As you said and in this way anybody can send email from anybody to anybody..! I want to say that: Do i need username, password and real host name or not? I tested this code and i saw no mail in my inbox. Please notice that i made no change on your code. So please help me again if you have time. Tanx
-
Hello Dear Michael I'm a professional desktop developer (C# base), but in sending mail, i really confused. I developed a website for somebody and i'm in final step. As you said and in this way anybody can send email from anybody to anybody..! I want to say that: Do i need username, password and real host name or not? I tested this code and i saw no mail in my inbox. Please notice that i made no change on your code. So please help me again if you have time. Tanx
Hi,
freshonlineMax wrote:
Do i need username, password and real host name or not?
You need to define the host name, the SMTP server.... In ASP.NET, you can use either System.Web.Mail or System.Net.Mail for sending emails.. but defining the SMTP server is a must in ASP.NET... The name of SmtpServer are vary from one host to another.. When I was hosting my site in DisccountASP.NET, I can use "localhost" as the SmtpServer... here is the article from DiscountASP.NET Knowledge Base.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)