I want to create a function for sending emails. I have already configured SMTP,
(Configure OutSystems to Send Emails - OutSystems 11 Documentation )
but I always report errors when setting email addresses. How can I solve this problem?
I just noticed, looks like you haven't configured the SMTP server properly.
Since you are trying to send emails from your Gmail account, this is how you should configure it:
1. SMTP Server: smtp.gmail.com
2. SMTP Port: 587
3. Username: ren18624397366@gmail.com
4. Password: follow the steps below to generate the password
a. go to: Google Security
b. Enable the 2-Step Verification
c. You will need to generate an app password next, Google stopped showing the App Password option (it's now hidden), but you can still access it from this link: App Password
d. Select Mail and Windows Computer then Generate the password
e. Save this password somewhere and then use it as the SMTP Password in service center.
Hi @Naku Sitsu
Please attach your OML to this post for us to be able to help you.
I don't report any errors now, but I still can't receive the email. Do I have to use a gmail email to do it?
There are 2 main issues here:
1. The EmailAddressValidate("任晓榕<302884512@qq.com>") returns false as it is not a valid email, why do you need to pass it also the name of the person? You will have to convert each Chinese character to its corresponding UTF-8 byte sequence, so it's better to just drop the name from this field and simply use the email on its own.
2. The SendEmail server action is expecting an email as input to its SendToEmail parameter, but you're passing it EmailAddressValidate("任晓榕<302884512@qq.com>") instead, EmailAddressValidate's output is a Boolean and it's not an email address. So you have to pass the SendToEmail a valid email, 302884512@qq.com in this case.
Additionally, the email to be sent seems like it's completely empty, consider adding some dummy text or data in there.
Try fixing those issues and let me know if it solves your issue.
Best regards,
Abed
I modified it according to what you said, but I still can't recerve the email. What should I do?
Do you have access to the email address to which all emails are being sent to? (the one you have added to the Email configuration from service center).
Also, go to Service Center -> Monitoring -> Email, take a screenshot, then click on the email link to download the email you attempted to send, take another screenshot of the email content and attach it to your reply. This way you can clearly see what went wrong.
Additionally, check the status of the sent email, does it say Sent or Error?
I have changed my email address, please check the latest one.
What do the errors say?
Please see the Email module. Status is pending. Was it a success?
No it should say "Sent" in case of a successful delivery. What does the error in the other emails mention?
The problem is with another module, not the one you changes for me.
Thank you very much!
Why didn't the latest one succeed, but did the previous pending succeed?
What does the warning say if you hover over it?
I suddenly received a bunch of emails about this module(EmailDemobyWidget) not the Email module.
Hi Naku Sitsu,
Can you provide more details, 'ren' is used on FROM, TO?
Or share your oml?
Hope that it helps you
Hi Naku,
What is unclear about the errors you get, i mean "Ren" and "=?ift-9?Q?" are clearly not correctly formatted email addresses. You need to check your logic and ensure valid email addresses are provided.
Regards,
Daniel
It seems that you are encountering errors related to improperly formatted email addresses, such as "Ren" and "=?ift-9?Q?". These errors indicate that the email addresses being used are not in the correct format. To resolve this issue, it is important to review your logic and ensure that only valid email addresses are provided.
Valid email addresses typically follow a standard format, such as "example@example.com". They consist of a local part (before the "@" symbol), a domain part (after the "@" symbol), and a top-level domain (e.g., ".com", ".net", ".org"). It is essential to verify that the email addresses being used in your application adhere to this format.and after thisTo check if the SMTP is properly configured, try sending an email from an existing application. Please share more details about your configuration.
Thanks,
Gaurav
I configured SMTP this way and successfully applied it all.
Hi,
It appears that you have enabled the "Redirect Emails to TestList" option, which means that all emails will be sent only to the email addresses specified in the Text List Addresses.
In addition, I noticed that the SMTP server IP address is set to a local IP address. This configuration will only function correctly if you are running OutSystems on-premises.