Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 JMail coding errors!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

joeb
Starting Member

USA
4 Posts

Posted - 19 April 2005 :  08:40:36  Show Profile  Visit joeb's Homepage
After spending 8 hrs trying to figure out why the forum wouldn't email outside of my domain by reading your code in inc_mail.asp, I finally found the problem!

It's NOT a relay issue as alot of people have been experiencing!

Look at an example from your code as follows:

''''''''''''''''''''''''''''''''''''''''''''''''''
Set objNewMail = Server.CreateObject("Jmail.smtpmail")
objNewMail.ServerAddress = strMailServer
objNewMail.AddRecipient strRecipients
objNewMail.Sender = strSender
objNewMail.Subject = strSubject
objNewMail.body = strMessage
objNewMail.priority = 3
on error resume next '## Ignore Errors
objNewMail.execute
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
End if
''''''''''''''''''''''''''''''''''''''''''''''''''''''

Now, my code:

''''''''''''''''''''''''''''''''''''''''''''''''''''''
set msg = Server.CreateOBject("JMail.Message")
objNewMail.Logging = true
objNewMail.silent = true
objNewMail.From = "admin@loan-pipe.com"
objNewMail.FromName = "Loan-PiPe Forums Admin"
objNewMail.AddRecipient strRecipients
objNewMail.Subject = strSubject
objNewMail.Body = strMessage
if not objNewMail.Send( "127.0.0.1") then
Response.write "<pre>" & msg.log & "</pre>"
end if
Set objNewMail= Nothing
''''''''''''''''''''''''''''''''''''''''''''''''''''''

Please note:
You had = objNewMail.Sender = strSender
I have = objNewMail.From = "admin@loan-pipe.com"
objNewMail.FromName = "Loan-PiPe Forums Admin"

Also, these need to be set:
objNewMail.Logging = true
objNewMail.silent = true

When it mails to Hotmail, the content type is WRONG! It is originally set to:
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: Quoted-Printable

It should be set to TEXT...not Quoted-Printable!
Hotmail will not hyperlink the links if set to Quoted-Printable.

I have to finish de-bugging the other mailing methods, no telling what's going on there.

Hope this helps somebody. Sheesh, should have found this like 7 1/2 hours ago!

--------------------------------
Ciao,

Joe B.

Edited by - joeb on 19 April 2005 08:50:07

Podge
Support Moderator

Ireland
3776 Posts

Posted - 19 April 2005 :  08:50:59  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Care to post what your particular problem is and the version you are using ?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 19 April 2005 :  08:56:37  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Looks like you edited the wrong JMail (earlier version). You should have been editing JMail4 e.g.

case "jmail4"
Set objNewMail = Server.CreateObject("Jmail.Message")
'objNewMail.MailServerUserName = "myUserName"
'objNewMail.MailServerPassword = "MyPassword"
objNewMail.From = strSender
objNewMail.FromName = strFromName
objNewMail.AddRecipient strRecipients, strRecipientsName
objNewMail.Subject = strSubject
objNewMail.Body = strMessage
on error resume next '## Ignore Errors
objNewMail.Send(strMailServer)
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
End if


Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

joeb
Starting Member

USA
4 Posts

Posted - 19 April 2005 :  08:58:42  Show Profile  Visit joeb's Homepage
Actually, it is the same on BOTH versions of JMail.

To set the transfer encoding for hotmail and other large domains, use this. It does work.

objNewMail.ContentTransferEncoding = "text"

Now, my whole forum is emailing everything correctly. Before, nothing outside of my domain. It had nothing to do with relaying or user authentication. Just incorrect properties.

Works on Hotmail, Yahoo, MSN, AOL, Mail.com and 9 other large domains. Hope this helps. ;-)

Edited by - joeb on 19 April 2005 09:01:32
Go to Top of Page

joeb
Starting Member

USA
4 Posts

Posted - 19 April 2005 :  09:20:12  Show Profile  Visit joeb's Homepage
OK, just ran into some problems using "text" for content encoding on a couple of other large domains. Now I set it to "base64" and I've tested emails to 26 domains, they all work.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 19 April 2005 :  13:44:55  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I'm not saying you're wrong but Dimac suggest this for v3.x

http://www.dimac.net/Products/w3JMail/Version37/Examples/simple.htm
e.g. Set objNewMail = Server.CreateObject("Jmail.smtpmail")

and this for 4.x

http://www.dimac.net/Products/w3JMail/Version43/Examples/Simple.htm
e.g. Set objNewMail = Server.CreateObject("Jmail.Message")


Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07