|
I personally use OpenSmpt. Works great and provides authentication and does not require anything setup on the server, just provide the account information in the call.
Rocky <><
www.HintsAndTips.com
|
|
|
|
|
Whats that? Googling return nothing for that. Do you have any link?
Mazy
No sig. available now.
|
|
|
|
|
|
Thnks Rocky. I think I'll use it
Mazy
No sig. available now.
|
|
|
|
|
It pretty good and easy to use. Currently I have it in several of my websites for mail delivery. Have never had bug of any type. Nice part is that there is no configuring of the server machine you are using as with .NET's built in mail handling. Makes it really easy to deploy.
Rocky <><
www.HintsAndTips.com
|
|
|
|
|
Hi Again Rocky:
Sorry for disturb you again. I download the source code zip files,but afetr it complete the download and I try to open it,it say its corrupted file. Would you please do me a favor and send me that zip file.I don't know whats the problem with it.
Mazy
No sig. available now.
|
|
|
|
|
Never mind Rocky. Msi file worked. Thanks again.
Mazy
No sig. available now.
|
|
|
|
|
Hi Rocky:
Again Me.
About that OpenSmtp Server, I got in a problem. Could you tell me how do you use when you want to so authentication? It seems its just some lines but I can't do it.I post some message in its furom too but could tell me somme sample code too?
Mazy
No sig. available now.
|
|
|
|
|
Hi Rocky:
Again Me.
About that OpenSmtp Server, I got in a problem. Could you tell me how do you use when you want to so authentication? It seems its just some lines but I can't do it.I post some message in its furom too but could tell me somme sample code too? Thanks
Mazy
No sig. available now.
|
|
|
|
|
For me, I use this code. Works fine with my servers that require authentication.
public static bool SendEMail(string to, string from, string subject, string body)
{
bool isOk = false;
try
{
SmtpConfig.LogToText=false;
MailMessage msg = new MailMessage(from,to);
msg.Subject = subject;
msg.Body = body;
Smtp smtp = new Smtp("MyMailServer",25);
smtp.Username="myUsername";
smtp.Password="myPassword";
smtp.SendMail(msg);
isOk = true;
}
catch(MalformedAddressException mfa)
{
Debug.WriteLine("Address error occured: " + mfa.Message);
}
catch(SmtpException se)
{
Debug.WriteLine("Smtp error occured: " + se.Message);
}
catch(Exception ex)
{
Debug.WriteLine("Error occured: " + ex.Message );
}
return isOk;
}
Rocky <><
www.HintsAndTips.com
|
|
|
|
|
Thanks Rockt. I have to test my codes again.
Mazy
No sig. available now.
|
|
|
|
|
Any help or samples to help me with authorize.net! I'm struggling to capture the return values from the authorize.net server!
Thanx!;P
|
|
|
|
|
If this is a particular service or library, you should consult the vendor's site for knowledge base articles, support, and possibly even forums.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Guys, how do you programmatically configure folder permission and virtual directory with .NET/C#?
Thanks.
Sandy J Turner
|
|
|
|
|
|
-- Begin code
Outlook.Application oApplication = new ApplicationClass();
Outlook.Inspector oInspector;
Outlook.MailItem oMailItem;
oInspector = oApplication.ActiveInspector();
/* Fetch the message */
oMailItem = ((MailItem)oInspector.CurrentItem);
MessageBox.Show( "To: "+ oMailItem.To );
-- End code
The following code are executed from a button that are located
in the toolbar on the "New message form" in outlook.
The problem is that oMailItem.To string i empty (There are info in the
To field in the form)....
oMailItem.Body works perfectly and contains the message.
The strange thing is that if my plugin sets a value in oMailItem.To then
the To Field in the outlook form also updates.
Help needed =)
|
|
|
|
|
The Outlook object model doesn't code to read the To property based on similar reports. Try using the Recipients collection instead.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Probably old news but I just read about it.
http://www.eeggs.com/items/40319.html
There's a hidden message and game.
|
|
|
|
|
Does anyone know how to change folder permissions on Windows XP using C#? My problem is that when my application is run under the restricted account under windows XP the folder
All Users Application Data has only read access. I want to add write access to that folder the first time the application is run. The application has to be run by an administrator first so I was hoping to do it then.
Any Ideas?
Forever Developing
|
|
|
|
|
If you want your application to do some admin task in some place you can use WindowsIdentity.Impersonate() .Look for sample in MSDN.
Mazy
No sig. available now.
|
|
|
|
|
There's a couple of articles on this here on code project. A quick search revealed:- Adding File Access Permissions using DirectoryServices[^]
- NT Security Classes for .NET[^]
You could search for additional articles, as well as comments in this forum because it has been discussed several times before.
You probably shouldn't modify the ACL of the All Users directory, though. Users should not be able to write files to this directory. If you need the application to save files in a place where other users of the machine can access them, you should consider installing your program into C:\Program Files (where applications are supposed to go anyway) and use a folder within that. By default, most users can write to those directories. All Users is more for things like Start menu shortcuts available to everyone. Occassionally, net admins will put a README file in the Documents folder or something that user can't delete, but this is pretty rare these days with modern networks.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I am only saving a .ini file there. The problem with saving the ini file settings to the application root folder is that under windows XP a restricted user has no rights to the program files folder.
Thanks for the information it is greatly appriciated.
Nick
Forever Developing
|
|
|
|
|
You should consider doing this in the setup of your application or using a separate .ini file for each user.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Also i would appreciate to know if there is a way to convert anything into a byte array ? (Like a class or a structure). This will help me to send data over network.
|
|
|
|
|