navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

JMail Almost Working? Help!!!

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> JMail Almost Working? Help!!!
Page: [1]
 
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
JMail Almost Working? Help!!! - 5/28/2003 0:14:54   
Help!!! I can' t seem to get this JMail working--my first JMail. Any kind soul out there willing to bail me out?

Online, it is (not working) at http://thebachelors.ca/Evans_test.asp
(There are two versions of this code on that page, so it looks a bit messy after running.)

--------------------------------------------

<%@LANGUAGE = VBSCRIPT%>
<html>

<head>
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<title>Evans Experiment</title>
<meta name=" GENERATOR" content=" Microsoft FrontPage 5.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<meta name=" Microsoft Theme" content=" bachelors 010, default" >
<meta name=" Microsoft Border" content=" tlb, default" >
</head>

<body>
<p> </p>
<p><font color=" #000000" ><!--webbot bot=" HTMLMarkup" startspan -->

<%
ServerAddress = " smtp.ai-hosting.com"

ID = " ID"
My_First_Name = " first name"
recipient1 = " CopyToSender@evansforsyth.com"
recipient2 = " ToBachelors@evansforsyth.com"
senderEmail = recipient1
subject = " I am interested. E-Mail from TheBachelors.ca"
body = " Just learning how."

' Create the JMail message Object
set msg = Server.CreateOBject( " JMail.Message" )

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true

msg.silent = true

' Enter the sender data
msg.From = senderEmail

' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.AddRecipient recipient1
msg.AddRecipient recipient2

' The subject of the message
msg.Subject = subject

' And the body
msg.body = body

' Now send the message, using the indicated mailserver
if not msg.Send(ServerAddress) then
Response.write " <pre>" & msg.log & " </pre>"
else
Response.write " Message sent succesfully!"
end if

' Debugging stuff
Response.write recipient1
Response.write recipient2
Response.write senderEmail
Response.write subject
Response.write body
%>

<!--webbot bot=" HTMLMarkup" endspan --></font></p>

</body>

</html>


< Message edited by evansforsyth -- 5/28/2003 10:52 AM >
Doug G

 

Posts: 1189
Joined: 12/29/2001
From: SoCal
Status: offline

 
RE: JMail Almost Working? Help!!! - 5/28/2003 2:07:57   
It seems to me you need two parameters to the addrecipient method for the to name and email address.

_____________________________

======
Doug G
======

(in reply to evansforsyth)
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
RE: JMail Almost Working? Help!!! - 5/28/2003 10:50:28   
Thanks for the reply!

Changed the " addrecipient method" to

msg.AddRecipient recipient1, " name1"
msg.AddRecipient recipient2, " name2"

Still no joy!

Sure appreciate your suggestion tho' .

Evans



(in reply to evansforsyth)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Almost Working? Help!!! - 5/29/2003 0:22:44   
It suggests that the message was sent correctly - so I find it odd.

Try calling a send :

msg.body = body 
[color=#0000FF]msg.Send (ServerAddress)[/color]

'  Now send the message, using the indicated mailserver 
if not msg.Send(ServerAddress)


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to evansforsyth)
ASPPlayground

 

Posts: 122
Joined: 6/25/2002
From: Toronto, Canada
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/3/2003 12:53:45   
Since I cant see the page now, I am only guessing:

Does the mail server require authentication? If so, you need to add your username and password in the code:

	msg.MailServerUserName = username
	msg.MailServerPassWord = password


_____________________________

Samuel Chou

ASPPlayground.NET Developer

(in reply to evansforsyth)
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/3/2003 13:24:18   
Got it working now--sorta!

Couple of things were wrong.

- If there is a space provided in the identifier for an e-mail address " msg.AddRecipient " admin@whoever.com" , CanNotBeASpace" " -- then the identifier is scrambled up!

- If the " msg.From = " admin1@whoever.coml" " is not valid (I intended any replies to be caught by a catchall alias)--then the recipient will not receive the message! (This may be related to the webmail program supplied by my webhost.)

- Finally, once the second point, above, was fixed--the messages were sent to the Spam folder in HotMail.

Why is it working, " sorta" ?

- do spam detectors see that these e-mails are from JMail, and call them spam? Almost looks like it!

- There does not seem to be a copy feature, something like " msg.AddCC " admin@whoever.com" " .

After using JMail, I " sorta" prefer CDONTS!

--------------------------

Huge thanks to everyone who helped! It would be impossible to do this stuff without you!

Evans

< Message edited by evansforsyth -- 6/3/2003 1:26:02 PM >

(in reply to evansforsyth)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/4/2003 4:51:42   
quote:

do spam detectors see that these e-mails are from JMail, and call them spam? Almost looks like it!


Are you specifying a " from" address?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to evansforsyth)
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/4/2003 22:34:42   
Yes, and it has to be a valid address--not one that will go to the " catchall" alias!

I' m using appliedi.net as host--and this problem may be related to their webmail service.

(in reply to evansforsyth)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/4/2003 22:46:50   
Havent used Hotmail EVER so I cant give you any pearls on that.
Im on appliedi to, so I dont think its specific to the host.

Perhaps its disliking the BCC which can be a spammers technique

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to evansforsyth)
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/4/2003 23:05:27   
As near as I can tell, this script is not using a BCC, or a CC either!

(Wish I knew how to do a CC with JMail!)

Thanks for the follow-up!

Evans

(in reply to evansforsyth)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Almost Working? Help!!! - 6/5/2003 2:38:31   
quote:


As near as I can tell, this script is not using a BCC, or a CC either!

Sorry, I was thinking of one of the other posts :):)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to evansforsyth)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> JMail Almost Working? Help!!!
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts