473,385 Members | 2,014 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.

Send mail with .aspx page as the template

My requirement is to enhance the mail sending capability of a web application using a well formatted .aspx page as the template. I use C# ASP.NET. Please provide an idea.
Jun 7 '07 #1
5 2037
kenobewan
4,871 Expert 4TB
Have you tried using smtp server?
Jun 7 '07 #2
Hi, thanks a lot fo your reply. Yes it is possible to send e-mails. It works fine with smtp. But I need to use a template in a seperate aspx page. I know this is possible. But need to know how to do it.
Jun 7 '07 #3
prabunewindia
199 100+
refer this
sending mail
My requirement is to enhance the mail sending capability of a web application using a well formatted .aspx page as the template. I use C# ASP.NET. Please provide an idea.
Jun 7 '07 #4
Hi, thanks for the response. But my requirement is not the same. It is possible to send e-mail in my current application. If I explain the requirement more clearly, after the user fill a form which is having fields for ex: FirstName, LastName ....... and click on the submit button, the application sends a mail to an address which is specified in the webconfig. But that current mail is not much creative. Therefore I need to use a seperate aspx file, which is a very good template for the e-mail. Hope I explain my requirement clearly. If anyone can give me an idea its a great help. Thanks
Jun 7 '07 #5
Plater
7,872 Expert 4TB
You mean you want everything to look "pretty" in the email?
Send the email as html and do all the formating you in code?
send("<html><body> this is in the body and <b>this</b> is bold</body></html>");
I do a very similar thing, a user fills in forms and that data is emailed back to an email account. I always did it in code though. Made it looks fairly pretty.
Jun 7 '07 #6

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

Similar topics

9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
0
by: Chris Lane | last post by:
I am getting the following error when trying to send the mail object: COMException (0x80040213): The transport failed to connect to the server. ] System.RuntimeType.InvokeDispMethod(String...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
0
by: Dave S | last post by:
I have a lot of forms on our web site that require the user to fill out information and submit it back to us. currently the information comes back as name value pair. The our employee's then has to...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
2
by: kennykenn | last post by:
Hi, Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas, here the code! ...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
3
by: anu b | last post by:
Hii I am using System.net.mail for sending email... i need to send a webpage with its html content as my email body .....for that i used mail.Isbodyhtml as true...but it is not working for me...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.