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.
|
|
|
|
|
![]() |
||
JMail
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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?
|
|
|
|
#2
|
|||
|
|||
|
wow you made a few posts today didnt you
again, could it be you have set up iis wrong? |
|
#3
|
|||
|
|||
|
Yeah, I have haven't I!
|
|
#4
|
|||
|
|||
|
lol were better then any boss! :wink:
|
|
#5
|
|||
|
|||
|
lol, thanks
|
|
#6
|
|||
|
|||
|
What error are you getting?
|
|
#7
|
|||
|
|||
|
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 %> |
|
#8
|
|||
|
|||
|
Maybe try adding the port on the end of the server address, like so:
JMail.ServerAddress = "mail.solarcontact.co.uk:25" |
|
#9
|
|||
|
|||
|
Same error after adding the port number
|
|
#10
|
|||
|
|||
|
use CDOSYS instead!!!
|
![]() |
| Tags |
| jmail |
| Thread Tools | |
|
|
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 |