Epicor Email using Gmail and Anonymous Authentication

Is there anyone who uses Gmail as their email source and is able to use Authenticate Anonymously?

We have it so we can email through a specific/group account in our company, but it always uses that specific address to send/receive these emails. What we want is to be able to send Anonymously in our Gmail account based on the various BPM/DD and even DocStar.

Because of anti-spam policy, no email service allows anonymous sending anymore.

Especially for low volumes, one can use SendGrid or AWS SES to send email and even set the reply-to so a reply goes where you want it and not necessarily back to the sender.

If you are a subscriber to GSuite, you can use smtp-relay.gmail.com and create customizations to send emails from the current user instead of the configured account.

private void EmailNotification()
{
	string userEmail = "default@address.com";
	UserFileAdapter userAdapter = new UserFileAdapter(oTrans);
	userAdapter.BOConnect();
	string userID = this.edvCurrentClient.CurrentDataRow["CurrentUserId"].ToString();
	if (userAdapter.GetByID(userID))
	{
		DataRow userRow = userAdapter.UserFileData.UserFile.Rows[0];
		userEmail = userRow["EMailAddress"].ToString();
	}

	SmtpClient smtpClient = new SmtpClient();
	MailAddress fromEmail = new MailAddress(userEmail);
	smtpClient.Host = "smtp-relay.gmail.com";
	smtpClient.Port = 587;
	MailMessage message = new MailMessage();
	message.From = fromEmail;
	message.Subject ="My Message Subject";
	message.IsBodyHtml = true;
	message.Body = "My Message Body";
	message.To.Add(email@address.com);
	message.To.Add(userEmail);
	smtpClient.Send(message);
	userAdapter.Dispose();
}
2 Likes