473,385 Members | 1,615 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.

E-mail.. HELP

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

//set the addresses
mail.From = new MailAddress("fe**********@gmail.com");
mail.To.Add("fe**********@gmail.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("smtp.gmail.com");

smtp.EnableSsl = false;

//to authenticate we set the username and password
properites on the SmtpClient
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Credentials = new
NetworkCredential("","","localhost");
smtp.Send(mail);

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

Mar 28 '06 #1
0 942

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

Similar topics

0
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...
3
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,...
1
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. ...
2
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...
3
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...
6
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...
1
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...
2
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...
0
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...
17
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...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.