Reply
How can I make emails sent to users from my site secure?
Old 04-29-2008, 12:35 PM How can I make emails sent to users from my site secure?
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
Hi,

When users request for their password to be sent to their email address an email is sent, but it always goes into the junk folder and is classed as dangerous, how can I stop this and make the emails sent by my site secure?

Thanks,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
When You Register, These Ads Go Away!
Old 04-29-2008, 04:04 PM Re: How can I make emails sent to users from my site secure?
rogem002's Avatar
Webmaster Talker

Posts: 607
Name: Mike
Location: United Kingdom
You would want to add more headers to the initial email. If you using cPanel there is also a way to add some extra security (to confim the email was from the server it says it's from).

I recommend looking into PHP sending stuff via POP3/IMAP.
__________________
Website Services
PHP Code:
if(Added_Talkupation($post) == TRUE){iHug($you);} 
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 04-29-2008, 04:13 PM Re: How can I make emails sent to users from my site secure?
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
Spam/Junk filters determine whether or not an eMail is classified as spam based primarily on content. What does the eMail look like? Does it contain a lot of markup, or is is just plain text? Does it mention "automated response" or "Viagra"?

Also, I would recommend sending the mail through your mail server (instead of just using mail() / sendmail) Your mail server should have a non-generic-looking RDNS entry which will help with big providers.

There are lots of other things to help ensure your mail is delivered, especially to companies that use whitelists, but the content of the message is the first thing to look at is the content. If you could post an example complete with headers it may help.

As for added security (beyond simply getting the mail through) I would suggest an RSA signature.
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Old 04-30-2008, 05:56 AM Re: How can I make emails sent to users from my site secure?
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
The mail script I am using is an ASP script, what other headers can I include? How would I include webserver details?

PHP Code:
<%
Dim Mail
    Set Mail 
CreateObject("CDONTS.NewMail")
    
Mail.From "hotlista.co.uk"  '
    Mail.To = rs("email")
    Mail.Subject = "Confirm your email address"
    
buf = "Dear " & rs("userid") & vbCrLf
buf = buf & " " & vbCrLf  
buf = buf & "Please click on the link below to confirm your email address." & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "Once you have confirmed your email address, you can start using Hotlista!" & vbCrLf
buf = buf & "Please click the following link: <a href='
http://www.hotlista.co.uk/activate_account.php?userid=" & rs(email text>activate account</a>"      & vbCrLf
buf buf "The Administrator" vbCrLf
Mail
.Body buf%>
<%
Mail.Send
rs
.Close
Pears
.Close
set Pears 
Nothing
Set Mail 
Nothing
response
.redirect ("confirmation_email.php")

%> 
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 04-30-2008, 09:50 AM Re: How can I make emails sent to users from my site secure?
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
Try stripping the HTML (most mail readers automatically parse URL's), strip the exclamation mark(s), and most importantly:

Mail.From = "hotlista.co.uk"

That doesn't appear to be a valid eMail address which could definitely trigger a mail filter.
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Old 04-30-2008, 11:25 AM Re: How can I make emails sent to users from my site secure?
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
I removed the <a href> and it formatted the link ok in the email The email is still sent to the junk mail folder, if I included my hosts webmail server information would this make the email more secure and not sent to the junk folder?

I can get the details of the webserver to use, but where do I specify them in the email script?

Also, where does POP3 come into sending emails like this?

Thanks,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 04-30-2008, 11:27 AM Re: How can I make emails sent to users from my site secure?
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
I'm not an ASP coder, you may want to open a new thread in a different forum. The big thing I see is that the mail.from should be a real email address -- your code looks like it is setting the From header to just a domain.

If you were doing this in PHP, I would recommend http://phpmailer.codeworxtech.com/
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How can I make emails sent to users from my site secure?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 5.14702 seconds with 12 queries