Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help req in C# for Email / Smtp
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00827821
Message ID:
00831554
Views:
18
>HI ALL,
>
>We need help on the following in C#.
>
>We want to send Email from my Application build in C#. It should work both ways.
> 1. It should just create a mail in outlook express or Microsoft outlook with my parameters.
> 2. Also, it should send a mail directly without allowing the user to edit.
>
>We tried some thing like this.
>
>*-----------------------------------------
>MailMessage msg = new MailMessage();
>msg.From = "me@my.mail.server";
>msg.To = "you@your.mail.server";
>msg.Subject = "how to send mail using VC#.NET";
>msg.Body = "this is the answer";
>msg.BodyFormat = MailFormat.Text // can be MailFormat.HTML
>
>SmtpMail.SmtpServer = "smtp.yours"; //assign smtp server here
>SmtpMail.Send(msg); //this line actually fire the msg out
>*-----------------------------------------
>
>But this did not work.
>If We set "SmtpServer" with my smtp server name, error is generated. "Could not access 'CDO.Message' object ". And if We do not give the "SmtpServer" (use default) then the error is not generated but no mail is sent. What are We doing wrong here. please suggest.
>
>
>Also, Can anyone suggest us a component/product available free or otherwise that We can use for this purpose. We have seen some at google search but am confused. Please make your sugesstions basd on your experiences.
>
>
>TIA,
>
>Regards,
>
>Vipul

You could implement this pretty easily if you don't mind using an ActiveX control. (We haven't finished our .NET version yet)

SMTP Wizard has been tested in .NET applications and works great. You can use it on any OS, so you don't need to worry about CDO or MAPI at all. It communicates directly with SMTP servers and sends mail completely behind the scenes.

http://www.Seekfordsolutions.com/Products/SMTPWizard/

It is at least one alternative to thing about.
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Previous
Reply
Map
View

Click here to load this message in the networking platform