Reply
Sending emails using ASP
Old 05-01-2008, 10:37 AM Sending emails using ASP
Experienced Talker

Posts: 30
Location: Wiltshire
Hi,

I have a script that sends emails to users, but the emails either get sent to the junk folder or aren't recognised.

If I include the information for referer, sever etc will it make the email more secure and ensure it is delivered?

I know what the server is, but how do I find out the referer, clientip and serverip?

Why are they needed?

PHP Code:
strReferer request.servervariables("HTTP_REFERER")
strServer Replace(request.servervariables(""),"www.","")
strClientIP request.servervariables("REMOTE_ADDR")
strServerIP request.servervariables("LOCAL_ADDR"
Thanks,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 05-01-2008, 04:51 PM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
Quote:
If I include the information for referer, sever etc will it make the email more secure and ensure it is delivered
No. ...
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-02-2008, 04:12 AM Re: Sending emails using ASP
Experienced Talker

Posts: 30
Location: Wiltshire
What about including smtp information? I don't know why the emails aren't getting through / or get sent to junk folder.

Any ideas?

Thanks,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 05-03-2008, 03:24 AM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
There is very little you can do in the email headers to ensure that your mail does not get filtered.
Things such as sending directly to the recipient rather than something like "mailinglist @wherever.com" can help.
Ensuring that the From: name is on the same host the mail is being sent out from
Having a Reply-To: header


One other thing would to see if you can set up SPF (Sender Policy Framework).

Does the IP of the webserver have a MX record associated with it?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-03-2008, 05:12 AM Re: Sending emails using ASP
Experienced Talker

Posts: 30
Location: Wiltshire
Thanks for the suggestions, I managed to get it working by including the smtp host name
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 05-07-2008, 01:37 AM Re: Sending emails using ASP
Experienced Talker

Posts: 33
Use cdonts component on your windows server so that you can send email easily.

Let me know if you want some samples of it
__________________
Explode Business Credit E-Book
bizcredit is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 05:38 AM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
Might have been 5 or 6 years ago.

CDONTS has been disabled on Windows server for 5 years now
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Sending emails using ASP
 

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 0.17326 seconds with 14 queries