|
hi all,
how can i use the smtp server installed on my computer in order to send mails using it?
SmtpClient y = new SmtpClient();
>>> y.Host = "???"; //what should i write here ?
y.Send(textBox1.Text, textBox2.Text, textBox5.Text, textBox6.Text);
am i able to send mails to yahoo, hotmail, gmail or other mail servers using my smtp server ???
help me please ...
thanks in advance,
bye.
MFA
|
|
|
|
|
use SmtpMail.SmtpServer ="ur servers ip address";
rahul
|
|
|
|
|
Message Closed
modified 27-Apr-15 11:24am.
|
|
|
|
|
sorry but u cant.
i think MS prevents spam mails so.
|
|
|
|
|
greekius@hotmail.com wrote: i think MS prevents spam mails so.
MS doesn't do anything to prevent spam from being sent using System.Net.Mail classes. Why would you think they would?
only two letters away from being an asset
|
|
|
|
|
If it is your machine then use the IP address of your machine.
only two letters away from being an asset
|
|
|
|
|
Message Closed
modified 27-Apr-15 11:24am.
|
|
|
|
|
|
That means that the server is configured to prevent spamming. It will only accept mails addressed to a local user and it will not send mail for anyone other than a local user.
You need to create a user on your server and use that user to send your mail or configure your server to allow relaying.
See your SMTP-Server documentation.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Have you ever tried using using RCXpress.BLL.Portal.TMSMailMessage ?
|
|
|
|
|
Hi All,
Can any one tell that how do we get the HostedControl of cell, for example in case of DataGridViewButtonColumn
for example i want to get
of (DataGridViewButtonColumn)dxDataGridView1.CurrentCell.HostedControl
is there anything like HostedControl???
Thanx
sorry for my bad English.
|
|
|
|
|
when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR
"Provider=SQLOLEDB.1ersist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"
but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S
This string works on Server client.but Doesnt work at remote clients.
"Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"
-- modified at 9:08 Friday 25th August, 2006
|
|
|
|
|
It's difficult to compare teh two strings because you have so many typos and missing elements.
only two letters away from being an asset
|
|
|
|
|
|
For example?!? Look at your posting, are they both complete connection strings? Can you copy and paste them and actually get them to work?
only two letters away from being an asset
|
|
|
|
|
How do I add columns names to a data grid in c#?
Thanks
|
|
|
|
|
this.dataGridView1.Columns.Add("ColumnName", "ColumnHeaderTitle");
|
|
|
|
|
Do using of so many try-catch block in a project degrade the performance of Project. To be clearer do try catch consume more memory.
Vipin
|
|
|
|
|
Yes, Try catch is expensive in memmory usage, especially if used frequently.
|
|
|
|
|
Do you know some article which gives a bit details in this regard?
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Thanks man..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Using a try-catch block is not expensive, but when an exception is raised, there is a performance hit.
Use try-catch for anything that potentially can go wrong, but don't use it for normal program flow. If you for an example have a string that sometimes contains a number, it's better to check the contents of the string before converting it than to use a try-catch to handle the times when it doesn't contain a number.
---
b { font-weight: normal; }
|
|
|
|
|
Thank u so much for the information.
Vipin
|
|
|
|
|
Guffa wrote: If you for an example have a string that sometimes contains a number, it's better to check the contents of the string before converting it than to use a try-catch to handle the times when it doesn't contain a number.
In these cases, you should really look at the TryParse methods. .NET 1.1 only had a few of these, but they have been expanded in .NET 2.0 to be included in more of the basic data types.
|
|
|
|