473,657 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

E-mail.. HELP

//create the mail message
MailMessage mail = new MailMessage();

//set the addresses
mail.From = new MailAddress("fe **********@gmai l.com");
mail.To.Add("fe **********@gmai l.com");

//set the content
mail.Subject = "This is an email";
mail.Body = "this is the body content of the email.";

//send the message
SmtpClient smtp = new SmtpClient("smt p.gmail.com");

smtp.EnableSsl = false;

//to authenticate we set the username and password
properites on the SmtpClient
smtp.DeliveryMe thod = SmtpDeliveryMet hod.Network;
smtp.Credential s = new
NetworkCredenti al("","","local host");
smtp.Send(mail) ;

It´s ok??
why it does not send the email?

Mar 28 '06 #1
0 949

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1818
by: ThisIsMe | last post by:
I am using this php email form and it seems to work. But I would like for the option for attn$ Webmaster to go to a different email address than the mymail$ Please be Kind to us newbies... can someone modify this and resend it so I can have the form send to 2 different email addresses? Or maybe three if that is possible determined by what attn$ option is used.
3
1215
by: Somedude | last post by:
Hello, I have a html form which collects data, then sends it to a PHP page which emails the collected data. The emails come to my web client (Horde) yet the data ($message) does not display, unless I "view mesage source". I've gone over and over the php to see if anything is out of place. Again, the data is there when I view the message source, but not in the
1
2189
by: Brent Patroch | last post by:
Hello, Novice here, I am doing bulk emails using CDO, connection to a smtp server at another location. I am trying to streamline my script, or through it out and start over to make it faster. I know that I am doing something wrong and that messages should be sending much faster. Any help appreciated: Set objConfig = Server.CreateObject("CDO.Configuration")
2
1958
by: Andrew | last post by:
I have a windows 2000 sv, with exchange 2000 running with IIS as well. I am tring to send an email with an attachment with CDO. Set cdoConfig = CreateObject("CDO.Configuration") with cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort .Item(sch & "smtpserver") = "spiternet.com" .update End With
3
987
by: chuckdfoster | last post by:
I am getting this message - "Could Not Access CDO.Message Object" when trying to use SmtpMail from my ASP.NET site. Does anyone know why I might get this message? I didn't think anything needed to be installed/configured to use this. -- Chuck Foster Programmer Analyst Eclipsys Corporation - St. Vincent Health System
6
2777
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of capturing user computer user name i have done... my problem is .... i need the unregistered user to log in to my site and from there there will be a link for them to key in their short information in a textbox and a html email will be sent to...
1
1213
by: blini | last post by:
//create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("felipe@gmail.com"); mail.To.Add("felipe@gmail.com"); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email.";
2
1335
by: krash88 | last post by:
I'm as new as it gets to PERL and have been going over a few scripts for an NT server that I run. One of which sends an email to registered users using SMTP. It seems to connect with SMTP server fine(running on the same machine), but stops at the HELO command; print S "HELO tg\n"; this is what the SMTP server recieves; 0000 00 0F CC 50 2C C0 00 11 09 D2 ...P,À.... 000A 1D 2A 08 00 45 00 00 30 DA CF .*..E..0Ú. 0014 40 00 80 06 00...
0
1166
by: teslamad | last post by:
So im trying to get rid of the mailto function and use ASP instead, but im very new to it and cant get it working!!! ARG I use server 2003 and IIS for my websites. Heres how i think it should work (please correct me). I put in the html file/page a form where someone can type say there name, and that code should look something like this: <html> <body> <form action="test.asp" method="get"> Name: <input type="text" name="fname" size="20"...
17
1933
by: Nyris | last post by:
I have this form setup to allow customers to fill in a little info and send an email to particular departments that they have their questions in. For some reason I cannot get it to work and in further playing around with it I get an HTTP 500 IS Error and it won't even load the page. Please help! Oh and I took the @ addres off the emails for this post. I know they're not there. $Dept = $_REQUEST; $First = $_REQUEST; $Last =...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.