Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
|
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
 
Old March 28th, 2004, 11:16 AM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old March 29th, 2004, 10:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You have to specify the smtp server.

SmtpMail.SmtpServer = "server_name_here"

 
Old March 29th, 2004, 09:03 PM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have tried this method using SmtpMail.SmtpServer = "server_name_here", but fail because the smtp protocol is blocked.

 
Old March 29th, 2004, 09:13 PM
Authorized User
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



 
Old March 30th, 2004, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

http://p2p.wrox.com/topic.asp?TOPIC_ID=11561

HTH.

Always:),
Hovik Melkomian.
 
Old March 30th, 2004, 10:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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"

 
Old March 31st, 2004, 12:20 AM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

refer to objmail.fields
how to write the content, subject to email

 
Old April 1st, 2004, 09:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Please post your code so we can help you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP VB.Net send email Greavr ASP.NET 2.0 Basics 3 August 26th, 2008 07:59 PM
send email by asp phuc2583 Classic ASP Basics 6 December 17th, 2007 10:52 PM
Problem sending email with SMTP in VB.Net Compiler Forum and Wrox.com Feedback 3 November 30th, 2007 07:25 PM
Dialogs in ASP.NET using server-side-blocked-calls inchl ASP.NET 1.0 and 1.1 Basics 1 September 27th, 2006 08:41 PM
Access email blocked by Outlook access Access 3 June 16th, 2005 07:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.