Setting up Mall Table using Gmail

240 views
Skip to first unread message

jwdav...@innovairre.com

unread,
Apr 24, 2018, 7:17:15 PM4/24/18
to XMPie Interest Group
I am working to setup the Mall Table in uStore and it will not send email using a gmail account. I keep getting a an error as shown below:


2018/04/24 18:05:57 [9432]:    Error
Error in com.xmpie.uStore.EmailSender.EmailEngine.SendEmail().
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
   at System.Net.Mail.SmtpClient.GetConnection()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at com.xmpie.uStore.EmailSender.EmailEngine.SendEmail(EmailParams inEmailParams, SendParams inSendParams, String inEmailBody, String inEmailSubject, String inSenderEmailAddress, String inSenderDisplayName, String fileAttachmentPath)

----------------------------------------

Looks like uStore is using .net framework work to output the message. I know I am able to accomplish this with other VB.net code, and using both SSL and TLS as active. I am not sure if this is the limitation or what the situation is, but any thoughts would be greatly appreciated.

Best, John

couch

unread,
Apr 24, 2018, 7:44:15 PM4/24/18
to XMPie Interest Group
Try setting up the gmail smtp in uproduce dashboard. (It provides a test feature to ensure you have things working before involving uStore.)

Then in uStore, edit your store setup, and on the advanced tab, change to use uproduce smtp and select the one you defined.

Last. Double check your email triggers - you will probably have to change the sender to a known email address that is permitted to send out via gmail.

jwdav...@innovairre.com

unread,
Apr 25, 2018, 10:19:31 AM4/25/18
to XMPie Interest Group

Steve - thank you for getting back to me on this topic. I tried to use the uProduce Dashboard to test the SMTP settings and it would fail there as well. I looking into whether or not I can setup this account as being an SMPT-RELAY.GMAIL.COM which may or may not solve my issue. That being said, I am not sure that the SMTP settings available through either uProduce or uStore allow TLS Authentication. Do you know if this is the case?

When I was building a GUI previously part of my workflow included code which allowed me to send notification emails. It took a little bit of time setting up but it came down to have code for the TLS authentication

        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/startTLS") = True
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = fromEmail
        emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = password

I am not sure if the code built around the SMTP for uProduce or uStore is editable, but I believe it would be best to add TLS support. At present I am waiting for my IT Admin to determine if I can go the Relay Route.

Best, John

couch

unread,
Apr 25, 2018, 5:43:42 PM4/25/18
to XMPie Interest Group
I am told that uStore support TLS. However, there are some registry settings in Windows that can force specific TLS versions that could be your problem.

jwdav...@innovairre.com

unread,
Apr 25, 2018, 6:22:46 PM4/25/18
to XMPie Interest Group
Steve- Thanks for the follow-up!

I am looking into setting up a local SMTP to achieve what I need to do through IIS. I believe that should help to resolve any authentication issues and is probably best practice.

Best, John

Ernie Broennle

unread,
Sep 12, 2019, 5:30:35 PM9/12/19
to XMPie Interest Group
we are working on setting up our new XMPie installation. Having no luck setting up an SMTP delivery provider for uProduce triggered notifications by email. Anyone here have any luck doing this?

ernie

John Davidson

unread,
Oct 15, 2019, 1:19:40 PM10/15/19
to XMPie Interest Group
Ernie - Sorry for the late reply, but did you get this fixed?
Reply all
Reply to author
Forward
0 new messages