• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 462
  • Last Modified:

cold fusion ?

setting smtp server for cfmail tag in  cold fusion ?
1 Solution
In you <CFMAIL> tag include the following attributes:

 SERVER="" PORT="25"

changing the to the proper mail server (you shouldn't need to change the port), ex:

<CFMAIL TO="#form.to#" FROM="#form.from#" SUBJECT="Hello World" SERVER="" PORT="25">
Hello World
you can also set the value in the cold fusion adminsistrator, if you're only going to use a single mail server this is a better option.  This way if you ever need to change the ip address of your mail server you won't have to dig though all your cf pages to make the update.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now