Using Gmail SMTP relay in Mailer?

Hi All!

I’m slowly building out my project, and this time working on sending email notifications when certain events occur.

I’ve been provided with access to my Company’s GSuite mail relay, so can use smtp-relay.gmail.com without authentication using any send email in the domain, and it should send mail.

My Problem is I can’t find out how to disable the requirement for auth in Mailer. If someone has any ideas it would be greatly appreciated!

Hi @gippshost
Have you tried the Server Default settings?
image

Hey sorry I’ve been offline over the last couple of days.

Yes I did try the Server Default Settings, am I supposed to set anything up in the Pickup Directory? I don’t see any option to set the SMTP mail server when using the Server Default setting.

Trying it though, I get the following error:
code: “EPIPE”
message: “write EPIPE”
stack: “Error: write EPIPE\n at afterWriteDispatched (node:internal/stream_base_commons:164:15)\n at writeGeneric (node:internal/stream_base_commons:155:3)\n at Socket._writeGeneric (node:net:795:11)\n at Socket._write (node:net:807:8)\n at writeOrBuffer (node:internal/streams/writable:389:12)\n at _write (node:internal/streams/writable:330:10)\n at Socket.Writable.write (node:internal/streams/writable:334:10)\n at LastNewline.ondata (node:internal/streams/readable:754:22)\n at LastNewline.emit (node:events:390:28)\n at addChunk (node:internal/streams/readable:315:12)”
status: “500”

I’m not sure about this issue though. It may be related to a module that you are using. (pdf creation)

Hi,

I’m not using any additional modules or anything tricky, just simply trying to send an email using a server connect action, and want to use smtp-relay.gmail.com without using authentication to send the email. It looks like Nodemailer forces authentication which may be why I’m having this issue. Any ideas would be greatly appreciated. I’ll keep trying again today to see if I can get it working, and post if I have success.

OK I believe I worked it out, turns out I can use my GSuite login credentials even though I’m using the relay to send mail.