Link to "Brinkster SMTP Email"

Message board links from 2010 as taken from the Internet Wayback Machine pages.
Post Reply
User avatar
admin
Site Admin
Posts: 159
Joined: Mon Aug 26, 2013 3:47 pm

Re: Link to "Brinkster SMTP Email"

Post by admin »

09-01-2009 10:11 PM
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 323

Brinkster SMTP Email
Reply Contact

I have my site hosting on Brinkster "free Developer" account. Does not support pop/imap. Cant find anything about SMTP though. I also have everything on Jabry.com free hosting as a backup. Dont see anything about email support there.

I want to use Robs forgot password email coding, but I am getting "The transport failed to connect to the server" Im assuming this is the email issue.

I did find on their coding database, someone developed the below coding, do you think it could help, and where would I put it? Or would the godaddy coding also help me out?



<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = ("valid SMTP server") // Specify a valid SMTP server
Mail.Password = ("valid password") // Specify a valid password
Mail.From = ("sender's address") // Specify sender's email address
Mail.FromName = ("sender's name") // Specify sender's name
Mail.AddAddress "your email address" // Specify your email address
Mail.AddCC ("email address for CC") // Specify sender's email address for carbon copy of email (optional)
Mail.AddBCC ("email address for BCC") // Specify email address for blind carbon copy of email (optional)
Mail.Subject = ("email subject") // Specify email subject line
Mail.Body = ("email body") // Specify email content

On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>
09-01-2009 10:25 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 457

Re: Brinkster SMTP Email
Reply Contact

Jarby doesn't support sending email (few free hosts do). I found some code on Brinkster's site (https://help.brinkster.com/KB/a8/how-do ... h-asp.aspx) which looks similar to that and came up with this:

'--------------------------------------------------------------------------
' Sends an email and returns an empty string if successful. Otherwise, it
' returns the error message.
'--------------------------------------------------------------------------
function SendMail(toAddr, subjectText, bodyText)

dim objEmail

set objEmail = Server.CreateObject("Persits.MailSender")
objEmail.Username = "you@domain.com"
objEmail.Password = "password"
objEmail.Host = "mymail.brinkster.com"
objEmail.From = "you@domain.com"
objEmail.AddAddress toAddr
objEmail.Subject = subjectText
objEmail.Body = bodyText

on error resume next
objEmail.Send

if Err.Number <> 0 then
SendMail = Err.Description
end if

set objEmail = Nothing

end function

Replace the existing SendMail function in your includes/email.asp file and give it a try. Be sure to replace you@domain.com and password with your Brinkster account email and password.
09-01-2009 10:30 PM In reply to
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 323

Re: Brinkster SMTP Email
Reply Contact

problem is with a free brinkster account, i dont get a brinkster email. so i was hoping maybe a coding that would sneak in say gmails smtp and use my gmail email to send it. not sure if its possible or not on either server.



thanks
09-02-2009 3:57 AM In reply to
shotrock
Top 10 Contributor
Joined on 08-17-2009
Posts 52

Re: Brinkster SMTP Email
Reply Contact

You can tweak Mike's original email code the (CDO Mail code) to support ssl, which is required by gmail's smtp.

("http://schemas.microsoft.com/cdo/config ... smtpusessl") = True

I forget the exact like of code needed, but I did provide it in another post.
Filed under: email, smtp, gmail
09-05-2009 3:38 PM In reply to
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 323

Re: Brinkster SMTP Email
Reply Contact

Ok so I took a combination of Mike's Go Daddy code and shotrock's addition and created this code which works with the free brinkster account. allowing it to use my gmail email instead. should work with many different mail companies, as long as you know whether they are SSL, what their port is and what their SMTP server address is. This might work on other free hosting companies as well.

'--------------------------------------------------------------------------
' Sends an email and returns an empty string if successful. Otherwise, it
' returns the error message.
'--------------------------------------------------------------------------
function SendMail(toAddr, subjectText, bodyText)
dim mailer
dim cdoMessage, cdoConfig
'Assume all will go well.
SendMail = ""
'Configure the message.
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... smtpserver") = "smtp.gmail.com"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpusessl") = True
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpserver") = "smtp.gmail.com"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... serverport") = 465
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... thenticate") = 1
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndusername") = "xxxxxxx@gmail.com"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndpassword") = "xxxxxxx"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
'Create the email.
cdoMessage.From = ADMIN_USERNAME & " <" & ADMIN_EMAIL & ">"
cdoMessage.To = toAddr
cdoMessage.Subject = subjectText
cdoMessage.TextBody = bodyText
'Send it.
on error resume next
cdoMessage.Send
'If an error occurred, return the error description.
if Err.Number <> 0 then
SendMail = Err.Description
end if
'Clean up.
set cdoMessage = Nothing
set cdoConfig = Nothing

end function
09-05-2009 10:16 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 457

Re: Brinkster SMTP Email
Reply Contact

Nice find, that should work pretty much anywhere.
08-10-2010 3:22 PM In reply to
livead
Top 25 Contributor
Joined on 08-13-2009
Posts 22

Re: Brinkster SMTP Email
Reply Contact
Exactly how do I use this? Where do I copy paste this code? does it work? with 4.0?
08-16-2010 7:54 AM In reply to
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 323

Re: Brinkster SMTP Email
Reply Contact

Livead still working on it for 4.0 but the coding goes into /includes/email.asp

its the last section

Page 1 of 1 (8 items)
Post Reply