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
#
-
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
#
|