|
|
I can see that you are new to the SMTP protocol. To send an email, you need a SMTP server, which is a machine specialized in routing the email to its recipient.
SmtpMail.SmtpServer = "smtp.mydomain.com";
Do you try to do this from home or at work? If it is at home, you probably have, in the documentation from your ISP, the name of this server. If at work, ask the system admin.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
can i download it?
how do i install it?
And yes i am very new with this, i only know that at work i tried it and it went smooth as baby's BBBBB.
|
|
|
|
|
I have had the same issue before.
I would send an email message to my own account and it would work fine,
then I would open my email application and check that I got it. Which I
did. I would then close my email app and all of a sudden my application would stop working. (got the same error you're getting).
I tried everything until I finally figured out that if I re-opened my email
app it would mysteriously start working again.
It seemed to be that my email app (outlook) was taking over from cdonts
once it was opened and only a reboot would fix the problem.
Hope this helps.
|
|
|
|
|
Go to IIS
Default SMTP Virtual Server
Right click on that ...>Properties...>
Assign the IPAddress in general properties
check whether anonymous access is checked or not
Nothing is Impossible Even Impossible says I'MPOSSSIBLE
|
|
|
|
|
Hi !
I've a table with the following fields :
ID,field1,field2,field3,... and also in Form 1 , I have 2 buttons(Next,Prior) for going to the next Record or before record .
for taking a report , i have to add another form(Form2) and put a CrystalReportViewer control in it .
I want to take a report , for example when my Record number is :4 , how can i do it ?
please help me !
Thanks,
s_mostafa_h
|
|
|
|
|
I would like to increase the height of the rows in the datagrid whenever data is binded to the grid.
So, How do I get the notification whenever the datagrid is binded to a Datasource.
The DataSourceChanged event occurs only when there is a change in the DataSources value. When I bind the same datasource to the datagrid, the DataSourceChanged event won't fire.
How can this be handled.
Thanks in advance.
Subrahmanyam K
|
|
|
|
|
hi Subrahmanyam K!
try to shadow the DataSource property, like this:
public new object DataSource
{
get {return base.DataSource;}
set
{
base.DataSource = value;
}
}
hope that helps!
microsoc
|
|
|
|
|
I have learnt that in VS2005 you can use dataadapters to connect to a stored procedure in a database and wite to the back end (delete, update, insert).
This seems to have a lot less code than if you start using code such as sqlcommand, sqlconnection, parametrs...
I know for sure that there are disadvantages in using the dataadapters approach instead of using the sqlcommand, etc...
What are the disadavatages please?
Thanks
|
|
|
|
|
The disadvantage is that you don't have fine-grained control over how and when the connection is opened, how long the command should try to execute before giving up, custom error handling when something goes wrong, to name just a few. If you're ok with losing some power in order to be able to write less code (which means fewer bugs), then DataSets and DataAdapters are for you.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
|
|
|
|
|
The disadvantage is that
No control over connection and command for Developer
We will be know that something happening inside but not how and when?
Senior Software Engineer
Nothing is Impossible Even Impossible says I'MPOSSSIBLE
|
|
|
|
|
hi all !
I want to put MonthCalendar into ComboBox , in how if i click the the button of ComboBox ,instead of ListItem , the MonthCalendar control is appeared .how can it possible !
thanks !
Regards !
s_mostafa_h
-- modified at 10:54 Wednesday 1st March, 2006
|
|
|
|
|
Why not try a DateTimePicker...
|
|
|
|
|
because , DateTimePicker based on Julian date (Christian date) but i want to take a Arabic or Persian Date .Is there a DateTimePicker control based on Arabic or Persian ? if not , how can i convert ...
Regards ,
s_mostafa_h
|
|
|
|
|
you know, a quick google of "arabic datetimepicker" came up with the hijricalendar class. try googling either of those or "arabic calendar .net" and see what you get
|
|
|
|
|
I have downloaded a programme from this website which captures still images from a video clip, it was posted i think by daniel049
I have not used this site before and hoped that i could ask him how to refer to the programme in my dissertation as this is what i am using it for i wondered how i could leave a message for him or whether i simply post here and wait to see if he replies?
Dave
|
|
|
|
|
Hello
I just started working with TAPI 3.1 in C#, can anyone give me a short example how to use the methods defined by ITPhone (getDisplay, getAddress etc). Don’t need to handle any calls, just trying to get info from phone.
Thx in advance
|
|
|
|
|
Hi Guys,
i have a question concerning migrating code from VB.NET to C#.NET
The code is from a sample in VB, but i am using C#. You can sse the sample here :http://www.outlookcode.com/codedetail.aspx?id=755
Sub SetApptColorLabel(objAppt As Outlook.AppointmentItem,
[...]
Set objCDO = CreateObject("MAPI.Session")
objCDO.Logon "", "", False, False
End Sub
I dont understand where this "CreateObject" function comes from and what it does.
Can anyone help?
Thx, Daishi1002
|
|
|
|
|
You can open the vb code and look at the namespace there:
Microsoft.VisualBasic.Interaction.CreateObject
I haven't found out how to use the COM CreateObject in C#, as the return type is object and you can't call the Logon function like in vb. So I ended up put the createobject part in a dll and use it from C#.
|
|
|
|
|
But there must be an eqivalent in C#. And this Logon function, can I access it via the dll later, too?
Did you though all the provided code into your dll? Since i have very limited experience with VB, i don t like this idea...
Is this CreateObject something like
Object objCDO = new Object(); ?
But how can I insert the Parameter?
|
|
|
|
|
I don't think there is a direct equivalent in C#, I guess the CreateObject is a VB's thing. It isn't the same as create a new object instance.
I only threw the part where it create object and access the function, then return the result in VB.NET.
You could reference the target com object in your solution, it "should" create an interop reference you can use the com object directly. You can also wrap the com object in a wrapper class but it's too tedious for me. You can also put the code in VB.NET and reference the dll in C#.
YMMV though.
Wrapper Class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkCOMInteropPart1CClientTutorial.asp
|
|
|
|
|
Using the Lutz Reflector, your VB.NET code approximates to the following C# code:
object objCDO = RuntimeHelpers.GetObjectValue(Interaction.CreateObject("MAPI.Session", "")); // Interaction is in Microsoft.VisualBasic dll.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
|
|
|
|
|
Hi,
I'm downloading a byte[] from a web service which is actually a file. I'd like to open it without having to write it to disk - mapping it to memory, but can't find a way to do it.
Any help would be greatly appreciated, thanks in advance
|
|
|
|
|
In fact, you are not downloading a file, but its contents.
Now, let's say you have all the bytes in your byte[] . What do you mean by "opening", "mapping to memory"? You already have it in memory.
If you want the string represention, try the System.Text.Encoding.GetString(byte[]) method.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Maybe you can try:
MemoryStream memoryStream = new MemoryStream(buffer);
|
|
|
|