473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Convert vbscript to sharp C# for use with ASP.Net2.0

Hi,

Can anyone help, I need to convert his code from vbscript to sharp C# for use with ASP.Net2.0?

This is my first time using a forum.

I don't know anything about either coding language so would really appreciate it if you could make it as simple as possible.

Code convert from VBScript to Sharp C#:

<%

Set obj = Server.CreateObject("Persits.MailSender")

obj.Username="<account>@wherever"

obj.Password="<passw>"

obj.Host="mail.wherever"

obj.From = "<account>@wherever"

obj.FromName = "<sender>"

obj.AddAddress "<destination>"

obj.Subject = "test"

obj.Body = "test"

obj.Send

Set obj = nothing

%>


Thanks Edi
Jul 16 '07 #1
2 2150
weaknessforcats
9,208 Expert Mod 8TB
Moving this to the .NET forum.
Jul 16 '07 #2
Plater
7,872 Expert 4TB
Check out this article.
Jul 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bill | last post by:
I need to convert a variable, nNum, into a two-character string. nNum is always less than 100. If nNum is 0, the string needs to be "00", if it's 1, it needs to be "01", if it's 34, it needs to...
2
by: ABC | last post by:
I have a very large amount VB code convert into C Sharp. I just complete it use tools. But it still have some codes errors. There are object to datatype problems. I need to edit many files to...
7
by: DraguVaso | last post by:
Hi, I want to run some vbscripts from a VB.NET application. Anybody knows how to do this? Thanks, Pieter
4
by: CJ | last post by:
Hi I'm trying to send email via a c# app, and I've come across various ways to do it, but the way that seems best given my constraints is this little vbscript: Dim theApp, theNameSpace,...
0
by: G. Sharp | last post by:
Hey Everyone, I'm trying to send a multidimensional array (the result from the GetRows() function in the ADODB.RecordSet object) with VBScript to an ASP.NET Web Service. I don’t know if...
1
by: Filippo Bettinaglio | last post by:
Hi, VS2005 - C# - .NET2 I am trying to convert a 32Bit BMP image to a 256 BMP Image, after various searches, i found the class: ImageFormatConverter. In the MSDN is stated: ...
8
by: JRatcliff | last post by:
I know this is re-hashing this old problem, I have looked at almost all of the questions regarding this one, and the responces to this. BUT I need to find a solution that will work. BackGround ...
0
by: pyar | last post by:
Hi guys, I am trying since so long to resolve my query as how to convert VBScript to DLL(.NET DLL).I browsed thru net but no use.So please could anyone of you guys help me out by giving a sample...
1
by: pyar | last post by:
Hi guys, I am trying since so long to resolve my query as how to Convert VBScript to DLL(.NET DLL).I browsed thru net but no use.So please could anyone of you guys help me out by giving a sample...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.