Author |
Topic |
sunny_wantsome
Starting Member
27 Posts |
Posted - 11 June 2007 : 22:39:41
|
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 |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 June 2007 : 03:29:46
|
an undeliverable message normally indicates there is a problem with the recipient not the sender |
|
|
sunny_wantsome
Starting Member
27 Posts |
Posted - 12 June 2007 : 15:17:24
|
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. |
|
|
sunny_wantsome
Starting Member
27 Posts |
Posted - 12 June 2007 : 15:22:37
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 June 2007 : 15:40:01
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 June 2007 : 15:58:11
|
you need to look in inc_mail.asp for the following code
you need to uncomment (remove the ') from the lines in red above, and provide the username and password, your host should give you this. |
|
|
sunny_wantsome
Starting Member
27 Posts |
Posted - 13 June 2007 : 02:16:23
|
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. |
|
|
sunny_wantsome
Starting Member
27 Posts |
Posted - 13 June 2007 : 02:20:35
|
well what should i do if i need to do it in aspemail is the procedure same in aspemail too |
|
|
fixup
Starting Member
16 Posts |
Posted - 13 June 2007 : 03:07:00
|
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 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 13 June 2007 : 03:39:17
|
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. |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
Posted - 13 June 2007 : 04:43:00
|
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 |
|
|
fixup
Starting Member
16 Posts |
Posted - 13 June 2007 : 06:29:12
|
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. |
|
|
fixup
Starting Member
16 Posts |
Posted - 13 June 2007 : 06:52:57
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 13 June 2007 : 07:44:34
|
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.
|
|
|
thermal_seeker
Junior Member
United Kingdom
430 Posts |
Posted - 13 June 2007 : 08:04:36
|
not wanting to confuse the issue but I use aspemail and this works for me...
Dave |
No good at coding, but I can plough a field !! |
|
|
Topic |
|