Solved

CFMAIL - username password

Posted on 2007-03-27
6
449 Views
Last Modified: 2013-12-24
I am using CFMail to send emails

 <CFMAIL TO="#form.mailto#"
            FROM="#form.mailFrom#"
            SUBJECT="#form.subject#">
            This message was sent by an
            automatic mailer built with CFMAIL:
            ====================================================
            #form.body#
    </CFMAIL>    

The mail server i am using does not allow relaying. it is exchange type of mail server
Hence using this webpage, i can send emails to the email addresses of this mail server only.
i cannot send emails to mail servers like yahoo hotmail etc. If  i specify Username and Password in that CFMAIL tag, i can send email to yahoo hotmail - external servers.

Is there any other way to send emails to external mail servers without typing down username and password in that CFMail tag?

pl help

thanks

0
Comment
Question by:at999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 39

Accepted Solution

by:
gdemaria earned 150 total points
ID: 18807867

 in CFIDE/administrator, under MAIL, you can set your username and password there.

 you can specify a user name and password in the format user:password@mail.company.com

 where mail.company.com is your mail server.


0
 

Author Comment

by:at999
ID: 18807924
i tried that ,
when i check 'Verify mali server Connection' , and hit submit,  it does not work - it gives error,

Also when i send email, i get unknownhostexception
Unknown SMTP host:myhost.com; nested exception is: java.net.UnknownHostException: myhost.com
0
 

Author Comment

by:at999
ID: 18807951
sorry,
specifying username-password WORKED
but is there any otherway - to specify password, this is like open password to everybody,
can i create an account or
can i set the mail server to grant access to this email account to send email without specifying password
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 
LVL 36

Assisted Solution

by:SidFishes
SidFishes earned 100 total points
ID: 18808034
"to specify password, this is like open password to everybody,"


That's not the case. Generally, there is no way for a web client to have any access to anything that's in your server code. Every page and all it's logic, passwords and such are processed server side and none of that can be seen by the client. If users code see server code, we'd all be out of business.

There's only a couple of ways that your UN and PWD would be at risk.

You have multiple developers with access to the code. IF you don't trust your developers..well not a good thing

You lose your laptop with your development code.

You have allowed directory browsing on your webserver. Big Bad idea

Your server gets compromised...you've got more problems than an exposed email password.


I don't worry about UNs and PWDs in code. They are safe if you follow good practices.
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 18808115

> but is there any otherway - to specify password, this is like open password to everybody

how many people have access to your CFIDE/administrator ?   Only they should be able to see this password.

>  can i set the mail server to grant access to this email account to send email without specifying password

depends on the mail server, but I suspect that its all or nothing.   You could set a mail server to work without a password but lock it down to accept email relay only from that IP address.   But I'm not an email admin, so you should check with yours..


0
 

Author Comment

by:at999
ID: 18813280
thanks a lot for the help.

i have added relaying option on the mail server for the ip address and its working now without specifying the password...

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to expand the inbox sub folders outlook 2016 1 48
EXCHANGE, SPF 2 55
Export email data from Google to PST files 8 70
Iphone new exchange 2016 9 24
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
What You Need to Know when Searching for a Webhost Provider
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question