Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Blat or MailMessage()
Message
De
30/08/2011 16:06:02
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01522297
Message ID:
01522321
Vues:
33
>>>>>Hi,
>>>>>
>>>>>I'm using VS2008 and C# (what version of C# is that?) and need to send an email with an attachment from my ASP.NET solution.
>>>>>
>>>>>I've recently started using Blat.dll in VFP and find it nice and easy to use, should I use it in my .NET stuff or should I use MailMessage()
>>>>>
>>>>>If using blat, does anyone have some example code?
>>>>
>>>>I've never used Blat but, FWIW, I have a simple assembly using the System.Net.Mail .MailMessage and .SmtpClient classes. I've plugged it in to various applications for various clients over the years and have yet to encounter any problems.......
>>>
>>>
>>>Thanks Viv,
>>>
>>>could you share your code, please?
>>
>>Just looked at it. It is so embarrassingly crude (cobbled together at least five years ago on the spur of the moment and never revisited) that I think I'll just PM it to you :-}
>
>Given all the knowledge you have now and if it's used only in one place, may be you can adjust it (re-factor)?

That's the problem. It's used in dozens of places across a lot of systems. Tinkering with it would probably invite disaster :-{
If I was starting again I'd have used an interface.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform