Försöker skicka mail från min ASP-sida enl följande: Jag fick det att funka genom att lägga till följande rader.......mailproblem med CDONTS..
<code>
Set objMsg=Server.CreateObject("CDONTS.NewMail")
objMsg.From = Trim("webmaster@mycompany.se")
1) objMsg.To = "yyyyyyyyyy@telia.se;"
2) objMsg.To = "zzzzzzzzz@home.se;"
objMsg.Subject="testing testing"
objMsg.Body="testiiiiiiiiiiiiiiiiiiing"
objMsg.Importance = 1
objMsg.Send
Set objMsg=nothing
</code>
det går bra att skicka till min egen @home.se adress, men inte när jag skickar till min jobbadress, mittnamn@mittföretag.se.. Vi har telia som mailleverantör.
Kan det vara så att telias SPAM filter stoppar dessa mail? Vad kan det annars vara för fel?
Jag lyckades skicka en gång till min jobbmail för nån timme sen, men har inte lyckats med det sen dess..
nån som har nåra idéer?Sv: mailproblem med CDONTS..
Set Flds = iConf.Fields
' Set the CDOSYS configuration fields to use port 25 on the SMTP server.
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtprelay1.telia.com"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Update
End With
/Mats