Smtp port

Topics: User Forum
Feb 10, 2012 at 12:52 PM

Hi

Can you say what the smtp settings are for godaddy I am getting "Transport failed to connect to server" error

This works fine on development computer however:

Here is the code I'm using

    locfg= CREATEOBJECT("CDO.Configuration")
    WITH locfg.FIELDS
      .ITEM("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay-hosting.secureserver.net"  &&"smtp.gmail.com"
      *.ITEM("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
      .ITEM("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
      .ITEM("http://schemas.microsoft.com/cdo/configuration/sendusername") = "upcbpta@gmail.com"
      .ITEM("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "*****"
      .ITEM("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = .T.
      .ITEM("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = .T.
      .UPDATE
    ENDWITH

*!*    *loMsg = CREATEOBJECT ("CDO.Message")
    loMsg = CREATEOBJECT ("CDO.Message")
    WITH loMsg
        .configuration =locfg
         .from = "upcbpta@gmail.com"
        .To = oRequest.FORM("email")
        .cc = "cpu_ja@yahoo.com"
        .subject = "Confirmation- Worker Registration"
        .TextBody ="You have signed up to work in the"+" "+ALLTRIM(l_area)
        .send()
    ENDWITH
       
    lcHTMLout="Thank You- record updated " +(l_fname)+" "+(l_lname)+" An Email has been sent"

Coordinator
Feb 10, 2012 at 2:25 PM

<%
    oSMTP=NEWOBJECT('AVFPsmtp')
    oSMTP.cSMTPServer= 'relay-hosting.secureserver.net' && enter your smtp server name or ip
    oSMTP.cSenderName = oRequest.FORM("txtMailFrom")
    oSMTP.cRecipient= oRequest.FORM("txtMailTo")
    oSMTP.cBCCList = oRequest.FORM("txtMailBcc")
    oSMTP.cSubject = oRequest.FORM("txtMailSubject")
    oSMTP.cMessage = oRequest.FORM("S1")
    lcSuccess=oSMTP.CDOsend()
%>

you can see this from the SMTP Send "View Source" in the demo

http://thetechconsult.com/demo/default.aspx?action=showhtmlsource&file=email2