473,325 Members | 2,308 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,325 software developers and data experts.

Email sending problem from asp.net application

Dear all, i am wrtiing following code for the sending email from the
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.

MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="sa************@vritti.co.in";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.N ormal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
Regards,
Santosh Shinde.

Mar 22 '07 #1
7 2366
You need to specify how the mail is to be delivered. If you are using an
external SMTP server you need to specify, or if you are using IIS' SMTP
server you need to specify that too.

Google these for more info;

http://schemas.microsoft.com/cdo/con...tion/sendusing

http://schemas.microsoft.com/cdo/con...ickupdirectory

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
Dear all, i am wrtiing following code for the sending email from the
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.

MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="sa************@vritti.co.in";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.N ormal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
Regards,
Santosh Shinde.

Mar 22 '07 #2
"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
Dear all, i am wrtiing following code for the sending email from the
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.

MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="sa************@vritti.co.in";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.N ormal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
How does it know where to find your SMTP queue...?
http://www.systemnetmail.com/faq/3.1.1.aspx
Mar 22 '07 #3
On Mar 22, 3:51 pm, "Aidy" <a...@noemail.xxxa.comwrote:
You need to specify how the mail is to be delivered. If you are using an
external SMTP server you need to specify, or if you are using IIS' SMTP
server you need to specify that too.

Google these for more info;

http://schemas.microsoft.com/cdo/con...tion/sendusing

http://schemas.microsoft.com/cdo/con...ickupdirectory

"Santosh" <Santoshmshinde...@yahoo.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.com...
Dear all, i am wrtiing following code for the sending email from the
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.
MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="santosh.shi...@vritti.co.in";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.N ormal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
Regards,
Santosh Shinde.- Hide quoted text -

- Show quoted text -
i am trying following code

MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
//newMessage.To ="in**@goloka.com.au";
newMessage.To="sa************@vritti.co.in";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.N ormal;
string msgBody = txtSuggestion.Text.Trim() ;
newMessage.Body = msgBody;
SmtpMail.SmtpServer="gmail.com";
//SmtpMail.SmtpServer="127.0.0.1";
// Smtp configuration

//SmtpMail.SmtpServer = "smtp.yahoo.com";
// - smtp.gmail.com use smtp authentication
newMessage .Fields.Add("http://schemas.microsoft.com/cdo/
configuration/smtpauthenticate", "1");
newMessage.Fields.Add("http://schemas.microsoft.com/cdo/
configuration/sendusername", "my*****@gmail.com");
newMessage.Fields.Add("http://schemas.microsoft.com/cdo/
configuration/sendpassword", "mypassword");
// // - smtp.gmail.com use port 465 or 587
newMessage.Fields.Add("http://schemas.microsoft.com/cdo/
configuration/smtpserverport", "465");
// // - smtp.gmail.com use STARTTLS (some call this SSL)
newMessage.Fields.Add("http://schemas.microsoft.com/cdo/
configuration/smtpusessl", "true");
// try to send Mail
//newMessage.Fields.Add("http://schemas.microsoft.com/cdo/
configuration/smtpusessl", "true");
SmtpMail.Send(newMessage);
but it gives an error

Please tell me what is the problem. can there is any other way

Mar 22 '07 #4
"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e1g2000hsg.googlegro ups.com...
but it gives an error
I've never understood why people post on a technical newsgroup that they are
getting an error, but then not actually say what the error is...!!!
Please tell me what is the problem. can there is any other way
Please tell the newsgroup what the error is...
Mar 22 '07 #5
On Mar 22, 5:36 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"Santosh" <Santoshmshinde...@yahoo.comwrote in message

news:11**********************@e1g2000hsg.googlegro ups.com...
but it gives an error

I've never understood why people post on a technical newsgroup that they are
getting an error, but then not actually say what the error is...!!!
Please tell me what is the problem. can there is any other way

Please tell the newsgroup what the error is...
Sorry forget to mention the error the error is :

The transport failed to connect to the server.

Mar 24 '07 #6
"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
On Mar 22, 5:36 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
>"Santosh" <Santoshmshinde...@yahoo.comwrote in message

news:11**********************@e1g2000hsg.googlegr oups.com...
but it gives an error

I've never understood why people post on a technical newsgroup that they
are
getting an error, but then not actually say what the error is...!!!
Please tell me what is the problem. can there is any other way

Please tell the newsgroup what the error is...

Sorry forget to mention the error the error is :

The transport failed to connect to the server.
There you go!

OK, so presumably you've done a normal Google search:
http://www.google.co.uk/search?sourc...+the+server%22

and none of the suggested solutions has worked...?
Mar 24 '07 #7
On Mar 24, 7:11 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"Santosh" <Santoshmshinde...@yahoo.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...


On Mar 22, 5:36 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"Santosh" <Santoshmshinde...@yahoo.comwrote in message
>news:11**********************@e1g2000hsg.googlegr oups.com...
but it gives an error
I've never understood why people post on a technical newsgroup that they
are
getting an error, but then not actually say what the error is...!!!
Please tell me what is the problem. can there is any other way
Please tell the newsgroup what the error is...
Sorry forget to mention the error the error is :
The transport failed to connect to the server.

There you go!

OK, so presumably you've done a normal Google search:http://www.google.co.uk/search?sourc...F-8&rls=GGLG,G...

and none of the suggested solutions has worked...?- Hide quoted text -

- Show quoted text -
ya i am trying all the options but not any one work and lastely search
on google.and getting help from google search.

Mar 26 '07 #8

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

Similar topics

88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
13
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
3
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
5
by: venky | last post by:
Hello all, I wrote a small program which sends email to different address. I am using smtp object and i set smtp server as my verizon online. I use to send the email, everything works fine...
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...
3
by: ReidarT | last post by:
Is it possible to send email from a Windows-form application like I do from a web-form application? regards reidarT
1
by: xin.yadong | last post by:
Hi: I have a shared function for sending Email using SMTP. It works fine in a ASP.NET web application. But when I use it in a VB.Net Windows application, it always gave me an error: "Could not...
4
by: Tony M | last post by:
VS 2005 - XP media - VB .net - winforms - .net 2.0 Just trying to send an email, here is the code and the error message that I get. I can't figure out how to fix it?
4
by: Samnang | last post by:
Hi, I have a list of email address of my customers, I would like to build an application that can send product promotion to them in regular once a week. I'm afraid that my email will deliver as...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.