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
 Mail Not Delievered!!!
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

sunny_wantsome
Starting Member

27 Posts

Posted - 11 June 2007 :  22:39:41  Show Profile  Visit sunny_wantsome's Homepage  Send sunny_wantsome a Yahoo! Message
Hello Sir,
I know this question has been asked several times. but i have been trying to solve this issuve since months but still can't. my members who register never get the confirmation email. the mails are returned back to my email address. i am posting a part of the email that is returned..

---------------------------------------------------------------------
undeliverable to xxxxx@yahoo.co.in

Original message follows.

Received: from AspEmail [127.0.0.1] by xxxxx
(SMTPD32-8.05) id AC532D019E; Fri, 01 Dec 2006 23:24:27 +0530
From: "Sunny_Wantsome's Forum" <sunnywantsome@sunnywantsome.com>
To: "goldie" <xxxxx@yahoo.co.in>
Reply-To: sunnywantsome@sunnywantsome.com
Subject: Sunny_Wantsome's Forum Registration
Date: Fri, 01 Dec 2006 23:24:27 +0500
MIME-Version: 1.0
Message-Id: <200612012324812.SM01776@AspEmail>
--------------------------------------------------------------------

i have set my email server address as localhost, when contacting my host they suggested to change the server address to mail.sunnywantsome.com i even tried that but still the same. the host said if this didnt work then to contact the forum support. so here i am now.. please guys help me out



Forum Add: http://www.sunnywantsome.com/forum

Edited by - sunny_wantsome on 11 June 2007 22:40:47

Podge
Support Moderator

Ireland
3775 Posts

Posted - 12 June 2007 :  01:05:56  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Ask your host to check the mail server logs for a more detailed reason why the destination mail server rejected the email.

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

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 June 2007 :  03:29:46  Show Profile  Visit HuwR's Homepage
an undeliverable message normally indicates there is a problem with the recipient not the sender
Go to Top of Page

sunny_wantsome
Starting Member

27 Posts

Posted - 12 June 2007 :  15:17:24  Show Profile  Visit sunny_wantsome's Homepage  Send sunny_wantsome a Yahoo! Message
Sir HuwR, I recently made a new account on yahoo and on that email i still havent received any email neither on the email from which i have registered nor back to me..
and Mr.Podge i have asked the host to check the logs and will let you people know what they said.
Go to Top of Page

sunny_wantsome
Starting Member

27 Posts

Posted - 12 June 2007 :  15:22:37  Show Profile  Visit sunny_wantsome's Homepage  Send sunny_wantsome a Yahoo! Message
Sir, the host asked me something and i am passing the message so here it is..

Message:

Dear Sir :

Please contact your forum vendor and ask them if there is a way to authenticate the outgoing emails.

Our SMTP server requires authentication and it seems your program is not authenticating itself and hence the error.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 June 2007 :  15:40:01  Show Profile  Visit HuwR's Homepage
yes, there is a way of authenticating it, if you are using CDOSYS as the mail component, you can edit and uncomment a couple of lines in the inc_mail.asp file that relate to authentication.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 June 2007 :  15:58:11  Show Profile  Visit HuwR's Homepage
you need to look in inc_mail.asp for the following code

	case "cdosys"
	        Set iConf = Server.CreateObject ("CDO.Configuration")
        	Set Flds = iConf.Fields 

	        'Set and update fields properties
        	Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
	        Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
		'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
		'Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username"
		'Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
        	Flds.Update

