going round in circles AGAIN :-(

mtm81

Guppy
I've got two issues and am going round in circles on the live chat..
1) - I cannot send support tickets into customersupport@ or techsupport@ from my main registered email address [email protected]
this is a domain which is not housed with jodo as it's on our local exchange box, however that did not cause a problem up until three weeks ago when something must have changed at jodo and now I just get bounces.
Via the live chat I've been told various things, however without a resolution.
For some reason I do seem to be able to email to [email protected] without a problem...

2) - I have two sites on the same server.. flex-ability.co.uk and bkaya.co.uk, both use the exact same mailing script using the ASPEmail component.

both are set to use "localhost" as the smtp sending server (as neither uses the mail services of jodo for their email management)..
the bkaya one works fine, the flex-ability.co.uk one fails with a "Connection refused." error. looking on the knowledge base of the component author I can see that this error means that the component could not establish a connect with the local specified mail server.

This would be ok, however as stated, this same script works fine on the same server on another site...

Again, all responses I had to this so far (via the sales@ email address as that's the only one I can reach), have not solved the situation...

As this is my only real method of communicating effectively with jodo I would be grateful I could at the very least submit support tickets as normal...


Just as an aside, I am aware that you guys have the support ticket website where I can submit tickets, however that in itself has two issues:
1) - when I submit a ticket form it 9 times out of 10 hangs
2) - My list of open tickets shows me someone elses tickets and not my own...

Can these issues be looked at please?
 
the ticket desk issues will soon be resolved with a totally new desk. I expected it would be done by now, but ran into a few delays, and a couple priority jump issues have come up.

From based emailers on localhost have been getting totally slammed by spam sending botnets (trying to abuse any code and sometimes it works, mails get out) We've had to work on tracking this down several hours each day, but it has resulted in some of the servers being blocked at places, making the errors you mention

this is why we always recommend using CDOSYS with SMTP Auth for mail, even if you have to make a subdomain with a user, it may be worth it for mail sending.

I am not sure it is botnets finding the form mails, as they don't seem to be, but once found (google with keywords, user looking for them), they unleash bots to continually POST against them. Even if not your site, but another site on the server, it can impact you.
 
thanks for the reply stephen, however I'm not sure the same script on the same server but on two different domains would work for one and not the other.
I can totally understand it not working across two different servers if one was blocked and the other not..

in the case of flex-ability.co.uk Only the www section of the domain is being pointed to the jodo setup as the rest of the domain is managed directly by the client, therefore setting up a sub domain is not an option.




The issue with the ticket desk is not a problem as I'm only trying to use that in lieu of the fact I cannot send them in via customersupport@ or techsupport@

I would be grateful if that issue could be fixed
 
the ticket desk form, still generates an email that has to work, it is a messed up system, it works 99% of the times, but there's a few times it doesn't and a few users it specifically just won't work for at all. I PMed you additional info.

OK the site issue with email will check again, I missed same server, that is quite odd that one work and another not.
 
thanks for the reply, in an update, I can confirm that the issue is now also having the same issue on the other site aswell so it's the whole of that server which is affected.

Both of these domains are the same positon.
flex-ability.co.uk house their email set-up off site in an exchange box so I can't do an STMP auth method,
bkaya.co.uk has a personal gmail account to which he wants his form mails sending and doesn't want any bkaya.co.uk email account setting up - so again I'm stuck.

I can't be the only one in this situation I would have thought, therefore I wonder if you have a work-around?...
 
Hey mtm81,

I had these issues some time back and have since migrated all web forms to use CDOSYS. It is much more reliable than the localhost because they are frequently blocked for spam and older ASP components may not be updated anymore. If you are using ASP Classic, you could use the scripts below with an authenticated SMTP email address. I use something similar with several sites and they have been very reliable.

Code:
'//-------------------------------------------------------------------------------------
'// Insert this to include the CDOSYS objects or use Adovbs.inc
'//-------------------------------------------------------------------------------------
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5 Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"-->

'//-------------------------------------------------------------------------------------
'// CDO email function for all pages
'//-------------------------------------------------------------------------------------
Sub cdoEmail(strSubject,strFrom,strFromName,strTo,strCC,strBcc,strHTMLBody,strTextBody,strType,strAttach,strVars)
	
	strCRLF = Chr(13) & Chr(10)
	'// Adjust fields if needed
	strFromName = "Web Site"
	strSendUserPass = "Password"
	strFromEmail = "[email protected]"

	Set myMail = Server.CreateObject("CDO.Message")
	myMail.Subject = strSubject
	myMail.From = ""& strFromName &" <"& strFrom &">"
	myMail.To = strTo
	myMail.Cc = strCc
	myMail.Bcc = strBcc

	If strAttach <> "no" OR strAttach <> "" Then	
		myMail.AddAttachment strAttach
	End If
	
	myMail.TextBody = "Text Email"
	myMail.HTMLBody = strHTMLBody
	
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

	'myMail.Configuration.Fields.Item _
	'("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")=Server.MapPath("\pickup")
	
	'Name or IP of remote SMTP server
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.domain.com"

	'Type of authentication, NONE, Basic (Base64 encoded), NTLM
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

	'SMTP Server port
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587

	'Proxy
	'myMail.Configuration.Fields.Item _
	'("http://schemas.microsoft.com/cdo/configuration/urlproxyserver") = "mail.proxy.com:25"

	'Your UserID on the SMTP server
	myMail.Configuration.Fields.Item _
	"http://schemas.microsoft.com/cdo/configuration/sendusername") = strFromEmail

	'Your password on the SMTP server
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSendUserPass

	'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
	myMail.Configuration.Fields.Update
	'on error resume next
	myMail.Send
	
	'// Option to catch error and send via local email client
	If Err.Number <> 0 Then
		strErr = Err.Description
