Avendo questo codice:
non riesco a capire perchè non invia l'email premetto che il server su cui risiede è Aruba, alcuni mi hanno detto che l'errore sta nel non aver specificato l'indirizzo dell'email qui:codice:<% dim a_messages dim a_attachments function SendMail(mailserver, recipient_name, recipient_address, sender_name, sender_address, subject, body) dim a_recipient_address dim a_recipient_name if mailserver = "" or isnull(mailserver) then mailserver = application("smtp_server") if sender_name = "" or isnull(sender_name) then sender_name = application("from_name") if sender_address = "" or isnull(sender_address) then sender_address = application("from_address") select case application("email_component") case "cdosys" set mail = Server.CreateObject("CDO.Message") set mailcon = Server.CreateObject ("CDO.Configuration") With mailcon 'SMTP server .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.aruba.it" 'SMTP port .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'CDO Port .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'timeout .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 .Fields.Update End With Set mail.Configuration = mailcon With mail .From = sender_address .To = recipient_address .Subject = subject .HTMLBody = body end with '' send the mail on error resume next mail.Send if Err.Number = 0 then sendmail = 1 else sendmail = -1 end if on error goto 0 end select end function function SendAppEmail(message_id, user_param, user_cc_param, keyfield_param) dim rs, sql dim subject, body dim i send_count = 0 ecc.....
ma dato che sono a zero di asp, non saprei dove mettere le mani,mi affido alla vostra bravura nella speranza che riesca a mandare questa email.codice:Set mail.Configuration = mailcon With mail .From = sender_address .To = recipient_address .Subject = subject .HTMLBody = body end with
Grazie !

Rispondi quotando
