Sponsored by
www.aspnetemail.com
|
 |
Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
-
System.Web.Mail & ESMTP
[ Reply ]
Dim msg As New MailMessage() msg.From = "kdickman@globalfluency.com" msg.To = "kdickmansf@yahoo.com" msg.Subject = "NANDL: Need Submission Alert" msg.BodyFormat = MailFormat.Html msg.Body = "Firstname: " & Request.Querystring("firstname") & "<br>Lastname: " & Request.Querystring("lastname") & "<br>Telephone #: " & Request.Querystring("telephone") & "<br>Email: " & Request.Querystring("email") & "<br>Description: " & Request.Querystring("description") & "<br>Firm: " & Request.Querystring("firm") msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername"">http://schemas.microsoft.com/cdo/configuration/sendusername", "kdickman_nm"); msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword"">http://schemas.microsoft.com/cdo/configuration/sendpassword", "87redcm"); SmtpMail.SmtpServer = "mail.nealemay.com" SmtpMail.Send(msg)
Is returning...
Compiler Error Message: BC30037: Character is not valid.
Source Error:
Line 14: msg.BodyFormat = MailFormat.Html Line 15: msg.Body = "Firstname: " & Request.Querystring("firstname") & "<br>Lastname: " & Request.Querystring("lastname") & "<br>Telephone #: " & Request.Querystring("telephone") & "<br>Email: " & Request.Querystring("email") & "<br>Description: " & Request.Querystring("description") & "<br>Firm: " & Request.Querystring("firm") Line 16: msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); Line 17: msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername"">http://schemas.microsoft.com/cdo/configuration/sendusername", "kdickman_nm"); Line 18: msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword"">http://schemas.microsoft.com/cdo/configuration/sendpassword", "password"); I have added IP's to mail server and I still cannot relay. Trying to authenticate using your ASP.NET authenticate lines but still wont go. I am using ASP.NET VB 1.1
Kris [ kdickman ( at ) nealemay dot com ],
2004-02-24 17:35:41
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
I'm assuming line 15 is the line that is bad.
If that is the case, I would slowly append 1 string at a time, and test the email, until the exception occurrs. For example, start out with
msg.Body = "Firstname: "
and after that works, change it to
msg.Body = "Firstname: " & Request.Querystring("firstname")
Until you find the string that is giving you a problem.
hth, Dave
dave [ dave ( at ) 123aspx dot com ],
2004-02-24 17:48:38
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
FYI: If you haven't done so already, rush over to your "kdickman_nm" account at Yahoo! Mail and change your password.
Joe [ jp8mail-spam ( at ) yahoo dot com ],
2005-03-31 08:19:36
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
fffa112
af [ ff ( at ) test dot com ],
2007-03-18 04:00:07
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
while running i m getting failed sending mail
i used only smtpclient and mailMessage class but, that not happening this is my coding given below:
MailAddress fromaddress = new MailAddress(txtTo.Text, txtName.Text); SClient.Host = "BILLING03"; SClient.Port = 25; mm.From = fromaddress; mm.To.Add("spshankar.87@gmail.com"); mm.Subject = txtSub.Text; mm.IsBodyHtml = false; mm.Body = txtMsg.Text; SClient.Credentials = new System.Net.NetworkCredential("spshankar.87", "harekrsna"); SClient.EnableSsl = true;
SClient.Send(mm); Response.Write("Email successfully sent.");
} catch(Exception ex) { Response.Write(ex.Message.ToString());
}
if some one knows pl help me
shankar [ spshankar dot 87 ( at ) gmail dot com ],
2009-05-25 03:07:57
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
I want to check if the email address is valid. If Valid then send email else don't send email out. As the mail server rejects the invalid email and the Jobs stops.
Raju [ kumbhardare ( at ) yahoo dot com ],
2010-02-16 07:37:56
#
-
RE: System.Web.Mail & ESMTP
[ Reply ]
Hi for testing only
Best REgard
vuthy_info@email.com [ salynaseath1986 ( at ) yahoo dot com ],
2013-03-15 10:53:56
#
-
proxy information
[ Reply ]
how to give proxy servers ip if smtp server is connected through a proxy server while sending a message
Raghu [ raghuhj ( at ) yahoo dot com ],
2004-03-03 00:25:48
#
-
RE: proxy information
[ Reply ]
can't be done.
--sorry, dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-03-03 05:01:36
#
-
RE RE: proxy information
[ Reply ]
I´m using a proxy to connect to my smpt server and it works fine. I pot the in the SmtpMail.SmtpServer property my proxy IP.
Murillo [ murillo ( at ) xmidia dot com dot br ],
2005-04-07 11:55:51
#
-
RE: RE RE: proxy information
[ Reply ]
Sorry for the intrusion. I want to programmatically send a mail. The problem is i dont know how or where to set the proxy settings in the code. Any pointers please.
Vijay [ gantibabu ( at ) rediffmail dot com ],
2007-03-12 02:13:58
#
-
smtpauthenticate
[ Reply ]
This is a tremendous help, but do I have to send the username and password across in clear text?
Mark [ mcurtis ( at ) asapauto dot com ],
2004-03-17 16:08:33
#
-
RE: smtpauthenticate
[ Reply ]
no, i believe "2" will do NTLM authentication.
Cheers! Dave
Dave Wanta [ dave ( at ) 123aspx dot com ],
2004-03-17 16:29:03
#
-
RE RE: smtpauthenticate
[ Reply ]
Hi,
I am using an ASP.NET application which sends a mail over remote mail server (in intranet). If I use basic authentication with username and password it is working fine..But with authentication value 2 it is not? Is it posssible to use NTLM authentication with SMTP remote server?
Thanks.... Kiran
Kiran [ kiran dot dodda ( at ) ubientics dot co dot in ],
2004-07-23 03:41:16
#
-
RE: RE RE: smtpauthenticate
[ Reply ]
assuming the remote server supports NTLM, and you have the propery security infrastructure in place (accounts, passwords, domains), sure.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-07-23 04:46:04
#
-
RE RE: RE RE: smtpauthenticate
[ Reply ]
Hi
Thanks for quick response!! It's working fine now... :-)
I have one more query... How can I access Microsoft Outlook client from a web application. My intention is to show client address book for users for selection of user mail IDs...
Thanks... Kiran
Kiran [ kiran dot dodda ( at ) ubinetics dot co dot in ],
2004-07-23 06:55:16
#
-
RE: RE RE: RE RE: smtpauthenticate
[ Reply ]
i tried the code "mail.fields.add(....." but i am getting a error message saying there is no property called "field" is available .can anybody pls help me out here as soon as possible
karthik [ karthik_seshu ( at ) yahoo dot com ],
2004-11-23 04:39:40
#
-
RE RE: RE RE: smtpauthenticate
[ Reply ]
I have a different and weird problem: I am using a remote mail server (in intranet) that supports NTLM authentication. - When I send mail using NTLM it works fine as expected. - When I use anonymous logon it fails as expected. - When I use Basic authentication with username & pwd, I expect it to fail, but it surprisingly it works too! even when I enter invalid or empty username/pwd. No programming errors. It looks like the username & pwd are totally ignored, and the Basic authen is somehow treated as NTLM. Any explanations? Please help. Thanks.
Nicole [ babykhoi ( at ) yahoo dot com ],
2005-04-25 11:37:12
#
-
RE RE: smtpauthenticate
[ Reply ]
What the first parameter means in the field.Add function. i try the code in ASP.NET web form. It sends mail out but did not reatch destination. Why. In Windows form, Smtpmail does not have problem.
Shawn [ szhenge897 ( at ) rogers dot com ],
2005-03-06 19:16:17
#
-
webmail authentification
[ Reply ]
i would like to get the authentification info and smtp server from outlook express, so i don't have to ask the user to set up the smtp authentification himself.
mindloop [ ionuke ( at ) yahoo dot com ],
2004-03-30 14:13:20
#
-
RE: webmail authentification
[ Reply ]
if you mean from a web page, it can't be done. And, it would also be a huge security breach. Can you imagine if spammers could look that up?!?
--dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-03-30 15:27:30
#
-
RE: webmail authentification
[ Reply ]
Do you mean you can get smtp server name in web form program? How?
Shawn [ szhenge897 ( at ) rogers dot com ],
2005-03-06 19:17:53
#
-
RE: webmail authentification
[ Reply ]
One way, is to create an application the user can download and run that will pull the smtp server from Outlook, OutlookExpress Settings. I would not attempt to get the username and password for logging into thier smtp server, let them enter that in thierself.
Scotty [ testing_0002 ( at ) yahoo dot com ],
2006-03-30 17:31:05
#
-
RE RE: webmail authentification
[ Reply ]
The downloaded application would ofcourse have to report back to your server. Perhaps an ASP.NET Web Service would be in order.
Scotty [ testing_0002 ( at ) yahoo dot com ],
2006-03-30 17:33:32
#
-
CDO question
[ Reply ]
I am using the MailMessage() function to build an email. Then i am using the .Fields property (with the various schemas) to fill in the the server, pass, etc. For example: "NewMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25")". After that, i am sending the message using this command "SmtpMail.Send(NewMessage)". Am i in this example using CDO? I am confused between what CDO is and what the schemas are. Can you please help me out.
Hani [ abughazalehh ( at ) hiram dot edu ],
2004-04-01 17:18:10
#
-
RE: CDO question
[ Reply ]
yes, you are actually accessing CDO.
CDO stand for Collaboration Data Objects. It is the original COM structure used by Outlook/Exchange for sending/managing email.
The System.Web.Mail namespace is simply a wrapper around CDO.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-04-01 18:14:07
#
-
test
[ Reply ]
Some text word here
myname [ test ( at ) myname dot com ],
2004-04-03 23:47:03
#
-
CDO troubles?
[ Reply ]
-To authenticate to an SMTP server using the .framework you (*as previously stated) must be using version 1.1 as 1.0 does not offer the ability to do so. -If you find yourself in the unfortunate situation of having invested in the VS.net 2002 release and are unable to upgrade for whatever reason it has been said that it is next to impossible to get the 2002 version to use the 1.1 frame work. -However you may copy the System.Web.dll from \WINDOWS\Microsoft.NET\Framework\v1.1.4322 directory (assuming that you have downloaded the 1.1 framework) and paste it over to the corresponding framework directory that the 1.0 System.Web.Dll is located. Then remove and re-add the reference to your project. This will afford you the functionality required. -This method may work for other .dlls, but I haven't tried it. - If you are still receiving an error regarding something to the effect of "The transport failed to connect to the server" it may very well be that your ISP will not allow you to use any SMTP servers other than their own. For instance smtp.mail.yahoo.com may not work despite knowing full well that the parameters are set correctly. Instead substitute the SMTP server with that of your ISPs - this can usually be found at your ISPs home page under some FAQ regarding "How do I set up my email client?"
0pt10n3xpl1c1t [ optionexplicit2020 ( at ) yahoo dot com ],
2004-04-04 18:15:37
#
-
Authentication
[ Reply ]
i am using system.web to send emails. i want to make authentication the username is: "user01" and password is: "12345678" do i simply write this code for authentication??
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "user01") mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "12345678")
what about if the username and password change monthly???
Tony [ ilyvmm02 ( at ) hotmail dot com ],
2004-04-06 04:33:23
#
-
About the authentication
[ Reply ]
about the authentication If the username and password are to be read from a database because the username and password might change. how can i do the authentication?
Tony [ ilyvmm02 ( at ) hotmail dot com ],
2004-04-08 02:18:50
#
-
RE: About the authentication
[ Reply ]
same way you get any information out of the database, use ado.net.
steve james [ sjames ( at ) hotmail dot com ],
2004-04-08 05:46:11
#
-
RE: About the authentication
[ Reply ]
Hi,
You can enter the user name and password as command line parameters if you write an exe for sending mais. Also, you can fetch from the database each time you send a mail by using any SQL connection objects
Karthik N [ karthik_nat ( at ) hotmail dot com ],
2004-07-16 05:30:59
#
-
Still can't connect
[ Reply ]
This info is really helpful - thank you. However, I am doing everything suggested above and still get the error: The transport failed to connect to the server.
I am trying to send an e-mail from a Web Service to an address on the same network. I have provided the company's SMTP server address and port and a valid username and password which match the 'from' address.
Can anyone say what may be going wrong?
TIA
Adrian [ abhagat ( at ) serif dot com ],
2004-04-22 03:25:53
#
-
RE: Still can't connect
[ Reply ]
Just sorted this out for myself - I was using the external network name of the SMTP server (e.g. smtp.mycompany.com) instead of the local network name.
Adrian [ abhagat ( at ) serif dot com ],
2004-04-22 06:29:11
#
-
RE RE: Still can't connect
[ Reply ]
Same solution here: replacing smtp.company.net by it's IP-address made it work, thanks!
de paster van popering [ freetn ( at ) hotmail dot com ],
2004-12-28 23:26:32
#
-
RE: Still can't connect
[ Reply ]
i am not sure, but add the line smtp.smtpserver="localhost" before sending the mail and also check iis manager ie smtp virtual directory setting first open internet information manager in that right click on smtp virtual directory after that access tab, then relay and then add in a list ur system ip address . may it will work
avinash bhise [ avinashbhise ( at ) gmail dot com ],
2006-08-18 11:05:50
#
-
Framework1.0-send mail authentication
[ Reply ]
HAllo, how can i authenticate to my SMTP server if i have the Framework 1.0???the new metod fileds.add doesnt exist!!!!!! thanks
Cristina [ mcrisf ( at ) hotmail dot com ],
2004-05-12 04:40:50
#
-
RE: Framework1.0-send mail authentication
[ Reply ]
Assuming you can obtain/install .Net Framework 1.1 , here's how you point a project to a specific version of the .Net framework:
In VS, select your Project in the Solution Explorer. Then select Properties | Common Properties | Reference Path.
In the Reference Path property page, click the Browse button at the end of the Folder textbox.
In the Folder Location dialog box, navigate to C:\Program Files \ WINNT \ Microsoft.Net \ Framework \ folder with the target version.
Open this folder location.
This path will be put in the Reference Path listbox and all System namespace references will use this path (your target framework version).
You will then see the .Fields property on your Message object.
Ken.
Ken [ kroberts8 ( at ) kc dot rr dot com ],
2004-06-10 10:39:10
#
-
RE RE: Framework1.0-send mail authentication
[ Reply ]
I'm running VS2002 Academic. I installed the framework 1.1, pointed the specific project path to 1.1, and could use ".Fields.". The program builds, runs great, sends e-mail. But; I can't open ASPX or user controls in designer. Do I need VS2003? Any alternative?
Tom O [ toshea0214 ( at ) yahoo dot com ],
2004-11-14 20:08:08
#
-
RE RE: Framework1.0-send mail authentication
[ Reply ]
Thanx Man!
Roger [ rribera ( at ) cofb dot net ],
2006-03-30 01:41:31
#
-
Looks Great! But I are carfused...
[ Reply ]
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") . I saw an earlier post that was not responded to; what exactly this is "fields" line? I mean is it making a trip to MS to determine config? If so, I'm not feeling good about it; the whole reason I have a job is so that we can fit software to our lifecycle... not at MS behest.
David [ dmoring ( at ) tmcentral dot net ],
2004-05-14 21:59:38
#
-
RE: Looks Great! But I are carfused...
[ Reply ]
No, it's not making a trip to an MS web server or anything. It's just a schema name, like you see in XML and other documents, that CDO understands to mean, "oh you want to set that variable over there".
It's perfectly safe and works even if you're machine is offline and not connected to the internet.
DactylX [ dactylx ( at ) gmail dot com ],
2005-06-19 00:13:23
#
-
about the Mail Authentication Schemas...
[ Reply ]
Hello To all, I am newbie to c#.I read the article on How do I authenticate to send an email? But I don't know about the schemas? Why these required? & when I will use that then... Is it necessary to add the same link as.... http://schemas.microsoft.com/cdo/configutation/smtpauthenticate
Plz Help me. Thanks in advance
Mahesh [ mahesh ( at ) webodrome dot com ],
2004-05-26 23:31:30
#
-
SMTP Servers
[ Reply ]
Hi!, I'm trying sending mails from my VB.Net aplication using MailMessage() from CDO.I want to be able to use authenticated accounts, and my aplication runs ok only with some of them.Stmp mail servers like Yahoo (smtp.mail.yahoo.com) or Lycos (smtp.lycos.com) doesn't work (transport error, server response not available).It's posible to use this SMTP servers? or Am I doing something wrong?.Thank you for all.
Albert Mauri [ albert_email ( at ) yahoo dot es ],
2004-06-01 00:56:22
#
-
RE: SMTP Servers
[ Reply ]
i'm guessing those servers are locked down for paying customers. You will probably have to use your own SMTP server.
Cheers! Dave
dave [ dave ( at ) 123aspx dot com ],
2004-06-01 05:13:18
#
-
RE: SMTP Servers
[ Reply ]
iam unable to connect to server when sending email using asp.net2.o with c#
lavanya [ lavanya dot janapati ( at ) gmail dot com ],
2007-09-25 22:43:13
#
-
RE: SMTP Servers
[ Reply ]
unable to connect to server when sending mail from asp.net2.0 using c#
lavs [ lavanya dot janapati ( at ) gmail dot com ],
2007-09-25 22:48:10
#
-
Attachment problem
[ Reply ]
When i send some attachment then i recieve then correpted (0 KB).
As per research file extension and file size is not an issue. E.g. a file of 10 KB is recieved where as another file of same type is recieved as 0 KB file.
Please revert as soon as possible.
I tried installing Windows 200 SP4 also but it didnt work.
Nitin [ nitin dot atreya ( at ) rsystems dot com ],
2004-06-09 12:47:14
#
-
'Fields' is not a member of 'System.Web.Mail.MailMessage'
[ Reply ]
Dim notificationMail As New MailMessage() notificationMail.To = _currentCustomer.Email notificationMail.From = _processor.Configuration.CustomerServiceEmail notificationMail.Subject = "Order received." notificationMail.Body = GetMailBody() notificationMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")
Visual Studio is not recognizing the 'Fields' member for System.Web.Mail.MailMessage. How can I fix this? Thanks in advance.
Ray [ raymond dot attipa ( at ) villanova dot edu ],
2004-07-21 10:33:32
#
-
RE: 'Fields' is not a member of 'System.Web.Mail.MailMessage'
[ Reply ]
you are using vs.net 2002. you need 2003 and the 1.1 framework.
cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-07-21 10:38:31
#
-
RE RE: 'Fields' is not a member of 'System.Web.Mail.MailMessage'
[ Reply ]
thanks!
ray [ raymond dot attipa ( at ) villanova dot edu ],
2004-07-21 10:46:01
#
-
RE RE: 'Fields' is not a member of 'System.Web.Mail.MailMessage'
[ Reply ]
I'm using VS.NET 2003, and have Framework 1.1 installed. In my project references I explicitly referenced the 1.1 version of the System.Web.dll - still, the "fields" property isn't recognized... any idea why, anyone?
Markus Wolff [ markus dot wolff ( at ) synaptec dot de ],
2004-08-31 07:41:42
#
-
RE RE: 'Fields' is not a member of 'System.Web.Mail.MailMessage'
[ Reply ]
Hi Dave.
I'm running VS2002 Academic. I installed the framework 1.1, pointed the specific project path to 1.1, and could use ".Fields.". The program builds, runs great, sends e-mail. But; I can't open ASPX or user controls in designer. Do I need VS2003? Any alternative?
Tom O [ toshea0214 ( at ) yahoo dot com ],
2004-11-14 20:00:45
#
-
smtp server authentication
[ Reply ]
Hi Dave Congratulations on a terrific site, I have read this tutorial from you and I found it very helpfull, however my problem is the following, I developed a web aplication that has a c# file for sending mails from a database, I uploaded it to the web server and cant make it work, it works fine on my localhost, but I get "The server response was not available " error message from the smtp server, any suggestions?
Diego [ d_delfin ( at ) telia dot com ],
2004-07-25 14:21:35
#
-
RE: smtp server authentication
[ Reply ]
whatever server you are pointing at cannot be reached.
to test, from your production server, open a telnet prompt and try and connect to the remote smtp server.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-07-25 14:36:09
#
-
RE RE: smtp server authentication
[ Reply ]
Hi Dave thanks for your quick answer, I tryed telnet but i didn't received any answer (nothing at all) I can however using outlook receive email from that server (smtp and pop3 have the same adress) do you have any suggestions?
Diego Delfino [ d_delfin ( at ) telia dot com ],
2004-07-25 15:30:02
#
-
RE: RE RE: smtp server authentication
[ Reply ]
unless you have a program (firewall) locking down the telnet program, quite honestly, you probably did something wrong.
if you can use SMTP to get a mail server, you should be able to use telnet to get to the SAME EXACT mail server.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-07-25 15:37:31
#
-
RE RE: RE RE: smtp server authentication
[ Reply ]
Dave! after reading your FAQ I realized that the DNS of the smtp server was slow in catch on, I tryed with th ip adress and I made it run, thanks for your awesome page!. By the way is there any method in this class for formating text so it looks the same on e.g Eudora and Outlook?
Diego [ d_delfin ( at ) telia dot com ],
2004-07-25 17:30:21
#
-
help!
[ Reply ]
private void button1_Click(object sender, System.EventArgs e) { MailMessage mail = new MailMessage(); mail.To = "qt8518@163.com"; mail.From = "friends6313@sina.com"; mail.Subject = "this is a test email."; mail.Body = "this is my test email body";SmtpMail.SmtpServer.Insert( 0, "smtp.263.net"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "friends1234@sina.com"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "1234567"); //set your password here SmtpMail.Send( mail );
}
When i run the program,nothing has happened. no letters received. can anybody tell me why?
qq [ qt8518 ( at ) 163 dot com ],
2004-07-26 02:52:22
#
-
RE: help!
[ Reply ]
i am newbie
spesify the SmtpServer eg:
SmtpMail.SmtpServer = smtp.163.com
Fahong [ lfh187 ( at ) 163 dot com ],
2004-08-02 20:33:03
#
-
RE: help!
[ Reply ]
If u run the application on localhost specified the Smtpmail.smtpserver = "localhost" if u want to upload the page... u should use
Smtpmail.smtpserver = (Your smtp server name)
Nayak.....
Saurabh [ whysaurabh ( at ) yahoo dot com ],
2005-11-28 03:11:59
#
-
is authentication necessary??
[ Reply ]
Hi eb Are there any other risks than spam, when not applying authentication to the smtp service??
I want to prevent the overhead of username & password maintanence.
Cheers Rea
Rea [ reapeleg2 ( at ) yahoo dot com ],
2004-08-04 01:21:53
#
-
RE: is authentication necessary??
[ Reply ]
you can also authenticate by IP address.
However, if you have an open relay, it will be discovered and used as a spam source within hours. Your IP will be blacklisted within days.
--dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-08-04 04:26:29
#
-
Send Email using GroupWise
[ Reply ]
Hi
How can I send e-mail from ASP.NET using GroupWise? Do GroupWise also support SMTP?
Thank you in advance.
Walter [ walterd ( at ) ananzi dot co dot za ],
2004-08-13 02:39:58
#
-
who tell me why i still can't send a mail
[ Reply ]
MailMessage aMessage = new MailMessage(); aMessage.From ="user@liyouxin.com"; aMessage.To ="user@liyouxin.com"; aMessage.Subject ="cansuccess?"; aMessage.Body = "cansuccess?"; aMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); aMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "user@liyouxin.com"); aMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword"," pwd");
SmtpMail.SmtpServer = "liyouxin.com";
SmtpMail.Send(aMessage);
I make everything right, but can't connected yet, who can tell me where my mistake is. thanks a lot!
andy [ zhangchen ( at ) mails dot gscas dot ac dot cn ],
2004-08-18 20:41:50
#
-
SMTP
[ Reply ]
I am using CDO and System.Web.Mail to send mails from addresses that are configured in DB. Now, i want to know, how can i get the underlying e-mail address from the display name. e.g. ihave an address as IT XXXX. This is a valid group address. I need to get the underlying address from this info to send mail.
Sundeep [ sundeep_sharma ( at ) dell dot com ],
2004-08-23 02:51:45
#
-
Authentication Problems
[ Reply ]
If I add these codes in my program, there is a error message, "Mail can't be sent to SMTP server, ERROR CODE 0x80040217. The server's response is "not available".(I translate this sentence from Chinese. It may not be exactly the same with English response) mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password
But if I don't add these, there is a 553 error.
If I need connect the Microsoft.com, I need to use a proxy. Is this the proplem?
How can I fix this problem? (I am a Chinese and not so good at English.) 3ks ^_^
anan [ anan ( at ) dormforce dot net ],
2004-08-23 20:27:26
#
-
RE: Authentication Problems
[ Reply ]
Hi have a feeling your SMTP server does not support Basic Authentication. You may want to try a different Authentication model.
hth, dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-08-23 20:40:12
#
-
Smtp authentication
[ Reply ]
Hi, I am using System.Web.MailMessage class to send mail. I am using my organization's mail server to send mails. I can send mails within the domain but not outside the domain. eg. if my smtp server's name is 'apple' i set the smtp server's addtess to apple. and when i send the mail i am unable to send any of my mails outside the domain. the code is
mm is the MailMessageClass
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","2"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","aranjan"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","xxxxxx");
SmtpMail.SmtpServer="apple"; SmtpMail.Send(mm);
This works but if i use wrong password then also it sends mails.
Plz help me out.
amit [ aranjan ( at ) xavient dot com ],
2004-08-25 23:41:35
#
-
authentication SMTP
[ Reply ]
Hi all,
When through with the suggested code to allow smtp authentication and it seemed to work for asp pages, but not for windows application. Althouth i did import the proper classes. Anybody has an idea why this is the case?
--Amer
Amer hajj [ amerhajj ( at ) excote dot com ],
2004-09-13 07:23:15
#
-
overwrite the default return-path field
[ Reply ]
Hi guys,
Does anybody know how to specify a "return-Path" field to a different address than the "From" field? I'm trying to send an email, with a given "From" field, however if that email bounces, the email returns to the address in the "return-path" or "ReplyTo" field! I'm using VB.net. Thanks guys..
Amer [ amerhajj ( at ) excite dot com ],
2004-09-21 15:25:39
#
-
The system indicates the error: can't access CDO.Message
[ Reply ]
The system indicates the error: can't access CDO.Message how to do with it??
cocoa [ vubcocoa ( at ) hotmail dot com ],
2004-10-28 21:36:14
#
-
How do I validate email address?
[ Reply ]
How do I programmicatically verfiy if an email address is a valid domain user? I would like to accomplish this in VB.NET. Any help greatly appreciated. Thanks in advance.
Christine [ christine dot nuyen ( at ) creeden dot com ],
2004-11-01 06:42:19
#
-
Can't open .aspx or User Controls after pointing project path to 1.1
[ Reply ]
I'm running VS2002 Academic. I installed the framework 1.1, pointed the specific project path to 1.1, and could use ".Fields.". The program builds, runs great, sends e-mail. But; I can't open ASPX or user controls in designer. Do I need VS2003? Any alternative?
p.s. Sorry about the multiple posts (as replys).
Tom O [ toshea0214 ( at ) yahoo dot com ],
2004-11-14 20:22:01
#
-
Fields.Add Not Working in 1.1
[ Reply ]
Hello:
When I use fields.add in my component, the component compiles just fine. But then when I try to send e-mail, I get an error "object not set to an instance of an object"...
When I removed the sendusername and password fields.add stuff, it worked... am I missing something there? Should I import a namespace that I am not importing? Or does that fields.add method not workable in components?
xhay [ xhaykx ( at ) yahoo dot com ],
2004-11-23 20:32:26
#
-
RE: Fields.Add Not Working in 1.1
[ Reply ]
Looks to me like you havent instantiated the mail.message class.
ie: Dim mymail as new mailmessage mymail.from...etc...
http://www.smartekpr.com/sw/swmenu.htm [ mymail ( at ) mail dot com ],
2005-08-01 10:58:43
#
-
help needed
[ Reply ]
I want to send a mail from .net application which should not go to bulk folder. i have done authentication like this... objEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") objEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "mail server user id") objEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "mail server password") SmtpMail.SmtpServer = "mail.emphasissolutions.com" SmtpMail.Send(objEmail)
but still the mail is going to junk mail in hotmail a/c. Could some body help in this matter.
Thanx
regards, mohan
Mohan [ pvp_mohan ( at ) yahoo dot com ],
2004-12-17 21:48:48
#
-
im confused
[ Reply ]
all of you write your codes like this:
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","2";); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","aranjan";); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","xxxxxx";);
if i were to add that into vs.NET i get an error cause there are 2 ; at the end of the line, is that intentional ?
Patrick [ pafo ( at ) pafo dot net ],
2004-12-18 08:40:47
#
-
How do I pass Windows Credentials
[ Reply ]
One thing that is not clear to me. Am I supposed to hard code the username and password in the fields, if not how do I pass on their credentials from their windows login?
This is not for a web app but a desktop vb.net app. I want to use their Windows username and password
Marshall [ marshall dot brandt ( at ) lincolngeneral dot com ],
2004-12-30 13:44:56
#
-
RE: How do I pass Windows Credentials
[ Reply ]
You Got any reply to your question as passing windows credentials
Please do let me know
thanks sudheer
Sudheer [ v-kkumar ( at ) microsoft dot com ],
2007-07-19 11:56:15
#
-
Urgent! the athentication can't work today!!!!
[ Reply ]
since 2005/1/5, the "http://schemas.microsoft.com/cdo/config..." can't work. always show the exception "The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available " can you help me? does it the MS Smtp problem? cuz it works fine few weeks ago.
Tommy [ okit ( at ) 21cn dot com ],
2005-01-05 20:23:03
#
-
Server not accepting authentification
[ Reply ]
Hello i cant make the server to accept auth:
MailMessage Mailer = new System.Web.Mail.MailMessage(); Mailer.From = entryDe.Text; //i'm using GTK# and mono for GUI and compiling /executing Mailer.To = entryA.Text; Mailer.Subject = entrySubject.Text; Mailer.Body = textviewMensaje.Buffer.Text; Mailer.BodyFormat = MailFormat.Text; //Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", "2"); //required? Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", entryUser.Text); //set your username here Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", entryPwd.Text); //set your password here SmtpMail.SmtpServer = entrySMTPServer.Text; SmtpMail.Send(Mailer);
i'm trying to send email to accounts to other servers but the server responds:
System.Web.HttpException: Server reponse: '530 Delivery not allowed to non-local recipient, try authenticating';Status code: '530';Expected status code: '250';
any ideas?
Sergio [ sergio dot vera ( at ) campus dot uab dot es ],
2005-01-17 14:17:08
#
-
RE: Server not accepting authentification
[ Reply ]
by the way the SMTP server uses only plain text authentification
thank-you for any ideas
sergio [ sergio dot vera ( at ) campus dot uab dot es ],
2005-01-17 14:19:37
#
-
RE: Server not accepting authentification
[ Reply ]
Ok, it seems that mono 1.0.5 can't handle very well the Fields property and does'nt permit authentication. Its a shame. I would like to have to stay with microsoft's framework. Bye-bye linux compatability, at least until next release of mono
regards!
sergio [ sergio dot vera ( at ) campus dot uab dot es ],
2005-01-17 14:53:03
#
-
Transport error
[ Reply ]
Here's the error message:
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
What I do - I set basic authentication, username, password; I sent my port to "80". I set the smtp server to the one I have in my outlook settings for outgoing email.
Outlook works - asp.net does not. Am I missing a parameter?
Thanks
Brainish [ question ( at ) brainish dot com ],
2005-01-18 12:59:09
#
-
RE: Transport error
[ Reply ]
My bad :)
This site is worth lots of $$$. Great info!
Brainish [ question ( at ) brainish dot com ],
2005-01-19 07:14:49
#
-
RE RE: Transport error
[ Reply ]
I'm getting the same Transport Error. How did you sort this out?
sups [ supz_s ( at ) yahoo dot com ],
2006-05-18 04:36:50
#
-
it works for me...
[ Reply ]
I used this for teting, and it works....
<script language="vb" runat="server">
Sub Page_Load() Dim objMail As New MailMessage()
' The email address of the sender objMail.From = "me@email.com"
' The email address of the recipient objMail.To = "you@email.com"
' The format of the message - it can be MailFormat.Text or MailFormat.Html objMail.BodyFormat = MailFormat.Text
' The priority of the message - it can be MailPriority.High, MailPriority,Normal ' or MailPriority.Low objMail.Priority = MailPriority.High
' The subject of the message objMail.Subject = "Test ASP.NET email with Authentication"
' The message text objMail.Body = "This is a test email sent via ASP.NET. It was easier than I thought :-)"
objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "your_username") 'set your username here objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "your_password") 'set your password here
SmtpMail.SmtpServer = "your_smtp_server" SmtpMail.Send(objMail)
End Sub
</script>
hope this helps.
deadman [ deadman ( at ) walking dot com ],
2005-01-24 23:54:12
#
-
'string' does not containt a definition for 'Fields'
[ Reply ]
...
VAR_EMAIL_MSG.To = VAR_EMAIL; VAR_EMAIL_MSG.From = Application.Get("VAR_EMAIL_FROM") as string; VAR_EMAIL_MSG.Subject = Application.Get("VAR_EMAIL_SUBJ") as string; VAR_EMAIL_MSG.Body = VAR_ACTIVATE_STRING; VAR_EMAIL.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1"); VAR_EMAIL.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","puhek"); VAR_EMAIL.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","puhek");
...
I'm sure, that I have FW 1.1 since I haven't install anything else. I also have 1.1 service pack installed. Using Borland's C# builder I get a compile error 'string' does not containt a definition for 'Fields'
Any ideas?
Puhek [ marko dot clemente ( at ) printec dot si ],
2005-02-15 00:48:09
#
-
Send Failure
[ Reply ]
What is the problem of my code can u help me please?
Dim objMail As MailMessage objMail = New MailMessage() objMail.From = "OfficeSvcs1@example.com" objMail.To= "admin@example.com;bala@example.com;kalidh@example.com"
objMail.CC = strCC objMail.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "Unicenter" objMail.Subject = strSubject objMail.Body = strBody objMail.fields.add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1")
objMail.fields.add("http://schemas.microsoft.com/cdo/configuration/sendusername","OfficeSvcs1")
objMail.fields.add("http://schemas.microsoft.com/cdo/configuration/sendpassword","123") try SmtpMail.Send(objMail) strNote = "This Memo has been Sent" catch exc as Exception strNote = "Send failure" End Try
Laila [ jindanl ( at ) ngha dot med dot sa ],
2005-02-26 06:13:12
#
-
How to hide the SMTP authentication
[ Reply ]
I’m sending mail form the assembly, and for that I’m doing authentication like that:
MailMessage MyMail = new MailMessage(); MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "UserName"); MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", " password");
And by using the tool like the ‘Microsoft .NET Framework IL DASM’ and ‘Reflector’, this user name and password can be seen easley.
How can I hide this data?
Sharon [ Sharon ( at ) evs dot co dot il ],
2005-03-03 02:17:28
#
-
RE: How to hide the SMTP authentication
[ Reply ]
Store the values in a safe location (e.g. a table in a secure database) and retrieve them into string variables:
strPwd = GetPwd(); MyMail.Fields.Add(".../sendpassword", strPwd)
where GetPwd is the method that will connect to the db and retrieve the password.
OR
Use encryption. MyMail.Fields.Add(".../sendpassword", Decrypt("DKEHRKTI38");
where Decrypt is a method you write (will also need a correspondint Encrypt method to get that argument "DKEHRKTI38"). You can come up with your own encryption/decryption algorithm, use a free one, or buy one. It all depends on how secure your app needs to be.
Sam [ process ( at ) hotmail dot com ],
2005-03-31 10:07:21
#
-
SMTP Authentication via ASP.NET
[ Reply ]
I am wondering if it is possible to send an email using asp.net to a SMTP server that authenticates SSL on a different port?
I am able to send an email if I set it up in vb.net but have been unsuccessful as far as trying to send it from an asp.net webpage.
Thanks KJ
KJ [ noemail ( at ) liameon dot com ],
2005-03-07 06:52:25
#
-
SMTP server name
[ Reply ]
Hi, Could you please tell me how to get the name of the SMTP server? Its for mailing using asp.net.
Pooja [ poojavsenan ( at ) yahoo dot co dot in ],
2005-04-03 04:19:11
#
-
RE: SMTP server name
[ Reply ]
if u don't know the name then use localhost or u can get it from internet information manager. go to the control panel administrative tool select internet information manager and see the smtp
avinash [ avinashbhise ( at ) gmail dot com ],
2006-08-18 11:09:18
#
-
RE: SMTP server name
[ Reply ]
How to Know the SMTP server name.
Regards
Srinivasan
Srinivasan [ srinivasan6 ( at ) rediffmail dot com ],
2006-09-12 23:10:31
#
-
authentication error
[ Reply ]
hi everyone and thnx for such a supportive website.
I have a problem with the authentication, i wrote the same codes here, and i upgraded my VS to VS2003 to get the "fields", though i get the fields i always get the error:
Method not found: System.Collections.IDictionary System.Web.Mail.MailMessage.get_Fields().
does anyone have any idea??
thnx
emir [ emirhanemre ( at ) yahoo dot com ],
2005-04-08 06:40:13
#
-
how to recieve email from hotmail,yahoo,etc mail servers in asp.net?
[ Reply ]
guys .i m working on the asp.net project. The real problem is that "i want to recieve emails from hotmail,yahoo etc servers. plz give me some hint.I m working on the email service".Like hotmail,yahoo as they have the sending /receiving and attchment facility. How can i receive email .how Should i come to know their I.P adresses etc? well guide me for this problem. bilal
bilal [ urveer ( at ) yahoo dot com ],
2005-04-11 00:19:42
#
-
RE: how to recieve email from hotmail,yahoo,etc mail servers in asp.net?
[ Reply ]
Hi,
I am working with a project in VB.Net. In that I am working with mail services in which i can send mail with my SMTP server with authentication..I dont know how to recieve mails from other servers (like yahoo,rediff,gmail)and view it..Please anybody can u help me.....?????
urs Sincerely, Muthu Kumar N
Muthu Kumar [ muthu_new2004 ( at ) yahoo dot co dot in ],
2006-09-28 01:04:58
#
-
RE: how to recieve email from hotmail,yahoo,etc mail servers in asp.net?
[ Reply ]
For Accessing the E-mails you need the POP 3 Address and Yahoo dosent provide Pop3 for free accounts you have to pay some money to yahoo for getting the POP3 facility for your mail box
Sunny Gurnani [ sunny_sadhanastudio ( at ) yahoo dot co dot in ],
2006-11-10 08:33:13
#
-
Console App Unable to Authenticate to Smtp Servers
[ Reply ]
Hey, from a regular web application I can send e-mails fine, but when I try to connect to my SMTP Server from a Console App, ASP.NET starts screaming at me.
Any suggestions?
Peter [ pflor ( at ) ebrokerclub dot com ],
2005-04-12 01:53:18
#
-
RE: Console App Unable to Authenticate to Smtp Servers
[ Reply ]
You don't say what the error is.
This is the code cut directly from a C# windows app. Should be no difference between this an a console app. This works on a mail server box that needs authentication for email addresses outside the domain:
('auth' is an object I use in my project, its properties are self-explanatory)
MailMessage message = new MailMessage();
message.BodyFormat = MailFormat.Html;
message.Body = letterBody; message.To = email; message.From = auth.FromHeaderEmail; message.Subject = objLetterSubject.ToString();
message.Headers.Add("From", auth.FromHeaderEmail + "(" + auth.FromHeaderName + ")"); message.Headers.Add("Delivery-Receipt-To", auth.FromHeaderEmail); message.Headers.Add("Registered-Mail-Reply-Requested-By", auth.FromHeaderEmail); message.Headers.Add("Read-Receipt-To", auth.FromHeaderEmail); message.Headers.Add("Return-Receipt-To", auth.FromHeaderEmail); message.Headers.Add("Content-type", "text/html"); message.Headers.Add("X-Confirm-Reading-To", auth.FromHeaderEmail); message.Headers.Add("Disposition-Notification-To", auth.FromHeaderEmail); message.Headers.Add("Subject", "Some subject line.");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", auth.MAPIMailboxName); //set your username here message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", auth.MAPIMailboxPassword); //set your password here
SmtpMail.SmtpServer = "mail.whatever.com";
try { SmtpMail.Send(message); } catch(Exception ex) { string exception = ex.InnerException.Message; }
Tim [ timpalko79 ( at ) yahoo dot com ],
2006-04-01 11:18:15
#
-
mail.Fields.add
[ Reply ]
I dont have the method mail.Fields.add in MailMessage !
Eduardo [ eduardofcomelo ( at ) gmail dot com ],
2005-04-18 11:09:37
#
-
RE: mail.Fields.add
[ Reply ]
This guy is available in .net Framework version 1.1 and above only.
Make sure about your version.
Nilesh Leuva [ nilesh_leuva ( at ) hotmail dot com ],
2005-05-11 13:21:16
#
-
How to send mail using VB.NET
[ Reply ]
Hi I need your invaluable help in the problem which i am facing while sending mail using (VB .NET) only.All the code the comiler is executing correctly.Its showing no error any where.Even it is executing last statement Smtpmail.send(Mymail) successfully. Still it is not going to the corresponding email address. Please help,is there the problem in IIS Server(ie SMTP server) or something else.I am not giving the server name like(smtp.servername=" ").Should i give it ??
Waiting for your invaluable help. Bye Manish Jaiswal
Manish [ manishjaiswal24 ( at ) yahoo dot com ],
2005-04-19 03:39:29
#
-
change smtp server's default port
[ Reply ]
hi, I am facing some problem with sending E-mails through smtp server using smtp mail class. I am using the following code
Imports System.Web.Mail
Dim cdoMessage As New MailMessage() cdoMessage.To = "pqr@abc.com" cdoMessage.From = "abc@abc.com" cdoMessage.Subject = "strSubject" cdoMessage.Body = "strBody" SmtpMail.SmtpServer = "Mail server Name" SmtpMail.Send(cdoMessage) cdoMessage = Nothing
This code is working fine with default smpt server port(25). if i change the smpt server port then it throw the error "Can not access CDO.Message Object" If any one has the solution then please give the response.
Thanks & Regards Sanjay Chauhan
sanjay chauhan [ sanjaychauhan_8 ( at ) yahoo dot com ],
2005-04-25 02:51:53
#
-
username/pwd being ignored in Basic authentication
[ Reply ]
I am using a remote mail server (in intranet) that supports NTLM authentication. - When I send mail using NTLM it works fine as expected. - When I use anonymous logon it fails as expected. - When I use Basic authentication with username & pwd, I expect it to fail, but it surprisingly it works too! even when I enter invalid or empty username/pwd. No programming errors. It looks like the username & pwd are totally ignored, and the Basic authen is somehow treated as NTLM. Any explanations? Please help. Thanks.
Nicole [ babykhoi ( at ) yahoo dot com ],
2005-04-25 11:40:57
#
-
No error, but still no mail
[ Reply ]
I copied the code and customized it to my own smtp-server and e-mail-adress.
Then I test it and it seems to work. (Norton AntiVirus cheked outgoing Mail)
But the Mail do not arrive the receiver.
No error - nothing.
Any Ideas?
herzog [ herzog ( at ) edvring dot de ],
2005-05-13 06:37:18
#
-
gmail authentication methods help
[ Reply ]
Gmail help. which authentication method to use ? 1 ,2 or 3 thanks
eric [ polee1977 ( at ) yahoo dot com ],
2005-05-17 09:18:39
#
-
authenticate to send an email: parameter clarification
[ Reply ]
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here
In the above lines of code, which username & password needs to be specified?? I am new to this...Can u plz help me??
RM [ revathy dot mahalingam ( at ) softdel dot com ],
2005-05-19 04:45:14
#
-
Good CDO Info?
[ Reply ]
Can anyoine point me to a good CDO reference?
Garrett [ dadinportland ( at ) yahoo dot com ],
2005-05-25 10:30:56
#
-
Error in when sending through my web site
[ Reply ]
hi there
i have developed a web site that sends users e-mails in the registration process so they get a code to complete the registration process
i don't know my SMTP server to use ?! what can i do?
here is my code: (C#)
private void btnSend_Click(object sender, System.EventArgs e) { MailMessage myMail = new MailMessage(); myMail.To = "yasserhy@yahoo.com"; myMail.From = "test@direction-adv.com"; myMail.Subject = "testing"; myMail.Body = "hiiiiiiiii"; SmtpMail.SmtpServer = "mail.direction-adv.com"; SmtpMail.Send(myMail); }
as u can see .. in the SMTP server , i have thought of putting the word "mail" before my web site address.. but i got this error:
The server response was: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
please help !!! or just tell me how can i do it :(
plz guys .. i really need your help
Kiko [ yasserhy ( at ) yahoo dot com ],
2005-06-07 10:30:32
#
-
CDO
[ Reply ]
My ISP does not support CDO is there any way around sending e-mail with VB.NET that does not involve CDO. This is my code
Friend Sub MailAdmin(ByVal subject As String, ByVal message As String, ByVal sourceStage As Integer) ' Send mail to administrator SmtpMail.SmtpServer = Configuration.MailServer Dim notificationMail As MailMessage = New MailMessage() notificationMail.To = Configuration.AdminEmail notificationMail.From = Configuration.OrderProcessorEmail notificationMail.Subject = subject notificationMail.Body = "Message: " & message & Chr(10) & "Source: " & sourceStage.ToString() & Chr(10) & "Order ID: " & OrderID.ToString() notificationMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 notificationMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username" notificationMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" SmtpMail.Send(notificationMail) End Sub
Chris Bower [ chrispbower ( at ) tiscali dot co dot uk ],
2005-06-07 16:36:44
#
-
NTLM authentication failing
[ Reply ]
I'm trying to send email from an ASP.net application, using an external Exchange server. When I use basic authentication, it works. When I use NTLM, with the web application impersonating the same user account, I get the following error:
Could not access 'CDO.Message' object. Exception has been thrown by the target of an invocation. System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
Here's the code:
MailMessage Message = new MailMessage(); Message.To = txtAddress.Text; Message.From = txtAddress.Text; Message.Subject = txtSubject.Text; Message.Body = txtMessage.Text; Message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","2"); SmtpMail.SmtpServer = txtServer.Text; SmtpMail.Send(Message);
I've verified that this.User.Identity.Name is the account I expect, and it's the same one that works when I use basic authentication. I've seen some messages about the Exchange server supporting NTLM. If Outlook correctly identifies my NT logon on the same computer where I'm running this application, can I assume that the Exchange server supports NTLM?
Is there something else that could be causing this error?
Thanks in advance.
Eric [ emb ( at ) stanleyassociates dot com ],
2005-07-14 12:02:30
#
-
About mail body length
[ Reply ]
I can get the mail when the mail body is short. But when I have many things in the mail body..I can't receive the mail..I wanna know how long is the maximum lengh of the mail body . Many thanks
Juana [ tortoise0 ( at ) 163 dot com ],
2005-07-19 23:39:27
#
-
HEEEELLLLPP!! smtp authentication does not work
[ Reply ]
Hi
I would like to thank everyone who has posted here and make this a wonderful blog. Unfortunately even after going thru each and everything that is described in the posts here, my mails are not being sent to external mail addresses.
The case.....
I have a form that users fill up and I get a ntofication of the same by email. Now in some cases, I have send some links back to the users who register on my site. In such a case, i.e. outgoing mail...the server does not send mail to any other address other than my own domain name i.e. if my domain name is abcl.com then it will not send the mail outside this domain.
I am using vs.net2003, framework 1.1, windows 2000 server hosting
Earlier i thought that it was an issue of authentication as my server requires authentication. so i included the code specified here and tried again just to fail again.
Here is the code snippet that i am using. I will be very greatful to everyone who replies to this post and helps me sort this out. Thanks in advance.
'%%%%%%%%% Code Snippet %%%%% Dim mail As New MailMessage mail.To = strTo mail.From = strFrom mail.Subject = strSubject mail.Body = strMessage mail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xyz@abcl.com" mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypwd"
SmtpMail.SmtpServer = "mail.abcl.com" 'your real server goes here SmtpMail.Send(mail)
Just to mention once again. the problem is with sending mails outside the domain.
Thanks
Dbhartiya [ deveshbhartiya ( at ) hclinfinet dot com ],
2005-07-25 02:46:15
#
-
A new Authentication problem :(
[ Reply ]
Hi sir I have a problem, when i send a e mail my code is Dim mail As New MailMessage() mail.To = "khubpk@yahoo.com" mail.From = "khubpk@yahoo.com" Mail.Subject = "this is a test email." Mail.Body = "Some text goes here" mail.Headers.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication
mail.Headers.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "khubpk@yahoo.com") 'set your username here mail.Headers.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "abcd") 'set your password here SmtpMail.SmtpServer = "smtp.mail.yahoo.com" 'your real server goes here SmtpMail.Send(Mail)
this code genrate a error error message is Fields update failed. For further information, examine the Status property of individual field objects
plz help me how i send a email through yahoo server yahoo smtp is "smtp.yahoo.com"
thanx in advance sir
Khubaib Alam [ khubpk ( at ) yahoo dot com ],
2005-07-27 08:28:32
#
-
I Don't know why it Occours
[ Reply ]
Hello!
If I do not have a internet connection where my application is running? Could I send emails with these classes?
Ramon RJ/BraSil
Ramon [ ramonjosesilva ( at ) gmail dot com ],
2005-08-15 13:24:07
#
-
Can't send E-mails outside my mail server
[ Reply ]
Hi I'm able to send mails to all the addresses in my mail server, buT when I want to send a mail outside my mail server (hotmail or yahoo for example) the mail is not delivered, I used the MailMessage.Fields property to authenticate but the problem wasn't fixed, what can I do?
Gus [ guzizu ( at ) yahoo dot com ],
2005-08-29 21:59:30
#
-
Keep getting a CDO error
[ Reply ]
An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message' object
Abhijit [ abhijit dot shrikhande ( at ) gmail dot com ],
2005-08-31 02:46:04
#
-
could not Access 'CDO.Message' object
[ Reply ]
hi, why do i always get this message, heres my code, pls. help, tanx.
Imports System.Web.Mail.MailMessage
sub SendMail Dim oObjMail As New Mail.MailMessage Dim oObjSrvrMail As Mail.SmtpMail Dim strErrMsg As String Try
oObjMail.From = "info@redrooftops.com" oObjMail.To = "RaffyC_76@yahoo.com" oObjMail.Subject = "My Test" oObjMail.Body = "My Message"
oObjMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication oObjMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "redrooftops") 'set your username here oObjMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "myweb1") 'set your password here
oObjSrvrMail.SmtpServer = "mail.redrooftops.com" oObjSrvrMail.Send(oObjMail) end sub
raffy [ raffyc_76 ( at ) yahoo dot com ],
2005-09-16 08:20:18
#
-
How to send and Email
[ Reply ]
Hi while sending an email it saying "server rejected one or more recipient addresses. The server response was: 550 5.7.1 unable to realy for "mymail@myweb.com" i tried this by using smtpmail.smtpserver="" smtpmail.smtpserver="lcoalhost" smtpmail.smtpserver="ip address of my smtp server" but it giving same error can any one tell me what is the problem.
Maruthi [ panyam_maruthi ( at ) yahoo dot com ],
2005-09-18 23:51:44
#
-
Another method (NetworkCredential)
[ Reply ]
I don't know if this has been brought up (lot of posts here), but...
Another method for authenticating was posted at Orcsweb using network credentials
http://www.orcsweb.com/articles/sending_smtp_authenticated_email.aspx
Eric [ webmaster ( at ) ruskin dot com ],
2005-09-21 07:24:27
#
-
How do I authenticate to send an email?
[ Reply ]
MailMessage Msg = new MailMessage();
Msg.To =someone@someone.com;
Msg.From=me@mydomain.org;
Msg.Subject="Test Mail confirmation";
Msg.Body=TxtMsg.Text;
Msg.BodyFormat=MailFormat.Text;
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1");
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","me@mydomain.org");
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","password");
SmtpMail.SmtpServer ="mail.mydomain.org";
SmtpMail.Send(Msg);
i am trying this code. i am able to send mail if( to address :me@mydomain.org from Address:me@mydomain.org)
i f i am trying to send for different address it gives error:
System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 503 This mail server requires authentication. Please check your mail client settings.
guyz plz help me.
Aru [ juneboy6 ( at ) gmail dot com ],
2005-10-04 04:34:12
#
-
RE: How do I authenticate to send an email?
[ Reply ]
If you are sending mail using ASP.NET, change the IIS admin anonymous account to a low privilege domain account that has a strong password.
Worked for me and avoiding putting passwords in the code.
Anonymous [ test ( at ) test dot com ],
2006-04-25 04:29:14
#
-
The server response was: 503 This mail server requires authentication. Please check your mail client settings.
[ Reply ]
MailMessage Msg = new MailMessage();
Msg.To =someone@someone.com;
Msg.From=me@mydomain.org;
Msg.Subject="Test Mail confirmation";
Msg.Body=TxtMsg.Text;
Msg.BodyFormat=MailFormat.Text;
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1");
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","me@mydomain.org");
Msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","password");
SmtpMail.SmtpServer ="mail.mydomain.org";
SmtpMail.Send(Msg);
i am trying this code. i am able to send mail if( to address :me@mydomain.org from Address:me@mydomain.org)
i f i am trying to send for different address it gives error:
System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 503 This mail server requires authentication. Please check your mail client settings.
guyz plz help me.
Aru [ juneboy6 ( at ) gmail dot com ],
2005-10-04 04:36:19
#
-
fixed! - Check to see that your port 25 is not blocked
[ Reply ]
Earthlink or my WindowsXP firewall blocks a program from using port 25. I had to use port 2525 to get it to work.
ADefWebserver [ webmaster ( at ) adefwebserver dot com ],
2005-11-01 07:03:00
#
-
authenticate VS 2005
[ Reply ]
Pleas Help me ;)
I´am using this code in VS2003 and iit works perfect but in VS2005 the Member .Fields does not exists.
Zuweisung von Sender / Empfäger / Smtp-Server With message .Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 .Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xxxx" .Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "xxxx" End With
I´am using VS2005 Professional on WIN2003 Server
David Ambros [ djschoko ( at ) gmx dot de ],
2005-11-28 07:10:06
#
-
RE: authenticate VS 2005
[ Reply ]
'=============================================> Dim msg As String = "---" Try Dim strAddress As String = "xxx@xxxx.com" Dim sm As New SmtpClient(Host, Port) With sm .EnableSsl = True .Credentials = New '!!!!!! NetworkCredential("MyuserName", "MyPass") End With
Dim _from As MailAddress = New MailAddress(strAddress) Dim _to As MailAddress = New MailAddress(strAddress) Dim mMsg As New MailMessage(_from, _to) mMsg.Subject = "Happy AAA"
sm.Send(mMsg)
msg = "Seccess!"
Catch ex As Exception msg = ex.Message End Try
TextBox1.Text = msg
Hans S [ humbold ( at ) web dot de ],
2005-11-28 07:20:17
#
-
RE RE: authenticate VS 2005
[ Reply ]
It is NOT working. If i understand properly when i use HOST: mail.hotmail.com, RECIPIENT: someone@yahoo.de (host and recipient domain are different) and the SMTP server requires to authenticate sender, this code should help: smtpClient.Credentials = new NetworkCredential("UserName","Password")
But is NOT working! Why? I try more different host and recipient domains and each requires standard authorization (username and password like to pop3 servers). Every time error is: ...domain isn´t in my list of allowed rcpthosts (#5.7.1). It seems SmtpClient not uses Credentials.
Does exist help to me?
Zdenek [ zdenek ( at ) jantac dot net ],
2006-07-06 03:18:30
#
-
Using SPA To Authenticate Mail
[ Reply ]
Hi All,
This is a terrific forum for getting all the SmtpMail related answers. I was wondering what the procedure would be for authenticating my message object using SPA (secure password authentication) as opposed to basic or NTLM. Has anyone tried that? The reason I am asking is there are ISP's like MSN which use SPA to send and receive e-mail. I am trying to send an e-mail programmatically using my MSN account, but basic or NTLM authentication is not working. I am using Framework 1.1.
TIA, Pat
Pat C [ pchipdey ( at ) msn dot com ],
2005-12-06 16:05:51
#
-
RE: Using SPA To Authenticate Mail
[ Reply ]
Hi,
Please let me know how to implement the SPA (Secure Password Authentication) with smtpmails in asp.net 1.0 version
Pooja [ sangeeta dot wadhwani ( at ) e-zest dot net ],
2007-01-24 23:29:39
#
-
Basic Authentication-Exchange Server-Rejects User
[ Reply ]
Hi, I'm using win2003 server and exhange. When i try to send mail via basic authentication (same code shown above)it simply says that my user doesnt have permission to do so, but i can login, get and send my mails with that username and password in outlook(so i believe they r both right) Got any idea? Thanks in advance
Ant [ antkara ( at ) hotmail dot com ],
2005-12-26 04:01:30
#
-
sending mail
[ Reply ]
hi, im new to .net, my problem is i can send mails locally through my proxy server, but i can not send mails to other uers account, for example for yahoo id's, or hotmail id's im using my proxy server IP inplace of SmtpMail.SmtpServer = "IP Address" what i have to do please help its urgent
praveen [ dsap ( at ) zeenetwork dot com ],
2006-01-16 21:32:32
#
-
How do I authenticate using SSL?
[ Reply ]
Gmail smtp requires SSL authentication, how may I use it with CDO?, searching I found that CDO uses 0 for anonimous, 1 for basic and 2 for NTML, some idea?
Luis Muñoz [ losoriomx ( at ) venesistemas dot com ],
2006-01-24 11:17:52
#
-
want quik answer
[ Reply ]
i want to send mail using ASP.NET, i have alreay followed ur guideline, but i am still getting the 'fields' is not a member of sysetm.web.mail.mailmessage. plz tell me how to resolve this
chintal [ chintal2004 ( at ) gmail dot com ],
2006-02-03 00:46:21
#
-
RE: want quik answer
[ Reply ]
did you import the mail namespace?
IMPORTS System.Web.Mail
Hongquan [ hongquan dot wu ( at ) autodesk dot com ],
2006-02-09 18:36:30
#
-
what worked for me
[ Reply ]
the sample code works but i used my email profile to authenticate
kornolio [ kornolio ( at ) mailinator dot com ],
2006-02-05 19:32:32
#
-
Queueing Problem in Sending Mail
[ Reply ]
I am using ASP.NET 1.1 inbuilt mail class for sending mail but mail are added to queue folder & not reach at receiving end please help me
Alpesh [ dhorialpesh_mca ( at ) hotmail dot com ],
2006-03-08 04:17:11
#
-
The transport failed to connect to the server
[ Reply ]
using 1.1 framework the application is perfect on a windows server but when I try to use a LINUX server for the SMTP mail it either times out while communicating or I get the "The transport failed to connect to the server" Error I have been looking for days **HELP**
Brian [ bengel313 ( at ) hotmail dot com ],
2006-03-08 07:22:25
#
-
does not contain definition for 'Fields'
[ Reply ]
Hello! Im running VS 2005 with C# and when i try running smtp mail using following code:
SmtpClient mailClient = new SmtpClient(MihShopConfiguration.MailServer); MailMessage mailMessage = new MailMessage(from, to, subject, body); mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1); mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "linus.miller@glocalnet.net"); mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "jSDNSmk7");
i get the following error: 'System.Net.Mail.MailMessage' does not contain a definition for 'Fields'. What am i doing wrong?
Linus [ linus dot miller ( at ) glocalnet dot net ],
2006-03-16 06:34:17
#
-
RE: does not contain definition for 'Fields'
[ Reply ]
Look at the error message more closely. ;-)
'System.*NET*.Mail.MailMessage' doesn't contain the fields property. BUT, System.*WEB*.MailMessage does.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2006-03-16 06:52:59
#
-
Can somebody help ??
[ Reply ]
Hi..I am working on a project in ASP.Net/C#. I need help in sending a mail through intranet...ASAP
Kate Ashton [ katieashton ( at ) inbox dot com ],
2006-03-16 21:53:37
#
-
CDO error in sending mail
[ Reply ]
I am still getting the CDO error in sending mail using Remote server. Below is the code. ######################### Dim mailmsg As New MailMessage mailmsg.BodyFormat = MailFormat.Html mailmsg.To = txt_email.Text.Trim mailmsg.From = "testmail@abc.com" mailmsg.Priority = MailPriority.Normal mailmsg.Subject = "System login credentials." mailmsg.Body = vbCrLf & "<h2><u>Welcome to Brandtoolz</u></h2>" & vbCrLf & vbCrLf & _ "Username :-" & userid & vbCrLf & vbCrLf & "Password:- " & txt_passwd.Text & vbCrLf 'Dim a = SmtpMail.SmtpServer mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "Administrator") mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "testpasswd") SmtpMail.SmtpServer = "192.168.1.21" SmtpMail.Send(mailmsg)
#########################
I am trying to use another SMTP server located 192.168.1.21. So i have passed the login details for its Administrator user. Please tell me if i am missing something.
Karan [ sainisherry ( at ) yahoo dot com ],
2006-04-20 01:29:36
#
-
problem with rediff and hotmail
[ Reply ]
Hi i could able to send mails to yahoo and gmail but when i send the mail to rediff and hotmail the mails are not going ... no error message is displaying .. pls give solusion for me
prakash [ prakash22raja ( at ) yahoo dot co dot in ],
2006-08-08 00:58:32
#
-
Send email to different contacts c#
[ Reply ]
I want to send email to contacts, and this contacts are displayed in a datagrid. How do I do to chose the contacts from the datagrid to the field "mailTo".
MP
MP [ alfito ( at ) portugalmail dot pt ],
2006-08-26 01:16:42
#
-
sent mail
[ Reply ]
The server rejected one or more recipient addresses. The server response was: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
sridhar [ seshasridharp ( at ) yahoo dot co dot in ],
2006-09-01 00:21:58
#
-
503 This mail server requires authentication
[ Reply ]
The server rejected one or more recipient addresses. The server response was: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
can u give the solution.
sridhar [ seshasridharp ( at ) yahoo dot co dot in ],
2006-09-01 00:58:24
#
-
how to start smtpserver
[ Reply ]
how to start my default smtp virtual server
when i right ckick on it , it is showing start but
when i click on start it is not starting and shows
an error check event viewer
sridhar [ seshasridharp ( at ) yahoo dot co dot in ],
2006-09-01 01:07:46
#
-
can you please give me your code which is running for gmail account?
[ Reply ]
hello all
can anyone please give me your code which is running for any account I have tried very much, but it is not working for any account.
Thanks
nilesh kamani [ nilesh dot kamani ( at ) gmail dot com ],
2006-10-05 08:42:24
#
-
can you please give me your code which is running for gmail account?
[ Reply ]
hello all
can anyone please give me your code which is running for any account I have tried very much, but it is not working for any account.
Thanks
nilesh kamani [ nilesh dot kamani ( at ) gmail dot com ],
2006-10-05 08:42:44
#
-
Problem with Rediff & Hotmail
[ Reply ]
Dear Friends,
Please help, I am unable to send E-Mail through my web server to the Rediff/Hot Mail Users. How can I solve the problem. Please help me.
Vishal Upadhayay [ vishal_upadhayay ( at ) yahoo dot com ],
2006-11-27 00:28:46
#
-
SMTP Authenticate
[ Reply ]
Dear Dave, Hats off to your Knowldege, dear. I read your informative article, and built my ASP.net Page using vb.net code. Please understand my scenerio. I have to servers, one is my application server at india, and my mail server at USA. Now what want to do is send mail from application server(india) using smtpserver(USA based). So i collected the info of smtp server i.e port, username, password, server ip., etc. Now when i try to send email from my app server, if "TO" field contains email address matching to my US Based server then it delivers the mail, for example lets say my smtp server is smtp.usbased.com and if i try to send email at matang@usbased.com then it successfully delivers the mail, but if i want to send email to matangsbuddy@yahoo.com, then it gives me "The server rejected one or more recipient addresses. The server response was: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)" , So where is the problem ? If i configure my outlook to use above credentials and server details, then outlook works properly ? So can you help me ? Thanks in Advance., Matang.
Matang [ matangsbuddy ( at ) yahoo dot com ],
2007-01-04 06:02:27
#
-
The Server Rejected One or more Recipient addresses.
[ Reply ]
Dear Dave, Hats off to your Knowldege, dear. I read your informative article, and built my ASP.net Page using vb.net code. Please understand my scenerio. I have to servers, one is my application server at india, and my mail server at USA. Now what want to do is send mail from application server(india) using smtpserver(USA based). So i collected the info of smtp server i.e port, username, password, server ip., etc. Now when i try to send email from my app server, if "TO" field contains email address matching to my US Based server then it delivers the mail, for example lets say my smtp server is smtp.usbased.com and if i try to send email at matang@usbased.com then it successfully delivers the mail, but if i want to send email to matangsbuddy@yahoo.com, then it gives me "The server rejected one or more recipient addresses. The server response was: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)" , So where is the problem ? If i configure my outlook to use above credentials and server details, then outlook works properly ? So can you help me ? Thanks in Advance., Matang.
Matang [ matangsbuddy ( at ) yahoo dot com ],
2007-01-04 06:07:06
#
-
How do I authenticate using SPA?
[ Reply ]
Hi,
How to use SPA when select outgoing server in vs2005.
SW [ sangeeta dot wadhwani ( at ) e-zest dot net ],
2007-01-29 01:27:06
#
-
How to use SPA with outgoing server in asp.net version 2.0
[ Reply ]
Hi,
How to use SPA with outgoing server in asp.net version 2.0
thanks in advance
SW [ sangeeta dot wadhwani ( at ) e-zest dot net ],
2007-01-29 01:29:38
#
-
Thank You!
[ Reply ]
I looked all over and found so many complex code samples on how to accomplish this simple goal. All I needed was the Adds. Thanks. Nice Solution.
barionic [ barionic ( at ) yahoo dot com ],
2007-02-21 12:43:37
#
-
Error after adding Reference
[ Reply ]
Good day, I am running windows xp Pro sp2 with VS2005. I have the 1.0a,1.1,2,3 frameworks loaded. I have designed a program in framework 1.0 and not I need to authenticate my SMTP. When I try and add a reference to my project for framework 1.1 my forms stop working. I give a design error.
Any help would be appreciated.
Karol [ kljmail ( at ) interia dot pl ],
2007-04-04 07:18:58
#
-
smtp failure handling
[ Reply ]
I am sending mails to group of people at a time . if some of the mailids are not correct how to find out that id for further processing
jyothi t [ jyothi_tangirala ( at ) semanticspace dot com ],
2007-05-22 21:58:28
#
-
Need Help
[ Reply ]
I ma getting Error"Mailbox unavailable. The server response was: 5.7.1 Unable to relay for naresh511@gmail.com". For testing purpose my Sender mail id and receiver email Id is same.
Here is my code:
System.Net.Mail.MailMessage Email = new System.Net.Mail.MailMessage("naresh511@gmail.com","naresh511@gmail.com"); Email.Subject = "test subject"; Email.Body = "this is a test"; System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient(); //This object stores the authentication values System.Net.NetworkCredential basicAuthenticationInfo = new System.Net.NetworkCredential("username", "password"); //Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "smtp.gmail.com,587"; mailClient.UseDefaultCredentials = false; mailClient.Credentials = basicAuthenticationInfo; mailClient.Send(Email);
I have already searched a lot of articles but of no use. Please help.
NSEE [ naresh511 ( at ) gmail dot com ],
2007-07-11 06:49:40
#
-
HELP ME
[ Reply ]
Hi..I need a help ..I have created the Webmail in version 2.0. system.net.mail.My doubt is how can i send the mail between the two users in localhost method..How can i create a recipient mail box.Following code i have created any tried to send the mail...But i could not send it..How can i create the recipient mail box for receive the mail..Suppose if i send over the network means i can take another recipient as name yahoo or gmail..But in localhost how can i receive the mail..If u have any coding means please send in to me..The following code is i have tried... //create the mail message MailMessage mail = new MailMessage();
//set the addresses mail.From = new MailAddress(TextBox1.Text); mail.To.Add(TextBox2.Text);
//set the content mail.Subject = (TextBox3.Text); mail.Body = (TextBox6.Text);
// Add a carbon copy recipient. if (TextBox4.Text.Trim().Length != 0) mail.CC.Add(TextBox4.Text);
// Add a Blind carbon copy recipient. if (TextBox5.Text.Trim().Length != 0) mail.Bcc.Add(TextBox5.Text);
mail.Priority = MailPriority.High; //send the message SmtpClient smtp = new SmtpClient("Servername");
// UseDefaultCredentials tells the mail client to use the // Windows credentials of the account (i.e. user account) // being used to run the application smtp.UseDefaultCredentials = true;
smtp.Send(mail);
try { smtp.Send(mail); Response.Write("Your Email has been sent sucessfully Thank You"); } catch (Exception exc) { Response.Write("Send failure: " + exc.ToString()); }
Please help me as soon as possible
Regards M.Rahul
rahul [ rahul_instru02 ( at ) yahoo dot co dot in ],
2007-07-28 05:04:13
#
-
authenticate to send an email, help me
[ Reply ]
in this field:
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here
I don't know what is my username and my password or where i can know which is my user and password.
Martha [ exchangelink dot seo ( at ) gmail dot com ],
2007-09-03 15:15:22
#
-
what is the alternative of smtpauthenticate in System.Net.Mail
[ Reply ]
what is the alternative of smtpauthenticate & nntpauthenticate in System.Net.Mail. I checked the site http://www.systemnetmail.com but no sucess.
Anurag [ anuragal ( at ) gmail dot com ],
2007-09-10 22:28:02
#
-
hello mail send
[ Reply ]
this is mail test box?
shahid [ shahid dot ansari dot fzd ( at ) gmail dot com ],
2007-09-20 03:45:05
#
-
RE: hello mail send
[ Reply ]
hi this santhosh will u plz tell me about sending emails from server
santhosh [ santhosh ( at ) sigmasoftvill dot com ],
2009-04-17 00:22:42
#
-
reading from webconfig
[ Reply ]
i have the smtp settings stored in my web config but i want to read from it in my function. my web config looks like this <smtp from=""> <network host="xxx.xx.xx.xx" password="xxxxxx" userName="xxxxxxxx" /> </smtp>
my code is //message object creates a new instance with each click MailMessage message = new MailMessage(); message.To.Add(new MailAddres("mperatt@ccccccc.net")); message.From = new MailAddress("j@mac.com"); message.Body = "Hi";
//object to send the message SmtpClient client = new SmtpClient(); client.Send(message);
any help is much appreciated
darklord [ jpetersenster ( at ) gmail dot com ],
2007-10-27 21:19:33
#
-
Problem to send mail
[ Reply ]
When I try to send a mail from mu application (C# in .net), the mailserver at Swedish Telia (smtprely1.telia.com) refuses to send it and puts it back under Inetpub/Mailroot/Badmail with the explanation: Diagnostic-Code: smtp;550 mail not accepted from blacklisted IP address [213.67.185.210]. I use namespace System.Net.Mail and send the mail from the local machine. I have configured the iis for “Rely”.
I understand that there perhaps is something with the dynamic ip-address, but I don't know what to do.
Can any help me please?
Best regards Nally
Nally [ Navuser ( at ) telia dot com ],
2007-11-01 00:02:59
#
-
RE: Problem to send mail
[ Reply ]
Hi Nally, Is the IP address where your code is running, or is it the IIS SMTP server? I have a feeling it's your IIS SMTP server, and the recipient's mail server is actually rejecting the mail.
So, your IIS's SMTP server has been blacklisted.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2007-11-01 04:39:48
#
-
RE: Problem to send mail
[ Reply ]
suppose i sent a mail to someone, then after that he / she watching my mail i need to get d reply
ramya [ patibandlaramya ( at ) gmail dot com ],
2012-02-28 03:14:11
#
-
Authentication?
[ Reply ]
Hi! I'm getting the following error" The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
I'm using Basic authentication at this moment.Would I obtain better results if I would use NTLM authentication?
Thanks!
Paul [ caragea dot paul ( at ) gmail dot com ],
2007-11-12 06:13:23
#
-
http request
[ Reply ]
How to send a mail with http request?
farook [ tmfarook ( at ) yahoo dot com ],
2007-12-17 23:34:11
#
-
suggest to authenticate!!!!
[ Reply ]
hi all,
The code I am using is working fine if the email is sent from a domain user but how can I authenticate an ID like abc@yahoo.com
Is there a way to authenticte user like that.
any help would be appreciated!!!
Vishu [ vishavbandhu ( at ) hotmail dot com ],
2007-12-26 22:48:25
#
-
email confirmation
[ Reply ]
Hi guys,
I have a problem in sending a confirmation email automatically after someone sends me there email id through registration form.
can someone quickly help me to write the code for this using .net
pallavi [ pallavi ( at ) kasimedia dot com ],
2008-01-03 22:56:56
#
-
RE: email confirmation
[ Reply ]
If u got soln of this problem then please forword me my mail ID is nikswapnil@gmail.com
Swapnil [ nikswapnil ( at ) gmail dot com ],
2008-04-29 23:14:28
#
-
Authentication Slow
[ Reply ]
Sometimes authentication with a 3rd party SMTP server (such as GoDaddy) is very slow and it makes the web application appear to hang. Eventually the messages are sent, but a user needs to sit and wait until after authentication. Is there any way around this?
Craig [ slothbrain ( at ) msn dot com ],
2008-03-05 05:57:23
#
-
RE: Authentication Slow
[ Reply ]
Hi, You could always fire off a background thread and send the email.
Cheers! Dave
dave wanta [ dave ( at ) advancedintellect dot com ],
2008-03-05 13:16:35
#
-
How to get/set properties of send mail MAPI_DIALOG
[ Reply ]
I want to remove the minimize button of send mail dialog while enabling send mail option through application. Can any one help me how to do that?
sasibala [ sasibala_rsv ( at ) yahoo dot com ],
2008-03-11 22:36:40
#
-
enter e-mail id only in a textbox
[ Reply ]
in a textbox enter only company mail id's and reject other e-mail id like gmail,yahoo etc., when you enter in a text box
jayaprakash [ jpsachin24 ( at ) gmail dot com ],
2008-04-02 18:46:07
#
-
Entering invalid username and password
[ Reply ]
Hi, Im have tried enter an invalid password and username but the email still went thru (.net 1.1). Is this suppose to be ? If not, what could be the reason ? Thanks for the help.
ber [ bertinacheong ( at ) hotmail dot com ],
2008-04-18 03:11:22
#
-
smtp authentication
[ Reply ]
i m not able to autheticate through smtp.mail.yahoo.com server then what should i use as username and password to send email
pinak [ shpinak ( at ) gmail dot com ],
2008-05-22 01:52:42
#
-
Mail went though
[ Reply ]
Hi I'm unable to authenticate. Mail was delivered though I used network credentials. What could be the reason. Please reply..
Thanks in advance, Madhu..
Madhulika [ swapna dot samala ( at ) gmail dot com ],
2008-05-22 04:53:38
#
-
Invalid Basic logon succeeds after successful NTLM authen.
[ Reply ]
I am writing a test program to test SMTP authentication methods and observed a strange behavior as below:
1. select Basic method and entered INVALID user/pwd. The authentication failed (SendMail() method failed) . This was correct behavior. OK.
2. select NTLM method. The authentication was successful. OK.
3. repeat step 1 (i.e. Basic method with INVALID user/pwd). I had expected the authencation to fail, but to my surprise it was successful! All subsequent Basic authen. were successful regarless of INVALID user/pwd, as if the user/pwd fields are not being used. This behavior lasted for the whole application's lifetime. Everything was reset only if I exited the application.
Can anyone explain this? Please help. Thanks in advance.
lttd08 [ lttd08 ( at ) gmail dot com ],
2008-08-05 16:16:40
#
-
send mail error
[ Reply ]
hi, i am writing the following code to sens mail.but it is not send to the emai address why? Imports System.Web.Mail Dim strto As String Dim strfrom As String Dim strsubject As String strto = Txtrecovery_email.Text strfrom = "solution-a41c5e" strsubject = "Hi" SmtpMail.Send(strto, strfrom, strsubject, "your user ID is & a1 & and password is & b1 &") SmtpMail.SmtpServer = "solution-a41c5e" Lm2.Visible = True Lm2.Text = ("Password send to your Email Address")
kalindi [ kalindii_orr ( at ) yahoo dot co dot in ],
2008-08-31 07:58:11
#
-
send mail error
[ Reply ]
hi, i am writing the following code to sens mail.but it is not send to the emai address why? Imports System.Web.Mail Dim strto As String Dim strfrom As String Dim strsubject As String strto = Txtrecovery_email.Text strfrom = "solution-a41c5e" strsubject = "Hi" SmtpMail.Send(strto, strfrom, strsubject, "your user ID is & a1 & and password is & b1 &") SmtpMail.SmtpServer = "solution-a41c5e" Lm2.Visible = True Lm2.Text = ("Password send to your Email Address")
kalindi [ kalindii_orr ( at ) yahoo dot co dot in ],
2008-08-31 07:59:27
#
-
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
[ Reply ]
thanks in advance
aditya [ adityaprofile ( at ) gmail dot com ],
2008-10-22 23:42:23
#
-
Send Mail
[ Reply ]
Fine its working good. Thanks a lot
syed [ mailtosyedmohamed ( at ) gmail dot com ],
2008-12-02 23:29:07
#
-
Mail.fields
[ Reply ]
Mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication Mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here") 'set your username here Mailmsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret") 'set your password here
When ever i type the above VS2008 doesn't like the fields part!!! has version 3.5 changed it to something else??
jason purkiss [ jjp190975 ( at ) hotmail dot com ],
2009-07-27 07:25:45
#
-
RE: Mail.fields
[ Reply ]
use this,
SmtpClient smtpClient = new SmtpClient(); smtpClient.Credentials = new NetworkCredential("UserName", "Password"); . . other codes
Sreenivasan.M [ eshock dot vasan ( at ) gmail dot com ],
2009-09-06 03:36:07
#
-
RE RE: Mail.fields
[ Reply ]
Many thanks man. It was my problem too!
afsharm [ afshar dot mohebbi ( at ) gmail dot com ],
2010-01-20 00:16:27
#
-
Sending email to exterior
[ Reply ]
Hello, I'm developping an asp.net application using c# , .net 1.1.
I can send email to internal recipients (in local area network) but i have an error "Server can not relay ..." when i try to send email to an external recipient. is it an authentication problem or a configuration for the mail account i'm using
Khaled [ sai dot khaled ( at ) gmail dot com ],
2009-09-17 03:20:19
#
-
The transport failed to connect to the server!
[ Reply ]
hi, i using this code: " System.Web.Mail.MailMessage oMessage = new System.Web.Mail.MailMessage(); oMessage.To = toaddress; oMessage.From = fromaddress; oMessage.Subject = subject; oMessage.Body = body; oMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2; oMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = "sales.BRINKSTER.COM";//"myMail.brinkster.com"; oMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = fromaddress; oMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "password"; oMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
System.Web.Mail.SmtpMail.SmtpServer = "mail.fanyab.com"; try { System.Web.Mail.SmtpMail.Send(oMessage); Response.Write("Email sent!"); } catch (Exception ex) { Response.Write("error:"+ex.message); } " but raising this error that: "The transport failed to connect to the server. Exception has been thrown by the target of an invocation. The transport failed to connect to the server. " please Help me. tanks
amir goodarzi [ goodarzi ( at ) fanyab dot com ],
2010-01-30 21:55:15
#
-
Fields update failed
[ Reply ]
Hello, When I try to use SMTP authentication, I get the following error:
Fields update failed. For further information, examine the Status property of individual field objects.
Any help will be appreciated.
davidm [ dmcnulty2003 ( at ) yahoo dot com ],
2010-11-30 13:02:43
#
-
still getting authentication error..
[ Reply ]
Hi, I try the code given below, but it still gives me the same error as 'The server rejected the sender address. The server response was: 530 5.7.1. client was not authenticated.
Aditi Parkhi [ aditiparkhi ( at ) indiatimes dot com ],
2011-08-29 23:58:19
#
|