Author |
Topic  |
|
benny2
Starting Member
7 Posts |
Posted - 29 November 2005 : 12:11:06
|
..but not the forumadmin(me),he can send mails. and members who forgets theire passwords allso gets mail. and the signup mail, when register allso works for the members. I just cant figure it out. im using jmail 4.x
anyone familiar with this? brds
|
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 29 November 2005 : 12:16:58
|
Are they receiving any error messages when they attempt to send e-mails to each other?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
benny2
Starting Member
7 Posts |
Posted - 29 November 2005 : 12:53:53
|
no they dont, just a message that the mail has been sent. and by the way, they cant sent to admin either, looks like its just admin that can send emails |
Edited by - benny2 on 29 November 2005 12:55:21 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
benny2
Starting Member
7 Posts |
Posted - 29 November 2005 : 15:04:36
|
my host has: cdo (incl.documentation&some ex codes given) w3 JMail Pro v4.4(incl.documentations&some ex codes given)
maybe i should try cdosys instead,(if it is more secure)? i dont know the difference between those two?
|
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 29 November 2005 : 16:07:14
|
Looks like you have the paid version of Jmail.
Edit inc_mail.asp and include a valid username and password on the mail server (usually the email address and password that your host would have given you)
e.g.
case "jmail4"
Set objNewMail = Server.CreateObject("Jmail.Message")
'objNewMail.MailServerUserName = "myUserName@mydomain.com"
'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
Don't forget the two apostrophe's to the left of those two lines. |
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. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
benny2
Starting Member
7 Posts |
Posted - 29 November 2005 : 16:26:44
|
thank you podge very much, but your instructions are the same as i've allready used.
however i did test cdosys, and nothing relatet to emails seems to work with that.
is cdosys better secured ?(if yes, perhapse i should try and make that work instead)
brgds |
Edited by - benny2 on 29 November 2005 16:32:07 |
 |
|
benny2
Starting Member
7 Posts |
Posted - 29 November 2005 : 16:37:05
|
below is the ex-code the host is given if i wants to use cdosys, but i do not see the logic of that. if this is useable, how can i edit this into inc_mail ?
send.html <html> <head><title>Send me a message</title></head> <body> <form action="send.asp" method="post"> <br/>Send me a message:<br/> <textarea name="body" cols="40" rows="15"></textarea> <br/> <input type="submit" value="Send"> </form> </body> </html>
send.asp <% @ LANGUAGE = VBSCRIPT %> <html> <body> <% set mail = CreateObject("CDO.Message")
' Specify the sender address ' - the address must exist on the hosting account mail.From = "sender@your-domain.com"
' Specify the address of the receiver mail.To = "recipient@your-domain.com"
' Specify a subject mail.Subject = "Message from my homepage"
' The email body mail.TextBody = Request.Form("body")
mail.Send
%> </body> </html>
|
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 29 November 2005 : 17:36:19
|
Test the CDOSYS code above and if it works then use CDOSYS on your forums.
Neither the cdosys or jmail components are better or more secure in this instance. Your host needs to look at the rules they have set for relaying. Ask them to look at the mail server logs to see why email is not being sent. In my view, an authenticated user with a known i.p. address (your website) should be allowed to send email to any other domain. Your host may have a different view though their code example above would seem to suggest that they have less strict email policies. |
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. |
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 30 November 2005 : 05:12:14
|
Question for ythe knowledeable - is CDOSYS the same as CDONTS? Is it possible CDO refers to CDONTS instead of CDOSYS on the hosts' website?
just a thought |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
benny2
Starting Member
7 Posts |
Posted - 30 November 2005 : 06:51:01
|
that is very strange, my host says they do not support cdonts, but do supports cdo ?. I think i should use the jmail instead since allmost everything is working with that, as I said earlyer the only thing not working is members cant send mails but the administratoruser can. below is the ex code from my host (for jmail)
send.html <html> <head><title>Send me a message</title></head> <body> <form action="send.asp" method="post"> <br/>Send me a message:<br/> <textarea name="body" cols="40" rows="15"></textarea> <br/> <input type="submit" value="Send"> </form> </body> </html>
send.asp <% @ LANGUAGE = VBSCRIPT %> <html> <body> <% set msg = Server.CreateOBject("JMail.Message")
' Specify the sender address ' - the address must exist on the hosting account msg.From = "sender@your-domain.com" msg.FromName = "My homepage"
' Add email address and name of the receiver msg.AddRecipient "recipient@your-domain.com", "your name"
' Specify a subject msg.Subject = "Message from my homepage"
' The email body msg.Body = Request.Form("body")
' Username and password Msg.MailServerUserName = "sender@your-domain.com" Msg.MailServerPassWord = "password"
' Send the mail (specify which mail server to use) if (not msg.Send("mail.your-domain.com")) then Response.write "<pre>" & msg.log & "</pre>" else Response.write "Mail successfully sent!" end if %> </body> </html> since I am a very new doing asp, I dont know if I should replace this code into inc_mail ? or what to edit into inc.mail ?
|
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 30 November 2005 : 07:41:27
|
Snitz already uses code very similar to that. It has to be a problem with the way your host has relaying setup on the mail server.
The following is based on guesswork. Forum admin can send mails (using an address on your domain presumably) Members who forget passwords receive email (from an address on your domain presumably) Signup emails are sent (from an address on your domain presumably)
The problem occurs when the sending email address is not from your domain. Ask your host if authenticated users should be allowed to send emails to addresses outside of your domain. |
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. |
 |
|
benny2
Starting Member
7 Posts |
Posted - 03 December 2005 : 11:58:56
|
so, i asked my host if authenticated users should be allowed to send emails to addresses outside of my domain. i've been in contact with 3 supporters and 2 of them likes to throw this stupid script to my face and the third one was positive, he would at least take a look at the inc_mail file. but I havent heard back from him yet.
so if we asume that authenticated users should be allowed to send emails to addresses outside of my domain
what then ?
ps. my host havent answered the question about reaying setup.
|
 |
|
|
Topic  |
|