Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'vendor/autoload.php';
- //$Address = Trim(stripslashes($_POST['Address']));
- //$Subject = Trim(stripslashes($_POST['Subject']));
- //$Message = Trim(stripslashes($_POST['Message']));
- $sendgrid = new SendGrid("noreply@thewebsite.com", "");
- $email = new SendGridEmail();
- $email ->
- addTo("me@myemail.edu") ->
- setFrom("contactform@thewebsite.com") ->
- setReplyTo("you@me.com") ->
- setSubject("dfasdf") ->
- setText("f");
- $res = $sendgrid->send($email);
- var_dump($res);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement