Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 April 10th, 2005, 08:29 AM
Registered User
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to haji_mb Send a message via Yahoo to haji_mb
Default error sending email using ASP

Hi,
I am trying to send email using JMail dll.
I want to send mail from my localhost to any email address like hotmail.com, yahoo.com or other.
I am trying to send it through ASP using JMail.dll
The code is as follows.

        on error resume next
    Dim oMessage,errorstr
    Set oMessage = Server.CreateObject("JMail.SMTPMail")
    With oMessage
        .Silent = True
        .Logging = True
        .ServerAddress="mail.mydomain.com"
        .Sender = "[email protected]"
        .AddRecipient "[email protected]"
        .Subject = "this is the subject"
        .Body = "this is the body"
        .AddAttachment "c:\test.txt"
        .execute
    End With
        if err.number<>0 then
         errorstr= "ERROR: " & .Log
    else
                 errorstr="Message Sent.."
        end f
    'Cleanup
    Set oMessage = nothing
    SendEmailJMail = errorstr

but Error is raised while sending it the error is as follows.

ERROR: The message was undeliverable. All servers failed to receive the message .execute() { Trying server mail:mail.mydomain.com mail.mydomain.com failed with the message: "WSAGetLastError() returned 10051, Network is unreachable" No socket for server. ConnectToServer() 1 of 1 servers failed }

Please Give me some solution, so that i can send the mail using localhost.

PS I am using IIS 5 on windows 2000 professional .
i am using this for a local website to send the mail.
Please help....


With regards
Haji Muffadal
 
Old April 10th, 2005, 12:28 PM
Authorized User
 
Join Date: Apr 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Haju

Try this site:
http://www.webafrica.co.za/kb/sendin..._overview.html

I see they also link to this site:
http://www.webmage.com/support/jmail.asp

Hope it helps

Helga Anagnostopoulos
 
Old April 12th, 2005, 08:52 AM
Registered User
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to haji_mb Send a message via Yahoo to haji_mb
Default

dear Helga Anagnostopoulos,
Thanks for the links
I tried the links but still i am unable to send mail through my local host. the same is working if i host my page to my web address.



With regards
Haji Muffadal
 
Old May 30th, 2005, 06:04 PM
Authorized User
 
Join Date: Aug 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sherief Send a message via Yahoo to sherief
Default

dear Haji,

please check your SMTP server, see if it's running....

-----
Regards,
Sherief C. Mursyidi
http://www.sherief.net - Portal of IT pros





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Sending an email in asp.net 2.0 using C# Bashu C# 2005 4 August 14th, 2007 03:29 AM
sending email through asp.net [email protected] .NET Framework 1.x 2 October 19th, 2006 12:13 PM
Sending Email function got error Evil_Vios ASP.NET 2.0 Professional 0 September 5th, 2006 04:35 AM
Error sending email ohChuck C# 1 April 20th, 2006 01:58 AM
Error in sending email from asp.net asif_sharif ASP.NET 1.0 and 1.1 Professional 4 January 7th, 2006 05:22 PM





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