use proxy with phpmailer

1

I describe my situation. I have a system that sends emails via phpmailer but I would like to do it now through proxy. So my question is how to configure the proxy to function.

$mail = new PHPMailer;
    $mail->IsSMTP();                                
    $mail->Host = 'xxxx';     
    $mail->Port = 'xxx';                                
    $mail->SMTPAuth = true;                         
    $mail->Username = 'xxxxx';                   
    $mail->Password = 'xxxxx';                 
    $mail->SMTPSecure = '';                        
    $mail->From = 'xxxxxx ';         
    $mail->FromName = ;               
    $mail->AddAddress(); 
    $mail->WordWrap = 50;                           
    $mail->IsHTML(true);                            
    $mail->Subject =; 
    //An HTML or plain text message body
    $mail->Body = ;

This is my code I do not know if somewhere in the $ mail I have to put it or does not have support.

Thank you very much.

    
asked by Luis Guerra 27.11.2018 в 03:47
source

0 answers