JMail

This is a discussion on "JMail" within the Classic ASP section. This forum, and the thread "JMail are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Sep 7th, 2005, 13:32
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
JMail

I've written an ASP page that sends an email using JMail to a user when they enter contact details. This works from my colleagues computer, and from the web server but not from mine. I have the JMail components installed. Does anyone know what I'm doing wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 7th, 2005, 14:42
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
wow you made a few posts today didnt you

again, could it be you have set up iis wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 7th, 2005, 14:53
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, I have haven't I! I've given up on my boss helping me, so I thought I'd ask you guys. I'll have a look at IIS and see if I can figure anything out. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 7th, 2005, 14:56
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
lol were better then any boss! :wink:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 7th, 2005, 15:21
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
lol, thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 7th, 2005, 17:00
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
What error are you getting?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 8th, 2005, 11:01
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
This is the error I'm getting
Claire has not received the notification email.ERROR MESSAGE: The message was undeliverable. All servers failed to receive the message
ERROR SOURCE: SMTPConnect()
LOG:
The message was undeliverable. All servers failed to receive the message
.execute()
{
Trying server mail:mail.solarcontact.co.uk
mail.solarcontact.co.uk failed with the message: "WSAGetLastError() returned 10022, Invalid argument"
No socket for server. ConnectToServer()
1 of 1 servers failed
}


And this is the code
<%
Set JMail = Server.CreateObject ("JMail.SMTPMail")
JMail.Silent = true
JMail.Logging = true
JMail.ServerAddress = "mail.solarcontact.co.uk"

JMail.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")
JMail.AddNativeHeader "MTA-Settings", "route"
JMail.Priority = 1

JMail.Sender = "Info@SolarWills.co.uk"
JMail.AddRecipient "Claire.Barker@SolarContact.co.uk"

JMail.Subject = "SolarWills: Contact Details"

JMail.Body = JMail.Body & "Contact Form Details:"&vbCrLf & vbCrLf
JMail.AppendText "First Name: Claire" & vbCrLf

If NOT JMail.Execute Then
Response.Write "Email Failed

Claire has not received the notification email."
Response.Write ( "ERROR MESSAGE: " & JMail.ErrorMessage & "
" & vbcrlf )
Response.Write ( "ERROR SOURCE: " & JMail.ErrorSource & "
" & vbcrlf )
Response.Write ( "LOG: <pre>" & JMail.Log & "</pre>" & vbcrlf )
Else
Response.Write ( "Email sent successfully!
" & vbcrlf )
Response.Write ( "LOG: <pre>" & JMail.Log & "</pre>" & vbcrlf )
End If
%>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 8th, 2005, 11:57
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe try adding the port on the end of the server address, like so:

JMail.ServerAddress = "mail.solarcontact.co.uk:25"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 8th, 2005, 12:22
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Same error after adding the port number
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 12th, 2005, 12:02
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
use CDOSYS instead!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
jmail

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jmail error gollapati Classic ASP 5 Jul 6th, 2007 10:52
jmail for dummie's frankc PHP Forum 1 Jun 13th, 2007 20:01
Perl to Script JMail SteveJP PHP Forum 0 Nov 8th, 2006 12:56
Adding Attachments with JMail wacara Classic ASP 8 Jun 8th, 2006 20:12


All times are GMT. The time now is 22:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42