Sending an email
So, on my website I have this code that works when it comes to sending an email to the website owner. This is from contact form. Somebody will populate stuff and send to the owner.
<!--- Send email after successful registration --->
<cfmail
server="131.153.102.58"
from="support@almarsguides.com"
to="#form.email#"
subject="Sample CF e-mail">
This is the body of a test email.
</cfmail>
However, I want to make registration where user will recieve email to finish registration, however, this is what is happening.
<cfmail
server="smtp.gmail.com"
port="587"
useSSL="false"
username="AlmarsGmailEmail"
password="TEST"
from="support@almarsguides.com"
to="#form.email#"
subject="Sample CF e-mail">
This is the body of a test email.
</cfmail>
I changed password here for obvious reasons but other info is correct. Now here me out. If I would to use first part of the code, page loads fine and I can finish registration but there is no mail sent. However, when I use the second code (and it doesn't matter in what way I change it), I am getting error 500.
