E-Mail has not been sent due to SMTP configuration.

0

Hello,

I am setting up the Email settings for an online marketplace where emails are sent for actions such as registering an account as well as forgot password and I am getting the following error message when sending a test email from the marketplace webpage:

E-Mail has not been sent due to SMTP configuration

Here are my current settings:

  • Mail Driver
  • smtp
  • Mail Host
  • email-smtp.ap-southeast-2.amazonaws.com
  • Mail Port
  • 587
  • Mail Username
  • User name from IAM->Users->
  • Mail Password
  • Access Key 1
  • Mail Encryption
  • tls
  • Mail From Address
  • My own email address
  • Mail From Name
  • My own name

Can anyone please provide assistance?

Regards, Simon

Simon
已提問 1 個月前檢視次數 153 次
1 個回答
0

Hi

Issues:

Important Don't use temporary AWS credentials to derive SMTP credentials. The SES SMTP interface doesn't support SMTP credentials that have been generated from temporary security credentials.

The following pseudocode shows the algorithm that converts an AWS secret access key to an SES SMTP password.


// Modify this variable to include your AWS secret access key
key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY";
            
// Modify this variable to refer to the AWS Region that you want to use to send email.
region = "us-west-2";
            
// The values of the following variables should always stay the same.
date = "11111111";
service = "ses";
terminal = "aws4_request";
message = "SendRawEmail";
version = 0x04;

kDate = HmacSha256(date, "AWS4" + key);
kRegion = HmacSha256(region, kDate);
kService = HmacSha256(service, kRegion);
kTerminal = HmacSha256(terminal, kService);
kMessage = HmacSha256(message, kTerminal);
signatureAndVersion = Concatenate(version, kMessage);
smtpPassword = Base64(signatureAndVersion);

Addition Information: [https://docs.aws.amazon.com/ses/latest/dg/monitor-sender-reputation.html](Monitoring your Amazon SES sender reputation)

profile picture
專家
GK
已回答 1 個月前
  • Thank you GK. For the code, what programming language should I use to get the AWS secret access key?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南