Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
Old 08-04-2010, 02:19 AM ASP email problem
Junior Talker

Posts: 1
Name: Thiru
Trades: 0
EMail is not sending from server but its working find in local host.

Programming Language used here is ASP

my code is as follows:

Code:
Dim Mail
	set Mail=server.createobject("CDO.Message")
	Mail.From = "tst@mail.com"
	Mail.To= "mail@mail.com
	Mail.Subject = "test sub"
	Mail.TextBody = "testing"
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tion/sendusing") =2
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...ion/smtpserver") ="relay-hosting.secureserver.net"
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...smtpserverport") =25 
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tpauthenticate") =1 
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendusername") ="mail id"
	Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendpassword") ="mail password"
	Mail.Configuration.Fields.Update
	Mail.Send
	set Mail=nothing
__________________
Regards,
Sensa

Last edited by chrishirst; 08-04-2010 at 12:21 PM..
sensa is offline
View Public Profile
 
 
Register now for full access!
Old 08-04-2010, 12:19 PM Re: ASP email problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and what error code is being returned?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 08-31-2010, 03:21 AM Re: ASP email problem
Junior Talker

Posts: 1
Name: karan
Trades: 0
Hi,

set Mail=server.createobject("CDO.Message")
Mail.From = "tst@mail.com"
Mail.To= "mail@mail.com
Mail.Subject = "test sub"
Mail.TextBody = "testing"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tion/sendusing") =2
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...ion/smtpserver") ="relay-hosting.secureserver.net"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...smtpserverport") =25
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tpauthenticate") =1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendusername") ="mail id"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendpassword") ="mail password"
Mail.Configuration.Fields.Update
Mail.Send

Last edited by chrishirst; 10-18-2010 at 05:19 AM..
lee82 is offline
View Public Profile
 
Old 08-31-2010, 03:31 AM Re: ASP email problem
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Quote:
Originally Posted by lee82 View Post
Hi,

set Mail=server.createobject("CDO.Message")
Mail.From = "tst@mail.com"
Mail.To= "mail@mail.com
Mail.Subject = "test sub"
Mail.TextBody = "testing"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tion/sendusing") =2
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...ion/smtpserver") ="relay-hosting.secureserver.net"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...smtpserverport") =25
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tpauthenticate") =1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendusername") ="mail id"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendpassword") ="mail password"
Mail.Configuration.Fields.Update
Mail.Send
Apart from my post, This must be one of the most useless replys EVAR!
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE



Last edited by chrishirst; 10-18-2010 at 05:20 AM..
lynxus is offline
View Public Profile Visit lynxus's homepage!
 
Old 09-28-2010, 02:29 AM Re: ASP email problem
Banned

Posts: 4
Name: samalden
Trades: 0
I apologize for what I'm talking to this very basic and probably has been mentioned as many times to ask. I recently designed a website using a sendmail.asp script to include all happen.I error has taken on form and posted the code below. I return a Recordset and did a response.
samalden is offline
View Public Profile
 
Old 10-15-2010, 07:54 AM Re: ASP email problem
Experienced Talker

Posts: 47
Name: Jet Leet
Trades: 0
there can be several reason. you should write error code you getting.
__________________

Please login or register to view this content. Registration is FREE
Client
jet1337 is offline
View Public Profile
 
Old 10-15-2010, 08:11 AM Re: ASP email problem
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Another quick look and me not having a clue about asp i would suggest putting an extra " at the end of this line:

Mail.To= "mail@mail.com
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
View Public Profile Visit lynxus's homepage!
 
Closed Thread     « Reply to ASP email problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33680 seconds with 12 queries