Link to home
Start Free TrialLog in
Avatar of at999
at999

asked on

CFMAIL - username password

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

ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of at999
at999

ASKER

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
Avatar of at999

ASKER

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

> 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..


Avatar of at999

ASKER

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...