Author |
Topic  |
|
joeb
Starting Member
USA
4 Posts |
Posted - 19 April 2005 : 08:40:36
|
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 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 19 April 2005 : 08:56:37
|
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. |
 |
|
joeb
Starting Member
USA
4 Posts |
Posted - 19 April 2005 : 08:58:42
|
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 |
 |
|
joeb
Starting Member
USA
4 Posts |
Posted - 19 April 2005 : 09:20:12
|
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. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
|
Topic  |
|