you need to uncomment (remove the ') from the lines in red above, and provide the username and password, your host should give you this.
Go to Top of Page

sunny_wantsome
Starting Member

27 Posts

Posted - 13 June 2007 :  02:16:23  Show Profile  Visit sunny_wantsome's Homepage  Send sunny_wantsome a Yahoo! Message
but sir i use aspemail as my host had asked me to use aspemail. and i have mentioned the email configuration image above that shows that i use aspemail. anyways i will contact my host and let you know, what they need to say about this.
Go to Top of Page

sunny_wantsome
Starting Member

27 Posts

Posted - 13 June 2007 :  02:20:35  Show Profile  Visit sunny_wantsome's Homepage  Send sunny_wantsome a Yahoo! Message
well what should i do if i need to do it in aspemail is the procedure same in aspemail too
Go to Top of Page

fixup
Starting Member

16 Posts

Posted - 13 June 2007 :  03:07:00  Show Profile
See my other post, the problem is that you use localhost and replyto is not set up correctly. It is not the recipients' fault, it is now common practice. When you send mail out from localhost, it is the same way spammers use netbot to spam. Therefore most mail servers will treat your mail as spam.

Try the code below and I'm quite sure it'll work as it worked out beautifully for me and put all your troubles behind. The key is the "From" address must apply to your SMTP account, usually it is the same as your login name/address.

......
case "aspemail"
......
objNewMail.Host = "smtp.sunnywantsome.com"
objNewMail.AUTH=LOGIN
objNewMail.Username = "sunnywantsome@sunnywantsome.com"
objNewMail.Password = "YourPassword"
objNewMail.FromName = strFromName
objNewMail.From = "sunnywantsome@sunnywantsome.com"
objNewMail.AddReplyTo strSender
......

Edited by - fixup on 13 June 2007 03:19:57
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 13 June 2007 :  03:39:17  Show Profile  Visit HuwR's Homepage
aspemail only supports authentication if your host is using the full registered version, most hosts however use the free version which does not support authentication.

The key is nothing to do with the from address, if you are using authentication and have supplied a username/password the from/replyto addresses make no difference whatsoever.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 June 2007 :  04:43:00  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Fixup, the reply-to header is already included in the base Snitz code for AspEmail.
	case "aspemail"
		Set objNewMail = Server.CreateObject("Persits.MailSender")
		objNewMail.FromName = strFromName
		objNewMail.From = strSender
		objNewMail.AddReplyTo strSender
		objNewMail.Host = strMailServer
		objNewMail.AddAddress strRecipients, strRecipientsName
		objNewMail.Subject = strSubject
		objNewMail.Body = strMessage
		on error resume next '## Ignore Errors
		objNewMail.Send
		If Err <> 0 Then 
			Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
		End if

You don't have to hardcode the email address into inc_mail.asp either, you can enter it in the Email Server Config.

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.

Edited by - Podge on 13 June 2007 04:43:46
Go to Top of Page

fixup
Starting Member

16 Posts

Posted - 13 June 2007 :  06:29:12  Show Profile
In the old code the From address was also set to strSender. The point was not about whether you set the ReplyTo field or not; it was to make sure the From address matches the SMTP account. Then you have to put strSender to the ReplyTo field so the recipient can reply to the real sender, otherwise the reply always goes to the admin.
Go to Top of Page

fixup
Starting Member

16 Posts

Posted - 13 June 2007 :  06:52:57  Show Profile
The address in Email Server Config is used only for messages from the Admin. When the message is from a member, strSender is set to the member's address. So yo have to hardcode the SMTP's address into inc_mail.asp for the "From" field, so the from header always matches the SMTP account.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 13 June 2007 :  07:44:34  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by fixup

The address in Email Server Config is used only for messages from the Admin. When the message is from a member, strSender is set to the member's address. So yo have to hardcode the SMTP's address into inc_mail.asp for the "From" field, so the from header always matches the SMTP account.


total rubbish, the SMTP address in email config is the SAME smtp address that is used to send ALL emails it is totally unnecesary to have to hard code it in inc_mail.asp. The only thing that requires hard coding is the username/password if you need to use smtp authentication.

Your are getting yourself confused, the SMTP server has nothing to do with the "From" field the from field holds an email address the smtp address holds a domain name they are not the same thing.
Go to Top of Page

thermal_seeker
Junior Member

United Kingdom
430 Posts

Posted - 13 June 2007 :  08:04:36  Show Profile
not wanting to confuse the issue but I use aspemail and this works for me...


case "aspemail"
Set objNewMail = Server.CreateObject("Persits.MailSender")
objNewMail.FromName = strFromName
objNewMail.From = strSender
objNewMail.AddReplyTo strSender
objNewMail.Host = strMailServer
objNewMail.AddAddress strRecipients, strRecipientsName
objNewMail.Subject = strSubject
objNewMail.Body = strMessage
objNewMail.Username = "FORUM EMAIL ADDY"
objNewMail.Password = "PASSWORD FOR THAT EMAIL ADDY"
on error resume next '## Ignore Errors
objNewMail.Send
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
End if


Dave

No good at coding, but I can plough a field !!
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07