[−][src]Struct mailgang::curl_mail::Mailer
Struct used to indiciate the api key for sparkpost is and if it is the eu version or not. Also needs the email where you going to send from. (api key, sender email, eu version of api)
Implementations
impl Mailer
[src]
pub fn default() -> Result<Mailer, &'static str>
[src]
Default mailer is made from a .env config file. Lines in the .env config file to be set. SPARK_KEY: sparkpost api key SENDER: email from where the mail will be send USE_EU: Boolean to indicate if you want to use the EU version, or if not set false to use the USA version.
pub fn send_mail(
&self,
email: &str,
subject: &str,
msg: &str,
html_msg: &str
) -> Result<(), &'static str>
[src]
&self,
email: &str,
subject: &str,
msg: &str,
html_msg: &str
) -> Result<(), &'static str>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mailer
impl Send for Mailer
impl Sync for Mailer
impl Unpin for Mailer
impl UnwindSafe for Mailer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,