|
| |
|
|
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 ======
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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 >
|
|
|
|
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.
|
|
|
|
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
|
|
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
|
|
|