IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#41562 - 11/30/12 01:19 PM SMTP SSL Email Support
Jamie Baillargeo Offline
OL Newbie

Registered: 11/30/12
Posts: 2
Loc: Wisconsin
We really need SMTP SSL Email Support. Google gmail requires SSL.

Top
#41566 - 11/30/12 02:16 PM Re: SMTP SSL Email Support [Re: Jamie Baillargeo]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
That limitation is easy to circumvent by using a script.
Code:
Option explicit
Dim MyMsg
Set MyMsg = CreateObject("CDO.Message" ) 

''Change the values below to meet your own settings
''Port 25 is used for standard mail. Port 465 or 587 is used for SSL mail
SMTPConfig MyMsg, "smtp.gmail.com", 465, "your gmail user name here", "your password here", True


MyMsg.From     = "Sender@Source.com" 
MyMsg.To       = "Recipient@Destination.com" 
MyMsg.Subject  = "This is the subject of the email" 
MyMsg.TextBody = "This is the body of the email."

' Uncomment following line if your want to attach
' the current job file to the email

' MyMsg.AddAttachment Watch.GetJobFileName

MyMsg.Send 


Sub SMTPConfig(msg, srv, port, user, pw,useSSL)
  Const cdoFieldPrefix = "http://schemas.microsoft.com/cdo/configuration/"
  with msg
    .Configuration.Fields.Item (cdoFieldPrefix & "sendusing" )        = 2
    .Configuration.Fields.Item (cdoFieldPrefix & "smtpserver" )       = srv
    .Configuration.Fields.Item (cdoFieldPrefix & "smtpserverport" )   = port
    .Configuration.Fields.Item (cdoFieldPrefix & "sendusername" )     = user
    .Configuration.Fields.Item (cdoFieldPrefix & "sendpassword" )     = pw
    .Configuration.Fields.Item (cdoFieldPrefix & "smtpauthenticate")  = 1
    .Configuration.Fields.Item (cdoFieldPrefix & "smtpusessl")        = useSSL
    .Configuration.Fields.Update
  end with
end sub


That should do the trick nicely.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top