'		Response.write "<div style='position: absolute; width: 690px; border: 3px solid #ff0000; background-color: #ffffff; margin:0px auto; padding:1px;'>"
'		Response.Write  "Our apologies!" & vbCrLf
'		Response.Write "Unfortunately our form email has encountered a problem." & vbCrLf
'		Response.write "Please click this link to <a href=""mailto:[email protected]?subject=domain.com form problem: " & strErr &"&[email protected]&body=Sorry for the inconvenience and thank you! Please ignore everything below. "& vbCrLf & vbCrLf & Server.URLEncode(Request.Form) &""">email us your form input.</a>" & vbCrLf
'		Response.Write "<br>Mail send failure. Error: " & strErr & vbCrLf & vbCrLf
'		Response.write "</div>"
		strHTMLBody = Replace(strHTMLBody,"<br>",strCRLF)

	Else
		sendEmail = True
	End If
	set myMail = nothing

End Sub

'//-------------------------------------------------------------------------------
'// Format form submission for user-freindly email reading
'//-------------------------------------------------------------------------------
Function formFormat(strType)
eol = chr(13) & chr(10)
If strType = "html" Then
	eol = "<br>"
ElseIf strType = "text" Then
	eol = vbCrLf
Else
	eol = vbCrLf
End If

strMsgHeader = "Form Information Follows: " & eol
For z = 1 to Request.Form.Count
	If Len(Request.Form.Item(z)) > 0 AND Request.Form.Key(z) <> "another_field"  Then '// Don't send specific fields

	'// Adjust to format lines in email
	IName = Request.Form.Key(z) & Left("                                                      ", 53-Len(Request.Form.Key(z))) & ":       " 
		strMsgInfo = strMsgInfo & IName & Request.Form.Item(z) & eol
	End If
Next

strMsgFooter = eol & "End of form information"
formFormat = strMsgHeader & strMsgInfo & strMsgFooter
End Function

'//-------------------------------------------------------------------------------
'// Use this to send the email entering fields as needed
'//-------------------------------------------------------------------------------
Call cdoEmail("Web Submission",strFrom,"strFromName",strTo,strCC,strBCC,formFormat("html"),strTextBody,strType"no",strVars)
 
thank you for the reply, however that will not work for me because
my issue is not with the component it's with the fact that up until recently I was able to use simply "localhost" as the sending server whereas now I am unable to do so.

Both of the sites in question do not have any email addresses I am able to use.
one of the sites uses a gmail account as his main account therefore that does not have an SMTP I can use whereas the second site has an remote exchange server which does not have a remotely accessible smtp server I can plug into..
I need to plug into an smtp of sorts I know that, however both of these sites do not have smtp servers I can use, therefore I have to use the locally ones provided by jodo... the problem is, in the last couple of weeks, jodo have changed there policies to not allow me to send something through localhost which is either to or from a local email address.

I know that's probably a good security situation to be in, but it means I can't send emails from the forms on these sites... nightmare...
 
you can use SMTP gmail if you authenticate. Just as a FYI. On the other domain, it can even be a dummy domain, or one of your own with a mail just for them to send.

I know why localhost is not working now, it is totally bogged by a formmail spam attempts, and working to clean up but it takes a very long time to clean. Each mail generated makes 2-3 other files that have to be deleted as well, if we issue a blanket delete, it will crash the server with I/O overhead, that is how many files are there, a huge amount.

Now, you can bypass this AND have a far greater delivery rate in every case, by using SMTP auth to a mail server, the localhost servers are missing rDNS so don't deliver at a very high success rate. This is actually quite intentional to prevent servers from delivering a lot of spam. There are some systems we could drop in to replace this and filter, but they also kill some form mail apps even legit delivery in our testing before, and CDONTS doesn't work at all. We've tried to get people off CDONTS, even on new servers we did not initially register it, but so many tickets came we gave in on that matter.
 
I am using a Gmail accounts via SMTP on port 25 and both work well. I assume you have the Mail Services turned off and have updated the MX records to use an external email service. You could just setup a separate Gmail account for either site and use it to send emails. As far as I know, sending email from localhost as an unauthenticated user is the least desirable option as emails will likely be blocked as spam and localhosts have been highly abused by spammers. Authenticated SMTP is the way to go....
 
I am using a Gmail accounts via SMTP on port 25 and both work well. I assume you have the Mail Services turned off and have updated the MX records to use an external email service. You could just setup a separate Gmail account for either site and use it to send emails. As far as I know, sending email from localhost as an unauthenticated user is the least desirable option as emails will likely be blocked as spam and localhosts have been highly abused by spammers. Authenticated SMTP is the way to go....
Port 25 gmail with auth, and port 465 with ssl, should work as well.
 
Back
Top