 |
| ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 28th, 2004, 11:16 AM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Smtp blocked, how can I send email use asp.net
My program using asp.net to send email, but my school blocked the smtp port and services. After I see the p2p forums which suggest use web service to send email, have you any suggestion which web site provide web service for sending email? I try to use system.web.mail.mailmessage class to send the email in my program, but also fail. Anyone can help me to solve this problem? I need your help. Thank you
|
|

March 29th, 2004, 10:29 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
You have to specify the smtp server.
SmtpMail.SmtpServer = "server_name_here"
|
|

March 29th, 2004, 09:03 PM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have tried this method using SmtpMail.SmtpServer = "server_name_here", but fail because the smtp protocol is blocked.
|
|

March 29th, 2004, 09:13 PM
|
|
Authorized User
|
|
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
try creating a web service and hosting it on an external website... Make sure your function accepts the mandatory params.Ex: To,from, body; etc.
Then have the new application inside the school's firewall reference the webservice.
HTH
|
|

March 30th, 2004, 01:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
|
|

March 30th, 2004, 10:08 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Try this:
objMail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 2
objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "domain\any_username_here"
objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "the_username's_password"
|
|

March 31st, 2004, 12:20 AM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
refer to objmail.fields
how to write the content, subject to email
|
|

April 1st, 2004, 09:41 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Please post your code so we can help you.
|
|
 |